NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Long Short-Term Memory Over Recursive Structures

Xiao-Dan Zhu, Parinaz Sobhani, Hongyu GuoICML 2015

TL;DR

This paper introduces the S-LSTM, a novel extension of the Long Short-Term Memory (LSTM) network designed to process hierarchical, tree-like data structures. By modifying LSTM's memory cells to incorporate information from multiple child nodes, S-LSTM can effectively capture long-range dependencies within these structures, outperforming existing recursive models on semantic composition tasks.

What Problem Does This Paper Address?

Traditional Recurrent Neural Networks (RNNs), including the widely successful LSTM, are primarily designed for sequential data. While LSTMs excel at capturing temporal dependencies in sequences, many real-world data modalities, such as natural language sentences and image structures, possess inherent hierarchical or recursive properties. Representing these structures linearly can lead to a loss of information and difficulties in modeling long-distance relationships within the hierarchy. Existing recursive neural networks (RvNNs) attempt to address this but can suffer from vanishing gradient problems, hindering their ability to learn from deep structures. This paper aims to bridge this gap by developing a model that can effectively leverage hierarchical structures while retaining the benefits of LSTMs in handling long-range dependencies.

Methods

The core innovation is the S-LSTM (Structural LSTM). Unlike a standard LSTM that processes information sequentially, the S-LSTM memory block is designed to operate on tree structures. Each S-LSTM memory cell at a node can receive and integrate information from its child nodes. Specifically, it uses multiple "forget gates" – one for each child – to selectively incorporate the hidden and cell states of its children. This allows a parent node's memory cell to reflect the "history" of multiple descendant cells, effectively capturing long-distance interactions within the tree. The model uses a modified backpropagation algorithm to train these structures, adapting the standard LSTM backpropagation to handle the tree topology and differentiate between child inputs.

Datasets

The primary dataset used for evaluation is the Stanford Sentiment Treebank. This dataset is well-suited for the task as it provides parsed tree structures for sentences, with sentiment annotations at every node (phrase) in the tree, not just at the sentence root. This allows for a comprehensive evaluation of the model's ability to capture sentiment at different levels of granularity within the hierarchy.

Key Insights and Ideas

  • Bridging Sequential and Hierarchical Models: S-LSTM elegantly combines the strengths of sequential LSTMs (handling long-range dependencies) with the need to process hierarchical data, offering a principled way to model structures.
  • Selective Memory Integration: The use of multiple, structure-aware forget gates is crucial. It allows the model to learn which child information is most relevant to propagate upwards, mimicking how meaning is composed in hierarchical structures.
  • Overcoming RvNN Limitations: By leveraging LSTM's gating mechanisms, S-LSTM is hypothesized to be more robust to vanishing gradients in deep trees compared to traditional RvNNs.
  • Structure Matters: The experiments provide empirical evidence that explicitly using structural information (tree parsing) leads to better performance than treating the data as a flat sequence.

Key Results

  • State-of-the-Art Performance: S-LSTM significantly outperforms a state-of-the-art recursive model (RNTN) on the Stanford Sentiment Treebank, achieving higher accuracy for both sentence-level (root) sentiment prediction and for all phrases within the trees. For example, S-LSTM achieved 48.9% accuracy on root sentiment, compared to RNTN's 45.7%.
  • Faster Convergence: S-LSTM converges much faster during training than RNTN, particularly for the phrase-level task, suggesting a more efficient learning process.
  • Improved Performance with Structure: When comparing S-LSTM with versions that ignore the tree structure (treated as left-to-right or right-to-left sequences), the structure-aware S-LSTM consistently performs better, highlighting the benefit of explicit structural modeling.

Limitations and Future Work

  • Generalizability of Structure: While the paper focuses on tree structures, the authors acknowledge that many real-world problems involve more complex graph structures. Extending S-LSTM to handle general graphs remains an open area.
  • Hyperparameter Tuning: The authors mention that further fine-tuning of hyperparameters, such as differentiating weights for leaf nodes (word embeddings) and internal nodes, could potentially improve performance.
  • Comparison with Other Models: The paper primarily compares S-LSTM against specific recursive models. Future work could involve broader comparisons with other advanced neural network architectures for structured data.
  • Exploration of Different Structures: The paper's focus on sentiment analysis is a specific application. Exploring S-LSTM's effectiveness on other tasks involving hierarchical data, such as image parsing or scene understanding, would be valuable.

Summary updated

BibTeX
@inproceedings{zhu2015long,
  author = {Xiao-Dan Zhu and Parinaz Sobhani and Hongyu Guo},
  title = {{Long Short-Term Memory Over Recursive Structures}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
  url = {https://openreview.net/forum?id=HyNDp9Z_Zr},
}
Figure