You don't need long context

Peter Belcak, Saurav Muralidharan, Jindong Jiang, Yonggan Fu, Wonmin Byeon, Hanrong Ye, Ryan Angilly, Ali Taghibakhshi, Shih-Yang Liu, Siru Ouyang, Greg Heinrich, Pavlo MolchanovarXiv 2026

TL;DR

Long-context windows are the current "arms race" in LLM development, but they come with a massive hidden tax: generating tokens at the end of a 256K context can be up to 7x more expensive and significantly slower than at 16K. This paper demonstrates that through "compaction" (distilling history) and "selective reading" (using tools to query long documents), frontier models can match or even exceed their long-context performance while staying within a tiny 16K–48K token budget.

What Problem Does This Paper Address?

We are currently in an era of "context window inflation," with models supporting 1M+ tokens. While impressive, this isn't free. Because of the linear relationship between the computational cost of a token and its depth in the context, later tokens are significantly more expensive to generate.

The cost of long context increases dramatically as the window size grows.

For the end user, this cost is often masked by flat-rate retail pricing, but for providers and local deployments, long context leads to "decode throughput collapse" and massive memory footprints. The authors tackle a fundamental question: Are these massive contexts actually necessary for task accuracy, or are we just being inefficient?

Methods

The researchers introduced two primary strategies to keep contexts short without losing "memory":

  1. Compaction Regimes: Instead of letting the conversation history grow indefinitely (Full-History Accumulation), they tested End-of-Conversation Compaction (EoCC), where the model summarizes its state once a threshold is hit, and Single-Action Compaction (SAC), where the model updates a "semantic state" after every single action.
  2. Selective Input Reading: For tasks involving massive documents, they stopped pasting the whole file into the prompt. Instead, they gave the agent standard Bash tools (grep, sed, awk) to search for and read only the relevant snippets of the file.
Three context-management regimes: FHA (baseline), EoCC (threshold-based), and SAC (per-action).

They evaluated these methods using a ReAct-style agent loop across two major categories of workloads: Long-Horizon (tasks requiring many steps, like software engineering) and Long-Input (tasks requiring info from massive documents).

Datasets

The study employed a comprehensive suite of benchmarks:

  • Long-Horizon (LCW1): SWE-bench (Verified & Multilingual) for software engineering, Terminal-Bench 2.1 for CLI tasks, and FRAMES for multi-hop reasoning.
  • Long-Input (LCW2): LongBench v2, LOONG, and AA-LCR for realistic document QA, plus "needle-style" benchmarks like NIAH (Needle In A Haystack), RULER, Counting-Stars, and BABILong.

Key Insights and Ideas

  • The "Aha" Moment on Compaction: The authors found that "summarization" is the wrong way to think about compaction. A good compaction isn't a narrative of what happened; it’s a "brief for further execution." It must include the original task, the current plan, and "cherry-picked" artifacts relevant to the next steps.
  • Bounded Information Needs: Even as document lengths grow exponentially, the amount of information an agent needs to solve a specific question remains remarkably flat. Figures in the paper show that for a 1M token document, an agent often only needs a few thousand tokens of "working memory" to find the answer.
  • Semantic State Space Models (SSSMs): The authors propose a new paradigm. Instead of State Space Models (SSMs) that maintain a "black-box" neural state, we should move toward SSSMs that maintain an explainable, natural language state between turns. This is more data-efficient to train and vastly more token-efficient to run.

Key Results

The quantitative results strongly support the "short context" argument:

  • Cost & Speed: Reducing context from 256K to 16K yields a 3.6x to 7x speedup in token generation on identical hardware.
  • Accuracy: On long-horizon tasks (Figure 5), models like Claude 4.5 and GPT 5.6 Sol maintained or improved accuracy while using 80-90% less context. On the "Needle In A Haystack" (NIAH) test, selective reading achieved 100% accuracy while using a tiny fraction of the baseline's tokens.
  • Extreme Compaction: In the SAC regime (compacting after every action), Claude 4.5 actually improved its performance on Terminal-Bench while keeping its median peak context under 9K tokens.
Accuracy remains stable or improves even as the total context limit is drastically reduced.

Limitations and Future Work

While the paper argues we don't need long context for the tasks tested, it doesn't prove that long context is never beneficial. There may be "holistic" tasks (e.g., "summarize this entire 1M token book") where selective reading struggles.

The authors suggest that future work should focus on post-training models specifically to be SSSMs—teaching them to be disciplined about state maintenance and tool use from the start, rather than relying on the "brute force" of massive KV caches. If we embrace this, model context windows could shrink drastically, making frontier-level intelligence much cheaper and faster to deploy.

Summary updated

Abstract

Later tokens are costlier to generate than earlier tokens. On frontier open weight models, the disparity in cost may rise to as much as 7x. Through frequent compaction, we show across a broad range of long-horizon and long-input tasks that frontier language models sacrifice little to no task accuracy when maintaining short contexts. We further demonstrate that LLM performance does not collapse on long-horizon software engineering tasks even when taking at most one action per context, and based on that we outline the concept of semantic state space models (SSSMs). Our findings question the need for long-context language models.
BibTeX
@misc{belcak2026you,
  author = {Peter Belcak and Saurav Muralidharan and Jindong Jiang and Yonggan Fu and Wonmin Byeon and Hanrong Ye and Ryan Angilly and Ali Taghibakhshi and Shih-Yang Liu and Siru Ouyang and Greg Heinrich and Pavlo Molchanov},
  title = {{You don't need long context}},
  year = {2026},
  eprint = {2611.05306},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.05306},
}
Figure