NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Language Modeling With Implicit Cache Pointers

Ke Li, Daniel Povey, Sanjeev Khudanpur · DOI

Abstract

A cache-inspired approach is proposed for neural language models (LMs) to improve long-range dependency and better predict rare words from long contexts. This approach is a simpler alternative to attention-based pointer mechanism that enables neural LMs to reproduce words from recent history. Without using attention and mixture structure, the method only involves appending extra tokens that represent words in history to the output layer of a neural LM and modifying training supervisions accordingly. A memory-augmentation unit is introduced to learn words that are particularly likely to repeat. We experiment with both recurrent neural network- and Transformer-based LMs. Perplexity evaluation on Penn Treebank and WikiText-2 shows the proposed model outperforms both LSTM and LSTM with attention-based pointer mechanism and is more effective on rare words. N-best rescoring experiments on Switchboard indicate that it benefits both very rare and frequent words. However, it is challenging for the proposed model as well as two other models with attention-based pointer mechanism to obtain good overall WER reductions.

Introduction: The Challenge of Long-Range Dependencies

Standard neural language models (LMs), including LSTMs and Transformers, often struggle with two primary issues: capturing long-range dependencies and accurately predicting rare words. In natural language, rare words often exhibit "burstiness"—if a word like "photosynthesis" appears once, it is highly likely to appear again in the immediate context. While humans naturally track these repetitions, standard LMs often fail to do so because they rely on a fixed-size hidden state that decays over time.

Existing solutions, such as Pointer Sentinel Mixture Models (PSMM), employ complex attention mechanisms and mixture gates to decide when to copy a word from history. However, these architectures are computationally expensive and can be difficult to optimize. This research proposes a simpler, "implicit" cache-pointer mechanism that achieves similar or better benefits without the architectural overhead.

Methodology: Implicit Cache Pointers

The proposed model simplifies the pointer mechanism by treating history positions as additional classification categories within the standard output layer. The architecture incorporates three key innovations:

  1. Extended Output Layer: The model's output layer is extended beyond the standard vocabulary size ($V$) by appending $L$ extra units. These units represent the $L$ most recent words in the sequence history.
  2. Implicit Supervision: During training, the model uses an "at-least-one-hot" supervision vector. If the target word appears in the recent history at specific positions, those indices in the extended output layer are marked as targets alongside the standard vocabulary index. This encourages the model to learn that the correct next word can be retrieved from either the dictionary or the recent past.
  3. Memory-Augmented Unit: A small memory unit ($m_t$) is introduced to learn the "burstiness" of words. This unit helps the model determine if the current context is one where word repetition is likely, effectively acting as a learned signal for the "copy" operation.
Architecture of the proposed model showing the extended output layer (V, L, 1) and the memory-augmentation unit (m_t).

Experimental Results

The researchers evaluated the model across several standard benchmarks, including Penn Treebank (PTB) and WikiText-2 for perplexity, as well as Switchboard (SWBD) and Wall Street Journal (WSJ) for Automatic Speech Recognition (ASR) tasks.

Perplexity and Rare Word Performance

On the WikiText-2 dataset, the proposed model achieved a state-of-the-art perplexity of 74.3, significantly outperforming the baseline LSTM (84.8) and the more complex PSMM (80.8). The results indicate that the implicit pointer is particularly effective for rare words, which are difficult to learn from a general vocabulary but easy to "copy" from recent context.

Comparison of perplexity results on PTB and WikiText-2 datasets, demonstrating the superior performance of the proposed memory-augmented model.

ASR Performance

In N-best rescoring experiments on the Switchboard dataset, the model achieved a Word Error Rate (WER) of 10.8%, a marginal improvement over the baseline LSTM (10.9%). While the overall reduction was modest, qualitative analysis showed that the model specifically improved the recognition of rare, content-heavy words that are critical for downstream understanding.

Conclusion and Future Work

The "implicit cache pointer" provides a simple yet powerful way to improve neural LMs. By avoiding explicit attention mechanisms, the model remains efficient and architecture-agnostic, performing well with both LSTMs and Transformers.

A remaining challenge is the "training-inference mismatch" in ASR systems. During inference, the history may contain errors from previous decoding steps, which the pointer mechanism might propagate. Future research will focus on incorporating word-level confidence scores and error-adaptive training to make the system more robust to noisy histories in real-world applications.

Summary updated

BibTeX
@misc{li2020neural,
  author = {Ke Li and Daniel Povey and Sanjeev Khudanpur},
  title = {{Neural Language Modeling With Implicit Cache Pointers}},
  year = {2020},
  eprint = {2009.13774},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.13774},
}
Figure