Skip to main content
QUICK REVIEW

[Paper Review] Slower is Better: Revisiting the Forgetting Mechanism in LSTM for Slower Information Decay

Hsiang-Yun Sherry Chien, Javier S. Turek|arXiv (Cornell University)|May 12, 2021
Ferroelectric and Negative Capacitance DevicesEngineering28 references10 citations
TL;DR

This paper proposes a power law forget gate (pLSTM) that replaces the exponential decay in standard LSTMs with a slower, learnable power law decay to improve long-range sequence modeling. The method enables LSTMs to retain information over hundreds of timesteps without prior knowledge, outperforming vanilla LSTM and chrono-initialized LSTMs on copy, image classification, and language modeling tasks by flexibly adjusting the decay factor $p$.

ABSTRACT

Sequential information contains short- to long-range dependencies; however, learning long-timescale information has been a challenge for recurrent neural networks. Despite improvements in long short-term memory networks (LSTMs), the forgetting mechanism results in the exponential decay of information, limiting their capacity to capture long-timescale information. Here, we propose a power law forget gate, which instead learns to forget information along a slower power law decay function. Specifically, the new gate learns to control the power law decay factor, p, allowing the network to adjust the information decay rate according to task demands. Our experiments show that an LSTM with power law forget gates (pLSTM) can effectively capture long-range dependencies beyond hundreds of elements on image classification, language modeling, and categorization tasks, improving performance over the vanilla LSTM. We also inspected the revised forget gate by varying the initialization of p, setting p to a fixed value, and ablating cells in the pLSTM network. The results show that the information decay can be controlled by the learnable decay factor p, which allows pLSTM to achieve its superior performance. Altogether, we found that LSTM with the proposed forget gate can learn long-term dependencies, outperforming other recurrent networks in multiple domains; such gating mechanism can be integrated into other architectures for improving the learning of long timescale information in recurrent neural networks.

Motivation & Objective

  • To address the limitation of exponential information decay in standard LSTMs, which hinders learning long-range dependencies in sequential data.
  • To develop a more biologically plausible and flexible forgetting mechanism that mimics the slower power law decay observed in natural cognitive processes.
  • To enable LSTMs to learn long-term dependencies without requiring prior knowledge of sequence length or manual bias initialization.
  • To improve model robustness and interpretability by allowing a small subset of units with slow decay factors to retain task-relevant information.

Proposed method

  • Replace the standard sigmoid forget gate in LSTMs with a power law forget gate that controls decay via a learnable exponent $p$.
  • Formulate the cell state update using a power law decay function $1/t^p$, where $p$ is a differentiable parameter learned during training.
  • Integrate the power law forget gate into the LSTM cell update rule, modifying the hidden state and cell state transitions accordingly.
  • Allow $p$ to be initialized or fixed during training to study its impact on information retention and model performance.
  • Use ablation studies and unit activation analysis to examine the role of low-decay units in maintaining long-term information.
  • Test the model on tasks requiring long-range dependencies, including the copy task, image classification, language modeling, and frequency discrimination with variable time intervals.

Experimental results

Research questions

  • RQ1Can a learnable power law forget gate improve long-range information retention in LSTMs beyond the limitations of exponential decay?
  • RQ2Does the pLSTM model achieve better performance on tasks requiring hundreds of timesteps of memory compared to standard LSTM and chrono-initialized LSTM?
  • RQ3Can the decay factor $p$ be effectively learned during training to adapt to varying task demands without prior knowledge of sequence length?
  • RQ4Is the pLSTM model more robust to unit ablation than standard LSTMs, indicating a more efficient or localized representation of long-term information?
  • RQ5Can the pLSTM maintain temporal precision without explicit time input, suggesting internal learning of time-related dynamics?

Key findings

  • The pLSTM achieved 99.49% accuracy on the frequency discrimination task with time input and 92.57% without, outperforming LSTM (68.59%) and LSTM-chrono (69.64%) in the asynchronous condition.
  • On the copy task with $T=500$, pLSTM achieved 99.29% accuracy, significantly outperforming standard LSTM (99.37% with time, 99.29% without) and showing robustness to unit ablation.
  • Ablation studies revealed that pLSTM is more robust to random unit dropout than standard LSTM and LSTM-chrono, especially under long sequence conditions.
  • The model learned to use a small subset of units with slow decay factors ($p$) to retain information over long timescales, suggesting a localized representation strategy.
  • The pLSTM maintained high performance even without explicit time input, indicating that the power law gate internalizes temporal information, enabling better generalization to variable time intervals.
  • Varying the initialization of $p$ and ablating later-reset units confirmed that the decay factor $p$ is critical for performance, with ablation of high-$p$ units causing the largest accuracy drop.

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.