arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.00615cs.AIcs.CL
收藏

ACON:面向长周期LLM智能体的上下文压缩优化

ACON: Optimizing Context Compression for Long-horizon LLM Agents

University of Washington(华盛顿大学)

Minki Kang, Wei-Ning Chen, Dongge Han, Huseyin A. Inan, Lukas Wutschitz, Yanzhi Chen, Robert Sim, Saravan Rajmohan

AI总结:

提出ACON框架,通过自然语言空间优化压缩策略,在不微调模型的情况下减少峰值token使用量26-54%并提升任务成功率,同时可蒸馏至小模型。

摘要:

大型语言模型(LLM)越来越多地被部署为动态真实环境中的智能体,其成功依赖于对动作和观察的精确记录。然而,长周期智能体任务中无限制的上下文增长导致两个关键瓶颈:高昂的推理内存成本以及因无关信息导致的推理退化。现有压缩方法未能完全解决这一问题,通常依赖脆弱的启发式规则或需要对专有或大规模LLM进行不切实际的参数更新。我们引入了智能体上下文优化(ACON),这是一个统一框架,可将观察和历史记录最优地压缩为简洁、信息丰富的表示。与先前工作不同,ACON采用自然语言空间中的优化:它基于智能体的失败分析迭代地细化压缩指南,在无需模型微调的情况下保留关键状态信息。为了进一步最小化计算开销,我们将优化后的压缩器蒸馏到更小的模型中。在AppWorld、OfficeBench和Multi-objective QA上的实验表明,与现有压缩基线相比,ACON将峰值token使用量减少了26-54%,同时提高了任务成功率。值得注意的是,它使较小的LM能够有效地作为长周期智能体运行,通过减轻上下文干扰实现了高达46%的性能提升。我们的代码可在https://github.com/microsoft/acon获取。

英文摘要:

Large language models (LLMs) are increasingly deployed as agents in dynamic real-world environments, where success depends on maintaining precise records of actions and observations. However, the resulting unbounded context growth in long-horizon agentic tasks makes two critical bottlenecks: prohibitive inference memory costs and reasoning degradation due to irrelevant information. Existing compression methods fail to fully address this, often relying on brittle heuristics or requiring parameter updates impractical for proprietary or large-scale LLMs. We introduce Agent Context Optimization (ACON), a unified framework that optimally compresses both observations and history into concise, informative representations. Distinct from prior works, ACON employs an optimization in natural language space: it iteratively refines compression guidelines based on failure analysis of the agent, ensuring critical state information is preserved without model fine-tuning. To further minimize computational overhead, we distill the optimized compressor into smaller models. Experiments on AppWorld, OfficeBench, and Multi-objective QA demonstrate that ACON reduces peak token usage by 26-54% while improving task success over existing compression baselines. Notably, it enables smaller LMs to function effectively as long-horizon agents, achieving up to 46% performance improvement by mitigating context distraction. Our code is available at https://github.com/microsoft/acon.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑