Skip to main content
QUICK REVIEW

[Paper Review] Nested LSTMs.

Joel Ruben Antony Moniz, David Krueger|arXiv (Cornell University)|Jan 31, 2018
Natural Language Processing TechniquesComputer Science25 references12 citations
TL;DR

This paper introduces Nested LSTMs (NLSTM), a deep recurrent architecture that enhances long-term dependency learning by nesting LSTM cells within one another, where the outer memory cell's value is derived from an inner LSTM's hidden state. NLSTMs outperform both single-layer and stacked LSTMs on character-level language modeling with comparable parameter counts, and the inner memories capture longer-term dependencies more effectively.

ABSTRACT

We propose Nested LSTMs (NLSTM), a novel RNN architecture with multiple levels of memory. Nested LSTMs add depth to LSTMs via nesting as opposed to stacking. The value of a memory cell in an NLSTM is computed by an LSTM cell, which has its own inner memory cell. Specifically, instead of computing the value of the (outer) memory cell as $c^{outer}_t = f_t \odot c_{t-1} + i_t \odot g_t$, NLSTM memory cells use the concatenation $(f_t \odot c_{t-1}, i_t \odot g_t)$ as input to an inner LSTM (or NLSTM) memory cell, and set $c^{outer}_t$ = $h^{inner}_t$. Nested LSTMs outperform both stacked and single-layer LSTMs with similar numbers of parameters in our experiments on various character-level language modeling tasks, and the inner memories of an LSTM learn longer term dependencies compared with the higher-level units of a stacked LSTM.

Motivation & Objective

  • To address the limitations of stacked LSTMs in capturing long-term dependencies by introducing a deeper memory hierarchy.
  • To improve sequence modeling performance in recurrent networks without increasing model complexity significantly.
  • To explore an alternative to stacking LSTMs by introducing a hierarchical, nested memory structure.

Proposed method

  • The outer memory cell's value is computed not directly from input and forget gates, but by feeding the concatenation of the forget gate output and the input gate output into an inner LSTM cell.
  • The inner LSTM processes the concatenated vector (f_t ⊙ c_{t-1}, i_t ⊙ g_t) and produces its hidden state h^{inner}_t.
  • The outer memory cell c^{outer}_t is set equal to h^{inner}_t, effectively making the outer cell's memory a function of the inner LSTM's hidden state.
  • This nesting mechanism allows for deeper memory abstraction, where inner cells learn long-term dependencies independently of outer layers.
  • The architecture maintains similar parameter counts to standard LSTMs and stacked LSTMs, enabling fair comparison.
  • The model is trained end-to-end on character-level language modeling tasks to evaluate memory hierarchy effectiveness.

Experimental results

Research questions

  • RQ1Can a nested LSTM architecture improve long-term dependency learning compared to stacked or single-layer LSTMs?
  • RQ2How does the hierarchical memory structure of NLSTMs affect performance on sequence modeling tasks?
  • RQ3Do inner memory cells in NLSTMs learn longer-term dependencies than higher-level units in stacked LSTMs?
  • RQ4What is the performance gain of NLSTMs over standard and stacked LSTMs with similar parameter counts?
  • RQ5Does the nested architecture lead to more effective memory utilization in recurrent networks?

Key findings

  • Nested LSTMs outperform both single-layer and stacked LSTMs on character-level language modeling tasks with similar parameter counts.
  • The inner memory cells in NLSTMs learn longer-term dependencies more effectively than the higher-level units in stacked LSTMs.
  • The nested architecture enables deeper memory abstraction without increasing model complexity.
  • The performance gain is attributed to the hierarchical processing of memory states via inner LSTM cells.
  • The model achieves better language modeling results due to improved memory hierarchy and long-term memory retention.

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.