Skip to main content
QUICK REVIEW

[Paper Review] Cell-aware Stacked LSTMs for Modeling Sentences

Jihun Choi, Taeuk Kim|arXiv (Cornell University)|Sep 7, 2018
Topic ModelingComputer Science64 references3 citations
TL;DR

This paper proposes Cell-aware Stacked LSTMs (CAS-LSTM), a novel stacked LSTM architecture that incorporates both hidden and memory cell states from lower layers into the vertical information flow using a soft gating mechanism. By enabling the vertical connections to leverage the LSTM’s gating mechanism, CAS-LSTM achieves significant performance gains across multiple NLP tasks, outperforming standard stacked LSTMs on benchmark datasets including SNLI, SST-2, and Quora Question Pairs.

ABSTRACT

We propose a method of stacking multiple long short-term memory (LSTM) layers for modeling sentences. In contrast to the conventional stacked LSTMs where only hidden states are fed as input to the next layer, the suggested architecture accepts both hidden and memory cell states of the preceding layer and fuses information from the left and the lower context using the soft gating mechanism of LSTMs. Thus the architecture modulates the amount of information to be delivered not only in horizontal recurrence but also in vertical connections, from which useful features extracted from lower layers are effectively conveyed to upper layers. We dub this architecture Cell-aware Stacked LSTM (CAS-LSTM) and show from experiments that our models bring significant performance gain over the standard LSTMs on benchmark datasets for natural language inference, paraphrase detection, sentiment classification, and machine translation. We also conduct extensive qualitative analysis to understand the internal behavior of the suggested approach.

Motivation & Objective

  • To improve sentence representation learning by enhancing information flow between stacked LSTM layers beyond standard hidden state propagation.
  • To investigate whether incorporating memory cell states from lower layers into vertical connections can lead to better modeling of sequential dependencies.
  • To design a simple yet effective architecture that retains backward compatibility with standard stacked LSTMs while improving performance.
  • To empirically validate the effectiveness of the proposed architecture across diverse NLP tasks such as natural language inference, sentiment classification, and machine translation.
  • To provide qualitative insights into the internal dynamics of the proposed architecture through analysis of gate behaviors and information flow.

Proposed method

  • The architecture extends standard stacked LSTMs by feeding both the hidden state and memory cell state from the previous layer into the current layer’s computation.
  • A new forget gate, $\mathbf{g}_t^l$, is introduced to control the vertical flow of information from the lower layer’s cell state $\mathbf{c}_t^{l-1}$, using a soft gating mechanism similar to the temporal forget gate.
  • The vertical gate $\mathbf{g}_t^l$ is computed using the current hidden state $\mathbf{h}_t^{l-1}$ and the cell state $\mathbf{c}_t^{l-1}$, enabling dynamic modulation of information from the lower layer.
  • The final cell state $\mathbf{c}_t^l$ is computed as a weighted sum of the input candidate, the previous cell state, and the lower-layer cell state, with the weights determined by the input, forget, and vertical gates.
  • A learnable scaling factor $\bm{\lambda}$ is introduced to balance contributions from the left and lower contexts, improving stability and performance.
  • The architecture maintains compatibility with standard stacked LSTMs as long as all layers have identical state dimensions.

Experimental results

Research questions

  • RQ1Can incorporating memory cell states from lower layers into the vertical information flow improve sentence representation learning in stacked LSTMs?
  • RQ2Does the use of a dedicated soft gating mechanism for vertical connections lead to better modeling of hierarchical and sequential dependencies?
  • RQ3How does the proposed architecture compare to standard stacked LSTMs and other variants like residual or shortcut connections in terms of performance across diverse NLP tasks?
  • RQ4What is the contribution of the vertical forget gate relative to the output gate in selecting relevant information from lower-layer cell states?
  • RQ5How do the learned gates behave in practice, and do they make distinct decisions that enhance information filtering?

Key findings

  • CAS-LSTM achieves a test accuracy of 87.0% on the SNLI dataset, outperforming the baseline stacked LSTM and state-of-the-art models on this benchmark.
  • On the SST-2 sentiment classification dataset, CAS-LSTM achieves performance on par with or better than existing state-of-the-art models.
  • In the Quora Question Pairs paraphrase detection task, CAS-LSTM shows consistent improvements over standard stacked LSTMs.
  • The ablation study confirms that the learnable scaling factor $\bm{\lambda}$ improves performance, with the best configuration achieving a 0.4% accuracy gain over the no-$\bm{\lambda}$ variant.
  • Qualitative analysis shows that the vertical forget gate $\mathbf{g}_t^l$ and the output gate $\mathbf{o}_t^{l-1}$ make distinct decisions on information selection, validating the complementary role of the new gate.
  • The model variant using peephole connections for lower-context integration underperforms CAS-LSTM, demonstrating the superiority of the proposed gating mechanism.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.