Introduction
Neural sequence models like LSTMs and RNNs have revolutionized natural language processing, yet they remain plagued by "sequential recency bias." This structural predisposition causes models to over-rely on local context—the most recent words—while struggling to capture information from earlier in a sequence. While previous attempts to address this have utilized syntactic trees or word-level memory, these approaches are often computationally expensive or require labor-intensive human annotation.
This paper introduces the Span-Based Neural Buffer (SNB), a memory-efficient architecture designed to overcome recency bias and the "simple sentence dominance problem." By representing context as chunks of words (spans) and employing a specialized training strategy, SNB achieves state-of-the-art performance on major language modeling benchmarks.
Methodology
The SNB architecture consists of three primary components that work in tandem to balance local and global context.
1. Span-Based Neural Buffer
Instead of storing a representation for every individual word—which is memory-intensive—the SNB groups the sequence history into fixed-length spans of size $L$. Each span is represented by a "RNN-minus" feature: the difference between the hidden states at the end and the beginning of the span ($h_i - h_{i-L+1}$). This "delta" efficiently captures the semantic information of a multi-word phrase without requiring a formal grammar parser.
2. Gated Interpolation and Policy Network
A small policy network acts as a gate, determining the relative importance of the standard sequential RNN (local context) versus the neural buffer (long-distance context). This allows the model to dynamically decide when to look back at historical spans to improve prediction accuracy.
3. Dual-Strategy Training
To prevent the model from "getting lazy" and relying solely on local context—a phenomenon known as simple sentence dominance—the authors implemented two training innovations:
- Annealing: A high "temperature" is used during training to distribute gradients more evenly, ensuring the buffer has the opportunity to learn before the local RNN "explains away" the data.
- Intrinsic Reward: The gating decision is treated as a reinforcement learning problem. The model receives a reward when the buffer provides a more accurate prediction than the local RNN, incentivizing the exploration of long-distance dependencies.
Experimental Results
The SNB model was evaluated on the Penn Treebank (PTB) and WikiText-2 (WT2) datasets. In both cases, the addition of the Span-Based Neural Buffer led to significant improvements in perplexity, setting new state-of-the-art records.
On the Penn Treebank, the model achieved a perplexity of 43.9, outperforming the previous best of 46.01. Similarly, on WikiText-2, perplexity dropped to 35.2 from the previous SOTA of 38.07. Ablation studies confirmed that both the annealing process and the intrinsic reward mechanism are critical to these gains; removing either component resulted in a marked decrease in performance.
Conclusion and Future Work
The Span-Based Neural Buffer provides a computationally efficient way to incorporate long-distance context into sequence models. By approximating phrase structures through spans and using reinforcement learning to overcome training biases, the authors have demonstrated a path toward more robust language modeling.
Future research may explore dynamic span lengths to better reflect natural linguistic boundaries and investigate the integration of SNB into Transformer-based architectures to further enhance their ability to process extremely long sequences.
Summary updated