Short-Context Dominance: How Much Local Context Natural Language Actually Needs?
Vala Vakilian, Zimeng Wang, Ankit Rawat, Christos Thrampoulidis
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Reasoning, Memory & RAG › Diffusion Language Model Decoding · Type: new method · Keywords: short-context dominance, minimum context length, distributionally aware proxy, bias mitigation, question answering
Areas: Long Context › Long-context mechanisms › Long-context reasoning
Summary
The paper shows that most natural language sequences need only a short local context, quantifies this with a new metric DaMCL, and proposes a decoding algorithm to mitigate short-context bias.
Explained to a 5-year-old
We looked at how many words a language model needs to guess the next word. Most of the time, only the last few words are enough. We made a simple way to tell when a sentence needs more words from earlier. Using this way, we helped the model pay attention to important long-range words. This makes the model answer questions better.
Explained to a 5-year-old, longer
People wanted to know how much of a sentence a computer needs to understand it. They used big language computers to see how many words before a word were needed. They found that for most sentences, only the last few words mattered. Some sentences needed more words from earlier in the sentence. The researchers created a simple trick to guess when a sentence needed more context. This trick works even when the computer is not just picking the most likely word. They used the trick to find sentences that needed long-range information. Then they changed how the computer reads those sentences to focus on the important earlier words. This helped the computer answer questions more accurately. The new method works for different kinds of language models. It also works for many different topics and writing styles. Overall, the study shows that using a bit of extra context can improve language understanding.
For a technical reader
The authors measured how much preceding context is actually required for accurate next-token prediction in large language models. They discovered that a large majority of sequences (75-80 %) need at most the last 96 tokens, regardless of total length. To identify sequences that defy this pattern, they proposed a distributionally aware proxy that can be evaluated without ground-truth next tokens. Using this proxy, they designed a decoding scheme that boosts tokens with long-range relevance, mitigating the bias introduced by short-context dominance. Experiments on question-answering benchmarks show that the bias-aware decoding improves performance across different model architectures.
Problem
Understanding how much local context is sufficient for accurate next-token prediction in language models remains unclear, and there is a need to identify sequences where short context fails.
Method
The approach uses large language models as statistical oracles to measure the minimum context length needed for accurate predictions, introduces a distributionally aware proxy for this metric, and designs a decoding algorithm that boosts tokens with long-range relevance based on the proxy.
Results
The study finds that 75-80 % of sequences up to 7k tokens need at most the last 96 tokens, and the proposed detector achieves high performance in distinguishing long- from short-context sequences, with bias mitigation improving performance on question-answering tasks.
Contributions
The paper quantifies short-context dominance across multiple datasets, proposes a distributionally aware proxy for minimum context length, and introduces a decoding algorithm to counteract the induced bias, demonstrating improved performance on question answering.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction