NVIDIA lets agents compact their own context: GPT 6.1 nearly triples at a 32K budget

Letting Models Manage Their Own Context: Where We Stand

Alessio Devoto, Avinash Vem, Tara Safavi, Sanjay Kariyappa, Yu-Hsuan Tseng, Paul Furgale, Ricardo Silveira Cabral

cs.AI

2026-11-25

NVIDIA gave models control over their own context compaction in the NOOA harness: GPT 6.1 jumps from 21% to 56% at a 32K budget, and Kimi uses up to 41% fewer input tokens.

What problem this solves

When an agent runs a long task, its history keeps growing: tool calls, outputs, model turns. Locating relevant information gets harder (context rot) until the window overflows. The standard fix is harness-driven management: the harness watches usage and, at a threshold, triggers a compaction that summarizes the earlier history. The model's only job is writing that summary.

When to compact, and which span to compact, are decided by harness heuristics that know nothing about the task at hand, and summaries can drop exactly the evidence the task needed. The NVIDIA team tested the other path: treat context as a workspace the model edits itself. Codex already ships an experimental mode in this spirit, so the question is now an engineering one: can current models use this capability, and what is it worth in score?

Method

The experiment runs inside NOOA, NVIDIA's open-source agent harness, comparing two strategies:

Two benchmarks: OfficeQA Pro v2, 90 questions on U.S. federal receipts and expenditures answered by searching a large document corpus; and MLE-bench Lite, 22 Kaggle competitions requiring the agent to write, debug, and submit code. Context budgets sweep from 8K to 512K tokens; shrinking the budget raises context pressure and stands in for longer tasks. Exceeding the limit triggers a drop-oldest fallback, and three failures count as a wrong answer. Four models, none fine-tuned for this: GPT-6.1 Sol, Kimi K3, DeepSeek V4 Pro, Claude Opus 5.5.

Results

The largest gaps sit at tight budgets on OfficeQA Pro v2:

SettingHarness-drivenModel-driven
GPT-6.1 Sol, 32K budget21%56%
Kimi K3, 32K budget, cumulative input62M tokens, 41%36M tokens, 43%
Kimi K3, 64K budget52%57%, about 11% fewer input tokens

Gains shrink as the budget grows, and the strategies converge once the window is large. On MLE-bench Lite the effect is much smaller and confined to the tightest budgets, likely because those tasks use less context. Differences between models are starker than differences between strategies: GPT, Kimi, and DeepSeek call the API in 42-53% of tasks; Opus does in 4%. GPT's median compaction shrinks the request by 3.7x (Kimi 2.1x, DeepSeek 1.8x, Opus 1.5x), and it retrieves archived originals after 19% of compactions (Kimi 7%, DeepSeek 3%). At 64K, on first pressure warning, Opus wraps up and answers in 88% of episodes; GPT reads the API docs before compacting in 69%; Kimi compacts straight away in 49%.

The paper names its most counterintuitive finding context anxiety: remove the 85% instruction and Kimi's median first compaction falls from about 84% of the budget to 29% (at 128K), DeepSeek's from 83% to 40% (at 256K), while Opus starts compacting early and often (median 16% at 128K). Compacting early costs accuracy: at 128K and above, the no-instruction variants of Kimi and DeepSeek score about 8 points below the harness baseline. Kimi K3's RL training penalizes overly long rollouts, a plausible source of its token thrift.

On the serving side, a suffix KV reuse prototype in SGLang, run with Qwen3.6-27B at 32K context against standard prefix caching, cut prefill tokens per request by 15.1% on OfficeQA Pro, about 5% on MLE-bench Lite, and 1-4% on DeepSWE, with no measurable accuracy change. OfficeQA saves the most because the suffix surviving an edit averages about 10K tokens, roughly 60% of the prompt.

Why it matters

For anyone building agent infrastructure, this turns ownership of context management from a matter of taste into a measured question: handled well, the same budget can nearly triple a score. The 42-53% versus 4% call-rate spread says this is a trained capability that prompting will not close. The serving section flags a coupling that gets missed: editing context breaks prefix KV reuse, so a shorter context is not automatically cheaper, and suffix reuse is a prototype that closes the gap. Read it as a measurement report plus a systems prototype rather than a new method; its value is baselining a co-design direction across model, harness, and inference engine. NOOA is open source, so trying it in your own pipeline is straightforward.

Limitations

The authors list four: small benchmarks (90 questions plus 22 competitions), so small differences may not be significant; budget-shrinking is a proxy for long-horizon work, and the drop-oldest fallback can itself move scores; the four models' training is unknown, and the explanation for GPT's strength is conjecture; KV reuse was tested with one open model in one engine, measuring prefill compute rather than end-to-end latency or cost.

Two more things to watch. The harness never actually leaves the picture in the model-driven setup: the 85% instruction, the pressure warning, and the fallback are all harness-side scaffolding, and Kimi and DeepSeek drop 8 points the moment the instruction goes away, so current self-management leans heavily on prompting. The single biggest gain (21% to 56%) lands on the one model whose training the authors admit they cannot rule out, which puts an asterisk on cross-model reproducibility.

Terms

Source

What people are saying

Related papers

All paper explainers