2025-10-02 · 专家 · 自然语言处理 · 机器学习

ACON: Optimizing Context Compression for Long-horizon LLM Agents

提出了一种名为ACON的统一框架,用于优化长时程LLM代理的环境观察和交互历史压缩,以减少内存使用并提高效率。

更新于 2025-10-02。作者:Minki Kang、Wei-Ning Chen、Dongge Han、Huseyin A. Inan、Lukas Wutschitz、Yanzhi Chen、Robert Sim、Saravan Rajmohan。

中文摘要

大型语言模型(LLMs)正越来越多地被部署在动态的、现实世界环境中,作为代理角色,其成功既需要推理能力又需要有效使用工具。对于代理任务而言,一个核心挑战是上下文长度的不断增加,因为代理需要积累长时间的动作和观察历史。这种扩展增加了长期任务的成本并降低了效率,然而,先前关于上下文压缩的研究大多集中在单步任务或狭窄的应用上。我们引入了代理上下文优化(ACON),这是一个统一的框架,它可以最优地将环境观察和交互历史压缩成简洁却信息丰富的浓缩形式。ACON利用自然语言空间中的压缩指南优化:在给定的成对轨迹中,如果完整上下文成功但压缩上下文失败,能力强大的LLMs将分析失败的原因,并相应地更新压缩指南。此外,我们提出将优化的LLM压缩器提炼成更小的模型,以减少额外模块的负担。在AppWorld、OfficeBench和多元目标问答上的实验表明,ACON将内存使用量降低了26-54%(峰值令牌),同时在很大程度上保留了任务性能,当提炼成更小的压缩器时,准确性保留超过95%,并且作为长期代理的较小LLMs性能提升了高达46%。

英文摘要

Large language models (LLMs) are increasingly deployed as agents in dynamic, real-world environments, where success requires both reasoning and effective tool use. A central challenge for agentic tasks is the growing context length, as agents must accumulate long histories of actions and observations. This expansion raises costs and reduces efficiency in long-horizon tasks, yet prior work on context compression has mostly focused on single-step tasks or narrow applications. We introduce Agent Context Optimization (ACON), a unified framework that optimally compresses both environment observations and interaction histories into concise yet informative condensations. ACON leverages compression guideline optimization in natural language space: given paired trajectories where full context succeeds but compressed context fails, capable LLMs analyze the causes of failure, and the compression guideline is updated accordingly. Furthermore, we propose distilling the optimized LLM compressor into smaller models to reduce the overhead of the additional module. Experiments on AppWorld, OfficeBench, and Multi-objective QA show that ACON reduces memory usage by 26-54% (peak tokens) while largely preserving task performance, preserves over 95% of accuracy when distilled into smaller compressors, and enhances smaller LMs as long-horizon agents with up to 46% performance improvement.

解读

一句话总结

提出了一种名为ACON的统一框架,用于优化长时程LLM代理的环境观察和交互历史压缩,以减少内存使用并提高效率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt