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

NVIDIA

Published November 25, 2026 · on the feed November 26, 2026 · ▲ 18 · arXiv 2611.34147

AgentsEfficiency & inference Full code arXiv ↗Hugging Face ↗

The abstract

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 \nooa, 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\%~rightarrow~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.

The Brief

2:25

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Letting Models Manage Their Own Context. Where We Stand. By Alessio Devoto and six others, from NVIDIA. Published on the twenty-fifth of November.

Today, agent harnesses manage context for the model. When the window fills up, the harness triggers a compaction that summarizes the history. This work studies the alternative, which the authors call model-driven context management. Here the model itself decides when to compact and what to compact, through a context API. The headline claim: models that use that API effectively reach higher accuracy, often while consuming fewer input tokens, and the advantage is largest when the budget is tight.

To test it, the authors gave models control of their own context inside NVIDIA's open source agent harness. They compared the two strategies on document research and on machine learning engineering, with context budgets ranging from eight thousand tokens up to five hundred twelve thousand tokens.

Two results stand out. GPT 6.1, at a budget of thirty-two thousand tokens on OfficeQA Pro v2, nearly triples its score, going from twenty-one percent to fifty-six percent. Kimi improves while using up to forty-one percent fewer input tokens. Those are two different kinds of win. One is a better answer at the same budget. The other is a gain that also comes with less input. Both point the same way: a model that chooses its own moments to compact can do more with a small window than a harness that compacts only when the window is full.

A second finding concerns serving. Inference engines can make edits driven by the model cheaper. After an edit, the KV cache of the unchanged suffix can be reused, and doing so cuts prefill compute by up to fifteen percent per request, with no measurable change in accuracy. The idea is simple to state. When the model edits part of its context, the rest does not have to be recomputed from scratch.

The picture is not uniform. Models differ widely in how often they call the API, in how aggressively they compact, and in when they start compacting. Changing the prompt shifts that timing. So the gains belong to models that use the API effectively, not to every model handed the controls. The fifteen percent saving is an upper bound per request, and the comparisons cover two kinds of task: document research and machine learning engineering.

The subtitle is honest about the state of things. Some models already manage their own context well, others use the controls unevenly, and serving infrastructure can be shaped to make this cheaper. The authors read this as a new co-design frontier: models trained to manage their own context, served by inference engines that support editing the KV cache.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.