让AI自己管记忆,分数翻近三倍
现在长对话的记忆是「外部程序」在管:窗口一满,外面的框架就自动把历史压缩成摘要,模型自己没得选。这篇把决定权交给模型——给它一个「上下文接口」,让它自己判断什么时候压、压掉什么。在英伟达的开源 agent 框架 nooa 里,拿文档研究和机器学习工程两类任务、8K 到 512K 的预算对比两种做法:会用这个接口的模型准确率更高,还常常更省输入。预算越紧差距越大,GPT 6.1 在 32K 预算的 OfficeQA Pro v2 上从 21% 跳到 56%,Kimi 最多省 41% 的输入 token。但模型之间差别很大:多久调一次、压得多狠、什么时候开始压,各不相同,连改提示词都会改变这个时机。他们还顺手证明,推理引擎可以配合:编辑后复用未改动部分的 KV 缓存,单次请求的预填充算力最多省 15%,准确率看不出变化。它不是你明天能用的功能,但它指出了一个方向——模型被训练成自己管记忆,引擎被改造成支持这种编辑,两头一起设计。
📄 原文摘要(英文)
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.