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
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, \emph{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: \textbf{GPT 6.1 nearly triples its score at a 32K budget} on OfficeQA Pro v2 (21\%~~56\%), and \textbf{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 \textbf{inference engines can make model-driven edits cheaper}: by reusing the KV cache of the unchanged suffix after an edit, \textbf{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.
Create a lesson
Related papers
What Is a Theory Worth to an LLM Solver? Measuring, Inducing, and Merging Theories in Context
Shared title terminologycs.AIJun Gao, Shuchao Bi
EgoUseBench: Benchmarking Computer-Use Agents under Evolving First-Person Contexts
Shared title terminologycs.AIYurun Chen, Biao Yi, Qihang Yu et al.
SOLO: Towards Sample-Faithful and Detectable LLM Watermarking under Repeated Sampling via Content-Anchored Single-Owner Contexts
Shared title terminologycs.AIZhongliang Guo, Yan Lin, Yifei Qian et al.
REFORGE: LLM-Assisted RTL Bug Repair with Structured Context and Verification Feedback
Shared title terminologycs.AITanvir Hossain, Sudipta Paria, Aidan Gleason Myers et al.
No Fixed Configuration Is Best: Context- and Cost-Aware Tuning of LLM Pipelines, with an Application to Schema Matching and Mapping
Shared title terminologycs.AIGokhan Kirlik, Xiuwen Zheng, Anirudh Sriram