File 2611.34147

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

In brief

NVIDIA compares the usual approach, where the harness compacts an agent's history when the window fills, with letting the model decide when and what to compact through a context API.

How to apply it

  1. 1.Expose compaction as a tool the model can call, then A/B it against your harness-triggered summary at a tight token budget.
  2. 2.Log when and how often the model compacts. The paper reports that models differ widely here and that prompt changes shift the timing.

Key results

Quoted from the abstract
We gave models control over their own context in NVIDIA's open source agent harness, and compared the two strategies on document research and machine learning engineering across context budgets from 8K to 512K tokens.
Models that use the context API effectively reach higher accuracy, often with fewer input tokens, especially at tight budgets: GPT 6.1 nearly triples its score at a 32K budget on OfficeQA Pro v2 (21% → 56%), and Kimi gains with up to 41% fewer input tokens.
Finally, we show that inference engines can make model-driven edits cheaper: by reusing the KV cache of the unchanged suffix after an edit, we cut prefill compute by up to 15% per request with no measurable change in accuracy.
Original abstractShow

Agent harnesses today manage context on the model's behalf: when the window fills, the harness triggers a compaction that summarizes the history. We study the alternative, model-driven context management, in which the model itself decides when and what to compact through a context API. We gave models control over their own context in NVIDIA's open source agent harness, and compared the two strategies on document research and machine learning engineering across context budgets from 8K to 512K tokens. Models that use the context API effectively reach higher accuracy, often with fewer input tokens, especially at tight budgets: GPT 6.1 nearly triples its score at a 32K budget on OfficeQA Pro v2 (21% → 56%), and Kimi gains with up to 41% fewer input tokens. Models differ widely, however, in how often they use the API, how aggressively they compact, and when they start compacting, and prompt changes shift that timing. Finally, we show that inference engines can make model-driven edits cheaper: by reusing the KV cache of the unchanged suffix after an edit, we cut prefill compute by up to 15% per request with no measurable change in accuracy. Together, these results point to a new co-design frontier: models trained to manage their own context, served by inference engines that support KV cache editing.

Ask the paper

Questions are answered from the full text, with the passages quoted. This goes live once the AI key is connected; until then you'll get a note saying so.

Correspondence, re: arXiv:2611.34147Preview

Ask a question about Letting Models Manage Their Own Context: Where We Stand. Answers will come from the full paper and quote the passages they use.

Filed nearby

  1. 2611.1432010 Nov 2026Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM AgentsMemory can make agents worse when they follow a wrong or misread lesson. WikiTrace stores each lesson linked to the trajectory it came from, so the agent can check it.Context & memory
  2. 2611.037432 Nov 2026EvoMemState: Evolving Memory State for Personal AgentsEvoMemState models a personal agent's memory as evolving state: facts plus how they relate, stay valid and apply to the current request, instead of a flat list of facts.Context & memory
  3. 2610.3407325 Oct 2026Memory Tax: Dissecting the Net Value of Agent MemoryA large evaluation finds that many dedicated agent memory systems underperform naive RAG over raw history. The authors call the losses a 'memory tax'.Context & memory1 citedMust-read