Summary (Overview)
- Core finding: Long contexts are not necessary for completing "long-context" tasks. Through frequent compaction (EoCC) and single-action compaction (SAC), frontier language models maintain task accuracy while operating with dramatically shorter contexts.
- Cost disparity: Generating later tokens costs 3.6×–7× more than earlier tokens on frontier open-weight models, depending on context window size (Figure 1, Figure 4).
- Long-horizon tasks (RQ1): End-of-conversation compaction (EoCC) matches or slightly improves full-history baseline accuracy across 6 benchmarks, with relative performance ranging from −3.7 to +5.6 percentage points for Claude Opus 4.5 and −3.3 to +4.4 for GPT 5.6 Sol.
- Long-input tasks (RQ2): Selective input reading with compaction as fallback matches or improves full-input baselines across 7 benchmarks, with cost savings ranging from 6.5× to 233.3×.
- Single-action compaction (RQ3): SAC preserves or improves accuracy for Claude Opus 4.5 on SWE-bench Verified (70.2% vs 70.0% baseline) and Terminal-Bench (51.8% vs 47.2%), while reducing median peak context to 7–9K tokens.
- Proposed concept: Introduces Semantic State Space Models (SSSMs) — models post-trained to maintain an explainable natural-language state between turns rather than accumulating full conversational history.
Introduction and Theoretical Foundation
Motivation
Token generation latency and memory footprint both grow with context length due to the inherent linear relationship between computational cost and token depth within a context. The paper identifies two primary sources of long contexts:
- LCW1 (Long-horizon tasks): Tasks requiring many sequential actions where context builds up as the model progresses (e.g., software engineering, agentic workflows).
- LCW2 (Long-input tasks): Tasks requiring operation across large input information (e.g., long-document QA).
Key Observation
The paper contrasts model context window sizes with literary works (Table 1):
| Literary Works | Words | Tokens | Models | Words | Tokens |
|---|---|---|---|---|---|
| The Old Man and the Sea | ~27K | ~37K | MiniMax M2.7 | ~150K | 200K |
| The Great Gatsby | ~48K | ~64K | Claude Opus 4.5 | ~150K | 200K |
| War and Peace | ~566K | ~753K | GLM 5.2 | ~750K | 1M |
| King James Old Testament | ~603K | ~802K | GPT 5.6 Sol | ~790K | 1.05M |
Research Questions
The central question RQ0 ("Are long contexts necessary?") decomposes into:
- RQ1: Can long-horizon tasks be completed without long contexts?
- RQ2: Can long-input tasks be completed without long contexts?
- RQ3: Can long-horizon tasks be completed taking no more than a single action per context?
Methodology
Definitions
- Inference step: One invocation of an LM to produce output (typically one agent turn).
- Input context: Complete token sequence made available to the LM at a given inference step.
- Long context: Context approaching ~256K tokens or more (significant fraction of frontier model context windows).
- Short context: Context limited to roughly 16K–50K tokens.
Benchmarks
Long-horizon task benchmarks:
- SWE-bench Verified (500 GitHub issue-resolution tasks)
- SWE-bench Multilingual (300 tasks across 9 languages)
- Terminal-Bench 2.1 (89 command-line tasks)
- FRAMES (824 multi-hop questions)
- 𝜏²-bench (184 retail/airline/telecom tasks)
- BFCLv3 (200 long-context tool-use episodes)
Long-input task benchmarks:
- LongBench v2 (503 questions, 8K–2M words)
- LOONG (1,600 multi-document questions)
- Artificial Analysis Long Context Reasoning (100 questions, ~100K tokens)
- Needle in a Haystack (125 instances, 16K–500K tokens)
- RULER (13 synthetic tasks at 256K and 500K)
- Counting-Stars (192 questions, 4K–128K tokens)
- BABILong (550 questions, 64K–1M tokens)
Models
- Closed-weight: Claude Opus 4.5, GPT 5.6 Sol (principal experiments)
- Open-weight (cloud throughput): GLM 5.2, Kimi K2.6, Qwen 3 Coder Next
- Open-weight (local, DGX Spark): Qwen 3.6 27B, Qwen 3 Coder Next, Gemma 4 31B, Step 3.7 Flash, MiniMax M2.7
Context-Management Regimes
- Full-History Accumulation (FHA): Baseline — all actions and observations appended to a single conversation.
- End-of-Conversation Compaction (EoCC): When context crosses a threshold, the model produces a bounded compaction of state; a fresh conversation starts with the original task + compacted state.
- Single-Action Compaction (SAC): Each conversation receives the task and current semantic state, performs exactly one action, updates state, then discards the conversation.
Long-Input Accommodation
Long inputs are stored as files in the agent's filesystem; the agent performs selective input reading using standard Bash tools (sed, awk, head), reducing long-input tasks to long-horizon tasks.
Empirical Validation / Results
RQ1: Long-Horizon Tasks
Across all benchmarks and compaction thresholds (16K/12K to 48K/36K):
- Claude Opus 4.5: Relative performance −3.7 to +5.6 ppts; cost savings 2.2×–8.8×
- GPT 5.6 Sol: Relative performance −3.3 to +4.4 ppts; cost savings 2.4×–5.0×
- No more than 5 out of 22 threshold configurations lose more than 2 ppts from baseline for either model.
RQ2: Long-Input Tasks
- Claude Opus 4.5: Relative performance −0.4 to +40.0 ppts; cost savings 6.5×–54.6×
- GPT 5.6 Sol: Relative performance +1.0 to +30.9 ppts; cost savings 4.4×–233.3×
- Conversation lengths remain broadly bounded even as document length grows (Figures 7–8), supporting the claim that task-relevant information is much smaller than raw input size.
RQ3: Single-Action Compaction
| Benchmark | Accuracy (%) — mini baseline | Best EoCC | SAC | Peak context (K) — mini (med/max) | Best EoCC (med/max) | SAC (med/max) |
|---|---|---|---|---|---|---|
| Claude Opus 4.5 | ||||||
| SWE-bench Verified | 70.0 | 74.8 (24K/18K) | 70.2 | 32/200 | 19/22 | 8/16 |
| Terminal-Bench 2.1 | 47.2 | 52.8 (32K/24K) | 51.8 | 27/130 | 24/31 | 9/19 |
| GPT 5.6 Sol | ||||||
| SWE-bench Verified | 84.4 | 88.8 (48K/36K) | 82.4 | 18/173 | 22/35 | 7/15 |
| Terminal-Bench 2.1 | 87.6 | 88.8 (48K/36K) | 84.3 | 17/133 | 23/40 | 8/37 |
Throughput Collapse with Context Size
Reducing context window from 256K to 16K yields:
- GLM 5.2: 3.6× more decoded tokens/second
- Kimi K2.6: 5.6× more
- Qwen 3 Coder Next: 7× more
Theoretical and Practical Implications
Theoretical Implications
-
Challenging the necessity of long contexts: The standard arguments for long contexts (long inputs, long conversational horizons) are insufficient — disciplined state maintenance and selective access remove the presumed necessity in every tested setting.
-
Semantic State Space Models (SSSMs): The paper proposes models post-trained to:
- Comprehend a language description of conversation state
- Reason about the next action
- Take an action and register its outcome
- Update the language state description for a separate inference instance to continue
Unlike traditional State-Space Models (SSMs) which maintain black-box neural states between tokens, SSSMs maintain explainable natural-language states between turns.
-
Connection to computability theory: The authors note the definition of computability rests on the assumption that anything computable can be computed by comprehending only bounded input at a time while maintaining finite state — suggesting long contexts may be an artifact of training rather than a necessity.
Practical Implications
- Cloud cost reduction: 3.6×–7× cost savings per generated token by serving at 16K rather than 256K context windows
- Local inference speedup: ~2× faster token generation on edge devices with shorter contexts
- Memory footprint reduction: Significant reduction in KV cache memory requirements
- Data efficiency: SSSMs may be more data-efficient to train since they don't require teaching models to attend to relevant patches of long earlier contexts
Conclusion
The paper provides affirmative answers to all three research questions:
- RQ1 (Yes): Long-horizon tasks can be completed without long contexts via frequent compaction, with broadly on-par performance.
- RQ2 (Yes): Long-input tasks can be completed without long contexts via selective input reading and compaction, with matching or improved performance.
- RQ3 (Yes): Long-horizon tasks can be completed with at most one action per context via SAC, with near-baseline performance and dramatically reduced peak context.
Main conclusion: Long contexts are not necessary for completing "long-context" tasks. The evidence suggests that with appropriate post-training adjustments, context window size requirements could be drastically reduced, significantly improving cloud token generation cost and local inference speed.
Future directions: The paper suggests training SSSMs as a potentially more efficient alternative to full-history-accumulating models, questioning why such models should be trained at all if SSSMs can match their performance. The authors acknowledge their evidence does not rule out tasks where long context is genuinely beneficial, but shows the standard arguments for long contexts are insufficient.
Related papers
- Self-Improvement Memory Enables Continual Recursive Self-Improvement
Self-Improvement Memory, which records harness edit rationale and outcomes, enables continual recursive self-improvement to outperform harness-only transfer by 2.36 points across changed benchmarks and models.
- Third Eye: Beyond Immediate Gains in Recursive Self-Improvement
Third Eye shows a model's immediate performance after self-update can look neutral while a further native update causes significant utility decline, varying by backbone.
- Self-WSP: Can Language Models Improve Themselves Through Weight-Space Programming?
A 0.8B model can self-improve by editing its own weights, quintupling GSM8K accuracy, but random edits match it, revealing search, not understanding, drives gains.