Language Modeling through Long-Term Memory Network

Anupiya Nugaliyadde, Ferdous Sohel, Kok Wai Wong, Hong XieIJCNN 2019 · DOI

Introduction

Recurrent Neural Networks (RNNs) are fundamental to sequential data processing, yet they are perennially hampered by vanishing and exploding gradient problems. While the Long Short-Term Memory (LSTM) architecture introduced gating mechanisms to address these issues, its reliance on a "forget gate" creates a significant bottleneck. By periodically clearing the cell state to maintain stability, LSTMs often lose critical long-range dependencies, typically failing to retain information beyond 50 data points. This "forced forgetting" is particularly detrimental in natural language processing, where distant context often dictates local meaning.

The Long Term Memory (LTM) network is proposed as a novel recurrent architecture designed to overcome these limitations. By replacing the traditional forget gate with a scaling mechanism, LTM maintains dependencies across extended sequences and achieves superior performance with significantly fewer parameters.

Architecture and Methodology

The core innovation of the LTM network is its approach to memory: it seeks to generalize past sequences rather than discard them. Unlike the standard LSTM, which uses a combination of sigmoid and tanh gates to manage state updates and resets, the LTM employs a four-gate structure focused on amplification and stable scaling.

The internal architecture of the LTM cell, highlighting the four-gate structure and the absence of a traditional forget gate.

The LTM architecture consists of the following components:

  1. Input Weighting ($L_{t1}$ and $L_{t2}$): Two initial sigmoid gates combine the current input with the previous hidden state. Their product creates an amplified signal ($L'_t$) that emphasizes the current input's contribution.
  2. The "No-Forget" Cell State: In a departure from LSTM design, the LTM adds new information directly to the previous cell state ($C_{t-1}$) without a multiplicative forget gate.
  3. Sigmoid Scaling: To prevent the unbounded growth of the cell state, the combined state is passed through a sigmoid function (Sigmoid_4). This scales the values, ensuring gradient stability during backpropagation while preserving historical data.
  4. Output Gate ($L_{t3}$): A final gate modulates the output based on current input, which is then combined with the scaled cell state to produce the final hidden state ($h_t$).

By utilizing sigmoid functions for scaling rather than deletion, the LTM ensures that information from the beginning of a sequence can influence outputs hundreds of steps later.

Experimental Evaluation

The LTM was evaluated on two standard language modeling benchmarks:

  • Penn Treebank (PTB): A dataset of Wall Street Journal stories containing approximately 930,000 training tokens.
  • Text8: A larger dataset derived from Wikipedia with approximately 15.3 million training tokens, testing the model's capacity for large vocabularies and long-range dependencies.

Results and Discussion

The LTM consistently outperformed state-of-the-art models in perplexity across both datasets. A key finding is the model's extreme efficiency; the LTM architecture appears far more information-dense than its predecessors.

Perplexity results for LTM across different hidden layer sizes on Text8 and Penn Treebank datasets.

As shown in the results, an LTM with only 10 hidden units achieved a test perplexity of 99 on PTB, outperforming a standard 300-unit LSTM (which typically scores around 119). At 300 units, the LTM reached a perplexity of 83, significantly better than the Delta-RNN (102.7). Further scaling to 650 units improved the PTB perplexity to 67. On the Text8 dataset, a 500-unit LTM achieved a perplexity of 82, surpassing MemNet (147) and standard LSTM (154).

The model maintains stability through scaling rather than deletion, proving that "forgetting" is not a prerequisite for gradient stability. Furthermore, while the LTM preserves long-term memory, it mathematically prioritizes the current input, allowing it to remain grounded in immediate context while leveraging historical data as a background reference.

Conclusion and Future Work

The Long Term Memory network demonstrates that scaling mechanisms can effectively replace forget gates to solve the vanishing gradient problem while preserving long-range dependencies. Its remarkable parameter efficiency suggests a more robust way to model sequential data.

Future research should explore the computational overhead of the LTM's four-gate structure compared to optimized GRUs or LSTMs. Additionally, evaluating LTM on downstream tasks such as machine translation or text-to-speech will determine if its "no-forget" policy remains advantageous in contexts where filtering noise is traditionally considered beneficial. Finally, identifying the performance ceiling for larger hidden layer configurations remains an open area for investigation.

Summary updated

BibTeX
@inproceedings{nugaliyadde2019language,
  author = {Anupiya Nugaliyadde and Ferdous Sohel and Kok Wai Wong and Hong Xie},
  title = {{Language Modeling through Long-Term Memory Network}},
  booktitle = {IJCNN},
  year = {2019},
  doi = {10.1109/ijcnn.2019.8851909},
}
Figure