Abstract
Latent tree learning models aim to discover optimal hierarchical structures for sentence understanding without explicit syntactic supervision. While these models often outperform standard LSTMs on tasks like Natural Language Inference (NLI), their internal representations remain poorly understood. This paper investigates whether these models identify linguistically meaningful structures. We evaluate two architectures—RL-SPINN and ST-Gumbel—and find that they develop idiosyncratic, shallow, and inconsistent structures. Despite high task performance, the learned "grammars" bear little resemblance to human linguistic rules, suggesting that the models exploit computational shortcuts rather than discovering underlying syntax.
Introduction
Recursive Neural Networks (TreeRNNs) traditionally rely on "expert" parse trees, such as those from the Penn Treebank, to process sentences hierarchically. Recently, "latent tree learning" models have emerged, which learn to parse and understand sentences simultaneously, guided only by downstream task performance. Surprisingly, these models often exceed the performance of models using human-annotated grammar. This study investigates what these models are actually learning: are they uncovering a "true" underlying structure of language, or merely finding clever computational shortcuts?
Methodology
The researchers implemented and compared two prominent latent tree learning architectures within a shared codebase:
- RL-SPINN: Employs reinforcement learning (REINFORCE) to make discrete, non-differentiable parsing decisions.
- ST-Gumbel: Uses the "Straight-Through Gumbel-Softmax" estimator to make the parsing process differentiable, allowing for more efficient training.
These models were compared against standard LSTMs, which treat sentences as sequences, and a supervised SPINN model that uses trees from a conventional parser. Evaluation metrics included task accuracy on Natural Language Inference (NLI) datasets (SNLI and MultiNLI), Self-F1 (consistency across random initializations), and Linguistic F1 (overlap with Penn Treebank grammar).
Analysis of Induced Structures
Our analysis reveals several key characteristics of the structures induced by latent tree models that distinguish them from human grammar.
The "Shallow" Bias
Latent models consistently prefer shallow trees over the deeper, more complex structures found in human grammar. In a deep learning context, shallow trees facilitate gradient flow by reducing the number of composition steps, which likely explains this preference as a form of optimization for task performance rather than linguistic accuracy.
Arbitrary and Inconsistent Groupings
The models often develop non-linguistic habits. For instance, ST-Gumbel frequently groups the first two words of a sentence regardless of their syntactic relationship (e.g., grouping "Kings frequently" in a way that is syntactically nonsensical). Furthermore, the models are highly inconsistent; two runs with different random seeds often produce wildly different trees, resulting in a Self-F1 score below 50%.
Trivial Strategies
While some models were intended to learn complex structures, they frequently converged to simple branching strategies, effectively processing the sentence one word at a time. This makes such models functionally equivalent to standard RNNs, undermining the motivation for a tree-based architecture.
Results and Discussion
On the MultiNLI dataset, ST-Gumbel achieved a state-of-the-art accuracy of 69.5%, outperforming both the LSTM baseline (69.1%) and the supervised SPINN (66.9%). However, its match with human grammar (PTB) was only 23-27%, barely exceeding the 21% achieved by a random tree generator.
One notable exception to the models' lack of linguistic structure was negation; ST-Gumbel consistently learned to attach negation words (like "not" or "n't") to the word immediately following them. While this is a systematic rule, it remains a far cry from a complete understanding of syntax.
Conclusion
The authors conclude that while latent tree models are powerful, they do not currently act as "scientists" discovering the laws of grammar. Their success likely stems from finding task-specific ways to compress information rather than capturing general linguistic principles. Future work should investigate whether more demanding linguistic benchmarks or different architectural constraints are needed to realize the true value of structured representations.
Summary updated