Abstract
Traditional neural language models often treat text as a linear sequence, ignoring the inherent hierarchical structure of human language. This paper introduces the Parsing-Reading-Predict Network (PRPN), a novel architecture that simultaneously learns to induce syntactic structure and perform language modeling without human-labeled grammar. By utilizing a "syntactic distance" metric, PRPN discovers latent tree structures that align with linguistic intuition while achieving state-of-the-art performance on word- and character-level benchmarks.
Introduction
Linguistic theory suggests that language is fundamentally hierarchical, with words forming phrases and phrases forming sentences in nested tree structures. While Recurrent Neural Networks (RNNs) like LSTMs have dominated language modeling, they typically process text linearly. Existing tree-structured models often rely on pre-computed parses or expensive human-annotated Treebanks, which are unavailable for many languages or informal domains. The PRPN addresses this by treating syntax as a latent variable, learning to parse sentences as a byproduct of minimizing prediction error.
Methodology: The PRPN Architecture
The PRPN consists of three tightly integrated components that allow for differentiable, end-to-end training.
1. The Parsing Network
The Parsing Network uses a Convolutional Neural Network (CNN) to compute a syntactic distance between every pair of adjacent words. This distance serves as a proxy for structural hierarchy: a small distance suggests words belong to the same phrase, while a large distance indicates a major structural boundary.
As shown in the figure above, the model uses these distances to recursively split a sequence into a tree. By identifying the "highest peaks" in distance, the model autonomously induces a binary tree structure without explicit grammar rules.
2. The Reading Network
The Reading Network functions as the model's memory. It employs a "structured attention" mechanism that uses the syntactic distances from the Parsing Network to decide which previous tokens are relevant. Instead of a simple linear history, the model selectively pulls from memory based on the induced hierarchy.
This mechanism allows the model to "skip" over irrelevant sub-trees, effectively connecting distant but syntactically related words (e.g., a subject and its distant verb), thereby solving long-term dependency issues more efficiently than standard RNNs.
3. The Predict Network
Finally, the Predict Network uses the structured information gathered by the Reading Network to calculate the probability of the next token in the sequence. Because the entire pipeline is differentiable, the prediction error provides a signal that refines the Parsing Network's distance calculations.
Experimental Results
The PRPN was evaluated on several standard benchmarks to test both its predictive power and its parsing accuracy:
- Language Modeling: On the Penn Treebank (PTB) character-level task, PRPN achieved a Bits-Per-Character (BPC) of 1.202, a state-of-the-art result at the time. On the Text8 dataset, it reached a Perplexity (PPL) of 81.64, significantly outperforming standard LSTMs.
- Unsupervised Parsing: To test if the induced structures were meaningful, the authors evaluated the model on the WSJ10 dataset. PRPN achieved an $F_1$ score of 70.02, more than doubling the random baseline (34.7) and outperforming several specialized unsupervised parsers.
- Emergent Properties: In character-level training, the model autonomously discovered word boundaries. It learned that syntactic distance peaks between the last character of a word and a space, effectively reinventing the concept of a "word" from raw characters.
Discussion and Limitations
While PRPN demonstrates that syntax can be learned jointly with the lexicon, it has some limitations. The current distance-based mechanism naturally biases the model toward binary trees, which may not capture all linguistic nuances (e.g., coordinate structures). Additionally, the structured attention mechanism increases computational complexity compared to standard RNNs. Future research may focus on unsupervised labeling of the induced constituents (e.g., identifying "Noun Phrases") and extending the model to non-binary structures.
Conclusion
PRPN proves that hierarchical structure is not just a linguistic abstraction but a functional tool for improving language modeling. By jointly learning syntax and lexicon, the model achieves superior predictive performance while providing a window into the latent structural organization of human language.
Summary updated