Introduction
Recursive Neural Networks (RvNNs) have long been favored for their ability to model the hierarchical nature of language. By merging words into phrases and phrases into sentences, they mirror the structural composition of human grammar. However, traditional RvNNs are constrained by a significant bottleneck: they require pre-computed syntactic parse trees. This dependency assumes that standard linguistic syntax is universally optimal for all semantic tasks and introduces heavy computational overhead.
This paper introduces the Gumbel Tree-LSTM, a model designed to learn task-specific hierarchical structures directly from plain text, bypassing the need for external parsers.
Methodology: Dynamic Tree Composition
The core innovation lies in how the model determines its own structure. Unlike sequential RNNs, the Gumbel Tree-LSTM builds representations from the bottom up through a layer-wise merging process.
Composition Query Vector
To decide which adjacent elements to merge at each step, the model employs a trainable composition query vector. For every pair of adjacent hidden states, a validity score is calculated. This score represents the "fitness" of that pair for merging in the context of the specific task.
Straight-Through Gumbel-Softmax
A primary challenge in learning discrete structures is that the argmax operation used to select the best merge candidate is non-differentiable, preventing standard backpropagation. The authors overcome this using the Straight-Through (ST) Gumbel-Softmax estimator. During the forward pass, the model makes a discrete choice (sampling the best pair), while the backward pass uses a continuous approximation of the gradient. This allows the entire tree-building process to be optimized end-to-end.
Experimental Setup and Results
The model was evaluated on two major benchmarks: the Stanford Natural Language Inference (SNLI) dataset and the Stanford Sentiment Treebank (SST). In both cases, the model ignored the provided syntactic trees and learned its own latent structures.
Performance and Efficiency
The Gumbel Tree-LSTM demonstrated superior performance and remarkable efficiency compared to existing latent tree models. On SNLI, a 300D version achieved 85.6% accuracy, outperforming the SPINN model (83.2%). On SST-2, it reached 90.7% accuracy, setting a new bar for RvNN-based architectures.
As shown in the training curves, the Gumbel Tree-LSTM (Ours) not only reaches higher peak accuracy but also converges significantly faster than alternatives like the CYK Tree-LSTM. For instance, the 100D version of the proposed model trained in just 0.6 hours, whereas the CYK-based approach required 240 hours on identical hardware.
Key Insights
- Task-Specific vs. Syntactic Trees: Qualitative analysis revealed that the model generates different tree structures for the same sentence depending on the task (e.g., sentiment analysis vs. natural language inference). This confirms that rigid linguistic syntax is not always the most efficient representation for semantic reasoning.
- Contextualized Leaves: By applying a linear LSTM over word embeddings before tree composition, the model provides "leaves" with contextual awareness, further boosting performance.
Conclusion
The Gumbel Tree-LSTM represents a significant step forward for recursive modeling. By replacing rigid syntactic priors with a learnable, differentiable composition mechanism, it achieves state-of-the-art results with a fraction of the training time required by previous latent tree methods. Future work may involve integrating attention mechanisms or extending the architecture to generative tasks.
Summary updated