PRPN
Word-level language model with a parsing network that induces syntactic structure without supervision.
Language · 5,771 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 43.6M
- Operations
- 5,771
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- ICLR 2018
- Cited by
- 148 (as of 28 October 2026)
- Authors
- Yikang Shen, Zhouhan Lin, Chin-Wei Huang, Aaron Courville
- Source
- GitHub: yikangshen/PRPN
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19185
- Graph hash
- c19c3128dec7da78e9f6d354748ab53ef194c44e24f97446332012ab43d8752f
- Skeleton hash
- 058c489bcfc277199a21d3c4e05857e218eda669624ea70c077ab90110e9ff8a
- Architecture hash
- 94e38bf8dda984c2c9133e9bc54c03aa27223cc0215a8f0765c05ba5969020f5
- Diagram SHA-256
- 455a67994bcff81fc4a2ad7aeeb02b73a0302b74e8756bc59e6a9dd45ea1d73d
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
PRPN, the Parsing-Reading-Predict Networks, is a neural language model that induces syntactic structure from unannotated sentences and uses the inferred structure to model language better. The paper's argument is that standard recurrent networks fail to use syntactic information efficiently, while tree-structured recursive networks usually need structural supervision from human annotation.
The model has three parts. The Parsing Network uses a convolutional neural network to compute a syntactic distance between successive words. Gates control skip-connections, and both the reading and prediction functions use a structured attention mechanism that takes those gates as input. The Reading Network summarizes previous recurrent states through structured attention and then performs a normal LSTM update. The Predict Network models the probability distribution of the next word. The gradient can be back-propagated directly from the language model loss into the parsing network.
For word-level Penn Treebank the paper uses two recurrent layers in the Reading Network, a hidden state of 1200 units and shared input and output embeddings of size 800. The look-back range is 5 and the upper bound of the memory span is 15. The repository states that its default language modeling setting reaches a test perplexity of approximately 60.97 on the PTB test set. Its default parsing setting reaches an unlabeled F1 of approximately 0.70 on the PTB WSJ10 subset.
Key idea. PRPN is a neural language model that simultaneously induces syntactic structure from unannotated sentences and uses the inferred structure to learn a better language model.
- PRPN
- Parsing-Reading-Predict Networks
- Parsing Reading Predict Network
- neural language model
- unsupervised parsing
- unsupervised constituency parsing
- syntactic structure induction
- syntactic distance
- word-level language modeling
- Penn Treebank language model
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{shen2018neurallanguagemodelingjointly,
title={Neural Language Modeling by Jointly Learning Syntax and Lexicon},
author={Yikang Shen and Zhouhan Lin and Chin-Wei Huang and Aaron Courville},
year={2018},
eprint={1711.02013},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/1711.02013},
}