Skip to main content
QUICK REVIEW

[Paper Review] Multi-timescale Representation Learning in LSTM Language Models

Shivangi Mahto, Vy A. Vo|arXiv (Cornell University)|May 1, 2020
Topic ModelingComputer Science36 references7 citations
TL;DR

This paper proposes a theoretically grounded method to improve LSTM language models by aligning their memory unit timescales with the power-law decay of natural language dependencies. By enforcing an inverse gamma distribution of forget gate biases—derived from theoretical analysis—models achieve better perplexity, especially for rare words, and demonstrate interpretable, timescale-specific routing of information across units.

ABSTRACT

Language models must capture statistical dependencies between words at timescales ranging from very short to very long. Earlier work has demonstrated that dependencies in natural language tend to decay with distance between words according to a power law. However, it is unclear how this knowledge can be used for analyzing or designing neural network language models. In this work, we derived a theory for how the memory gating mechanism in long short-term memory (LSTM) language models can capture power law decay. We found that unit timescales within an LSTM, which are determined by the forget gate bias, should follow an Inverse Gamma distribution. Experiments then showed that LSTM language models trained on natural English text learn to approximate this theoretical distribution. Further, we found that explicitly imposing the theoretical distribution upon the model during training yielded better language model perplexity overall, with particular improvements for predicting low-frequency (rare) words. Moreover, the explicit multi-timescale model selectively routes information about different types of words through units with different timescales, potentially improving model interpretability. These results demonstrate the importance of careful, theoretically-motivated analysis of memory and timescale in language models.

Motivation & Objective

  • To understand how LSTM language models capture temporal dependencies across multiple timescales.
  • To determine the theoretically optimal distribution of timescales in LSTM units for modeling natural language's power-law decay of word dependencies.
  • To improve language model performance by explicitly enforcing this theoretical timescale distribution during training.
  • To investigate whether different types of words (e.g., rare vs. frequent) are selectively routed through units with specific timescales.
  • To enhance model interpretability by linking unit timescales to functional roles in information processing.

Proposed method

  • Derives a theoretical framework linking the forget gate bias in LSTM units to their timescale of memory retention.
  • Shows that the optimal distribution of timescales for modeling power-law decay in language is an inverse gamma distribution.
  • Trains LSTM language models with explicit regularization to enforce the inverse gamma distribution of forget gate biases.
  • Employs unit ablation during inference to assess the contribution of specific timescale groups to word prediction performance.
  • Groups LSTM units by their assigned timescales and measures the impact of ablating each group on perplexity across word frequency bins.
  • Compares performance of standard LSTMs with multi-timescale LSTMs on benchmark datasets (PTB and WikiText-2) using perplexity and frequency-specific metrics.

Experimental results

Research questions

  • RQ1What theoretical distribution of timescales in LSTM units best captures the power-law decay of word dependencies in natural language?
  • RQ2Can explicitly enforcing this theoretical distribution improve language model performance, particularly for long-range dependencies?
  • RQ3Do units with different timescales selectively process different types of words, such as rare or frequent words?
  • RQ4Is the information routing in the multi-timescale LSTM model interpretable, with distinct functional roles per timescale group?
  • RQ5How does the multi-timescale architecture compare to standard LSTMs in terms of perplexity and robustness to rare word prediction?

Key findings

  • The theoretical analysis predicts that forget gate biases in LSTM units should follow an inverse gamma distribution to optimally model power-law decay in natural language dependencies.
  • Standard LSTM language models trained on natural English (e.g., PTB and WikiText-2) learn to approximate the inverse gamma distribution of timescales, validating the theory.
  • Explicitly regularizing the forget gate biases to follow the inverse gamma distribution reduces overall perplexity, with the most significant gains observed on rare words (frequency < 100 occurrences).
  • Ablation studies show that long-timescale units (< 100 timesteps) are most critical for predicting low-frequency words, while short-timescale units (< 1 timestep) are most important for high-frequency words.
  • The multi-timescale model demonstrates selective information routing, where different word types are processed through units with functionally distinct timescales, enhancing interpretability.
  • The model's performance improvement is consistent across datasets, with measurable gains in perplexity and stronger generalization for rare word prediction.

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.