Skip to main content
QUICK REVIEW

[Paper Review] Do RNN and LSTM have Long Memory?

Jingyu Zhao, Feiqing Huang|arXiv (Cornell University)|Jun 6, 2020
Neural Networks and ApplicationsComputer Science25 references40 citations
TL;DR

The paper shows vanilla RNN and LSTM have short memory under standard conditions, and introduces memory-augmented variants (MRNN/MLSTM) with a long-memory filter that can model long-range dependence.

ABSTRACT

The LSTM network was proposed to overcome the difficulty in learning long-term dependence, and has made significant advancements in applications. With its success and drawbacks in mind, this paper raises the question - do RNN and LSTM have long memory? We answer it partially by proving that RNN and LSTM do not have long memory from a statistical perspective. A new definition for long memory networks is further introduced, and it requires the model weights to decay at a polynomial rate. To verify our theory, we convert RNN and LSTM into long memory networks by making a minimal modification, and their superiority is illustrated in modeling long-term dependence of various datasets.

Motivation & Objective

  • Assess whether RNN and LSTM can exhibit long memory from a statistical perspective under mild conditions.
  • Introduce a new definition of long-memory networks applicable to neural networks and identify limitations of standard recurrent models.
  • Propose a memory filter enhancement to RNN and LSTM to enable modeling of long-range dependence.
  • Provide memory-augmented architectures (MRNN and MLSTM) and demonstrate their effectiveness on long-memory datasets.
  • Validate theoretical findings with experiments on synthetic and real-world datasets, including time series and sentiment analysis.

Proposed method

  • Model recurrent networks as Markov processes and derive conditions for short memory (geometric ergodicity).
  • Introduce Definition 3 for long-memory networks via a decaying coefficient sequence A_k that follows a power law.
  • Propose a memory filter F(x; d) that approximates fractional differencing and integrate it into RNN (MRNN) and LSTM (MLSTM) architectures.
  • Develop MRNNF and MLSTMF variants with a fixed memory parameter and compare to baseline models.
  • Provide theoretical results showing MRNNF has long-memory capability while RNN cannot, under the new definition.
  • Conduct extensive experiments on long-memory and short-memory datasets, plus sentiment analysis tasks, to compare performance.

Experimental results

Research questions

  • RQ1Do vanilla RNN and LSTM exhibit long memory under standard assumptions and definitions?
  • RQ2Can a statistical definition of long-memory be adapted to neural networks, and what architectural changes are needed to achieve it?
  • RQ3Do memory-augmented variants MRNN and MLSTM improve modeling of long-range dependencies compared to traditional recurrent models?
  • RQ4How do the proposed models perform on datasets with genuine long-memory characteristics versus short-memory data?
  • RQ5What is the impact of the memory parameter K on forecasting performance for MRNN/MLSTM variants?

Key findings

  • RNN and LSTM are shown to have short memory under mild conditions via geometric ergodicity results.
  • A new long-memory network definition is proposed, based on polynomially decaying influence of past inputs.
  • Memory filters enabling fractional-differencing-like long-memory effects can be incorporated into RNN and LSTM, yielding MRNN and MLSTM.
  • MRNN/MRNNF achieve better predictive performance than baselines on several long-memory datasets (ARFIMA, DJI, Traffic, Tree).
  • MLSTM/MLSTMF show competitive results but require careful tuning of the memory parameter K for training efficiency and performance.
  • Statistical tests indicate MRNN outperforms RNN and, often, LSTM across multiple datasets.

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.