Language models (LMs) have traditionally treated text as a flat sequence of tokens. While this approach has yielded impressive results, it fundamentally ignores the hierarchical nature of human language. For instance, in a sentence with a long relative clause, the subject and verb may be separated by many tokens, yet they remain syntactically linked. This paper, presented at ACL 2020, proposes a middle ground: a model that leverages human-labeled linguistic structure via "syntactic distance" to improve both predictive performance and structural understanding.
Methodology
The authors build upon the Ordered-Neurons LSTM (ON-LSTM), which possesses an inductive bias toward hierarchy. Their approach introduces two primary innovations: a continuous representation of parse trees and a multi-task learning architecture.
Syntactic Distance Representation
To bridge the gap between discrete trees and continuous neural networks, the authors convert gold-standard parse trees into a sequence of continuous "syntactic distances." In this framework, a high distance between two adjacent words indicates a major constituent boundary, such as the end of a sentence or a clause. Conversely, a low distance suggests the words are closely related, such as an adjective and its noun.
Split-Head Architecture
A key challenge in supervised syntax is that the "best" tree for linguistic correctness may not be the most efficient for word prediction. To address this, the authors propose a "split-head" architecture. Rather than forcing the LM to strictly adhere to gold-standard distances, they introduce a secondary head. Both heads share underlying representations, but one is optimized for the language modeling task (predicting the next word), while the other is trained to reconstruct syntactic distances using a ranking loss. This loss encourages the model to preserve the relative order of distances found in human-labeled trees rather than matching exact scalar values.
Experimental Setup
The model was evaluated on several benchmarks, including the Chinese Treebank (CTB) 5.1 and standard subsets of the Wall Street Journal (WSJ) corpus. Notably, the authors introduced PTB-Concat-Syn, a version of the Penn Treebank that retains punctuation and tree structures—elements often stripped in standard LM benchmarks—allowing for a more rigorous comparison of syntactically-aware models.
Results and Discussion
The proposed model, ONLSTM-SYD, demonstrated superior performance in both language modeling and grammar induction. On the PTB-Concat dataset, it achieved a perplexity of 55.7, outperforming the original unsupervised ON-LSTM (56.2). More dramatically, the model's ability to induce grammar saw a massive improvement, with parsing F1 scores on WSJ10 rising from 63.2 to 77.6. These results were consistent across languages, confirming the model's cross-lingual effectiveness.
The "split-head" approach reveals a fascinating tension between linguistic and predictive syntax. By decoupling the tasks, the model can learn a representation that understands human grammar while maintaining the flexibility to use internal structures optimized for statistical word prediction. Furthermore, because the model remains an LSTM-based architecture, it avoids the $O(n^3)$ complexity or batching difficulties associated with many transition-based models, maintaining $O(n)$ efficiency.
Conclusion
This work demonstrates that supervising a language model with human-labeled syntactic distances significantly boosts its structural awareness without sacrificing computational efficiency. While the perplexity gains are modest, the leap in grammar induction suggests that explicit syntactic supervision is a powerful tool for building more linguistically grounded neural models. Future research may explore integrating these syntactic distance priors into Transformer-based architectures.
Summary updated