2025-10-07 · 专家 · 数据科学 · 自然语言处理 · 机器学习

Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models

该论文提出了ACE(Agentic Context Engineering)框架,通过构建和优化语言模型的应用上下文,实现了可扩展、高效且自我改进的大型语言模型系统。

更新于 2025-10-08。作者:Qizheng Zhang、Changran Hu、Shubhangi Upasani、Boyuan Ma、Fenglu Hong、Vamsidhar Kamanuru、Jay Rainton、Chen Wu、Mengmeng Ji、Hanchen Li、Urmish Thakker、James Zou、Kunle Olukotun。

中文摘要

大型语言模型(LLM)的应用,如智能体和特定领域的推理,越来越依赖于上下文适应——通过指令、策略或证据修改输入,而不是通过权重更新。先前的方案提升了可用性,但往往遭受简短偏差的困扰,这会导致对简洁摘要的领域洞察力下降,以及上下文崩溃,其中迭代重写会随着时间的推移侵蚀细节。基于动态速查表引入的自适应记忆,我们提出了ACE(智能体上下文工程)框架,该框架将上下文视为不断发展的剧本,通过生成、反思和编纂的模块化过程积累、精炼和组织策略。ACE通过结构化的增量更新防止崩溃,这些更新保留详细知识并随着长上下文模型进行扩展。在智能体和特定领域的基准测试中,ACE在离线(例如,系统提示)和在线(例如,智能体记忆)方面优化上下文,始终优于强大的基线:智能体上提升了10.6%,金融领域提升了8.6%,同时显著减少了适应延迟和部署成本。值得注意的是,ACE能够在没有标记监督的情况下有效地进行适应,而是通过利用自然执行反馈。在AppWorld排行榜上,ACE在总体平均分上与排名第一的生产级智能体相匹配,在更难的测试挑战分割上甚至超越了它,尽管使用了较小的开源模型。这些结果表明,全面、不断发展的上下文能够实现具有低开销的扩展、高效和自我改进的LLM系统。

英文摘要

Large language model (LLM) applications such as agents and domain-specific reasoning increasingly rely on context adaptation -- modifying inputs with instructions, strategies, or evidence, rather than weight updates. Prior approaches improve usability but often suffer from brevity bias, which drops domain insights for concise summaries, and from context collapse, where iterative rewriting erodes details over time. Building on the adaptive memory introduced by Dynamic Cheatsheet, we introduce ACE (Agentic Context Engineering), a framework that treats contexts as evolving playbooks that accumulate, refine, and organize strategies through a modular process of generation, reflection, and curation. ACE prevents collapse with structured, incremental updates that preserve detailed knowledge and scale with long-context models. Across agent and domain-specific benchmarks, ACE optimizes contexts both offline (e.g., system prompts) and online (e.g., agent memory), consistently outperforming strong baselines: +10.6% on agents and +8.6% on finance, while significantly reducing adaptation latency and rollout cost. Notably, ACE could adapt effectively without labeled supervision and instead by leveraging natural execution feedback. On the AppWorld leaderboard, ACE matches the top-ranked production-level agent on the overall average and surpasses it on the harder test-challenge split, despite using a smaller open-source model. These results show that comprehensive, evolving contexts enable scalable, efficient, and self-improving LLM systems with low overhead.

解读

一句话总结

该论文提出了ACE(Agentic Context Engineering)框架,通过构建和优化语言模型的应用上下文,实现了可扩展、高效且自我改进的大型语言模型系统。

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

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

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

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

来源