NVIDIA提出让模型自主管理上下文以优化Agent性能
Banger paper from NVIDIA on context management for agents.
Agent上下文管理是长程任务的核心瓶颈,这篇论文给出了模型自主决策压缩的具体数据对比和推理层优化方案,做Agent架构的同学值得参考。
Banger paper from NVIDIA on context management for agents.
NVIDIA 关于代理上下文管理的一篇精彩论文。
(bookmark it)
(收藏它)
They suggest a co-design where models are trained to manage their own context, and inference engines are built to serve it efficiently at scale.
他们提出了一种协同设计方法,即训练模型自行管理其上下文,并构建推理引擎以高效地大规模服务该上下文。
Context management is an important primitive for long-running agents. Today, the harness usually decides when to compact, by summarizing the history once the window fills.
上下文管理是长期运行代理的一个重要原语。目前,通常由框架决定何时进行压缩,即在窗口填满后对历史进行摘要。
The NVIDIA team gave models a context API inside NOOA, their open-source agent harness, so the model decides when and what to compact. They compared both approaches on document research and ML engineering tasks at budgets from 8K to 512K tokens.
NVIDIA 团队在 NOOA(其开源代理框架)中为模型提供了一个上下文 API,使模型能够自行决定何时以及压缩什么内容。他们在预算从 8K 到 512K token 的文档研究和 ML 工程任务上比较了这两种方法。
At a 32K budget, GPT 6.1 went from 21% to 56% on OfficeQA Pro v2 when it managed its own context. Kimi improved accuracy with up to 41% fewer input tokens.
在 32K 预算下,当 GPT 6.1 自行管理其上下文时,其在 OfficeQA Pro v2 上的得分从 21% 提升至 56%。Kimi 在输入 token 减少多达 41% 的情况下提高了准确率。
Models differ a lot in how often they call the API and how early they compact, and small prompt changes shift that timing.
不同模型调用 API 的频率和早期压缩的时机差异很大,而微小的提示词更改会改变这一时机。
Inference engines can make these edits cheaper too. Reusing the KV cache of the unchanged suffix after an edit cut prefill compute by up to 15% per request with no measurable accuracy change.
推理引擎也可以降低这些编辑的成本。在编辑后重用未变更后缀部分的 KV 缓存,每次请求可减少高达 15% 的预填充计算量,且精度无显著变化。
https://arxiv.org/abs/2611.34147
Chat with Paper: https://academy.dair.ai/papers/letting-models-manage-their-own-context-where-we-stand-2611.34147
与论文对话:https://academy.dair.ai/papers/letting-models-manage-their-own-context-where-we-stand-2611.34147
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力