Papers
arxiv:2611.34147

Letting Models Manage Their Own Context: Where We Stand

Published on Nov 25
· Submitted by
Alessio Devoto
on Nov 26
Authors:
,
,
,
,
,
,

Abstract

Model-driven context management through a context API improves accuracy and token efficiency over harness-triggered compaction, while reusing KV caches after edits reduces prefill compute.

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.

Community

Paper submitter

We gave models control over their own context: on OfficeQA Pro v2, GPT nearly triples its score at tight budgets, and Kimi gains with up to 41% fewer input tokens. This opens a new co-design frontier: models trained to manage their own context, served by inference engines that support KV cache editing.

Harness-driven compaction is dumb and that's exactly why I trust it — when my agent truncates history I can diff the transcript and point at the chunk that went missing. Model-driven compaction moves that into a sampling step I can't reproduce, so the number I care about isn't accuracy across the 8K–512K sweep, it's recoverability: after a run, can you reconstruct why a chunk got dropped and whether it was load-bearing? I want a drop log — stated reason, triggering turn, timestamp — because otherwise the first production bug is going to be "it forgot the schema it read in turn 3" with nothing to point at. The other thing worth counting is that a context API is one more call that can fail silently, and at 8K the model burns turns managing memory instead of doing the task. I'd want the token accounting to include the management overhead, not just the retained input, or the budget comparison against a fixed window is flattering itself.

Sign up or log in to comment

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2611.34147 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2611.34147 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2611.34147 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.