arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02369cs.CLcs.AI
收藏

AutoContext:LLM代理的实例级上下文学习

AutoContext: Instance-Level Context Learning for LLM Agents

Kuntai Cai, Juncheng Liu, Xianglin Yang, Zhaojie Niu, Xiaokui Xiao, Xing Chen

AI总结:

AutoContext通过解耦探索与任务解决,为LLM代理构建结构化的实例上下文,显著提升了任务执行效率。

摘要:

当前的LLM代理通常缺乏实例级上下文,这包括具体的事实,如环境结构、系统配置和本地机制。因此,现有方法被迫将探索与任务执行交织在一起。这种耦合导致了冗余的交互和脆弱的决策,因为代理必须为每个新任务重复发现相同的信息。为了解决这个问题,我们引入了AutoContext,一种将探索与任务解决解耦的方法。AutoContext对每个环境实例进行系统性的、一次性探索,构建一个可重用的知识图谱。这种结构化的上下文使现成的代理能够直接访问必要的事实,从而消除冗余的探索。在TextWorld、ALFWorld、Crafter和InterCode-Bash上的实验显示了显著的收益:例如,ReAct代理在TextWorld上的成功率从37%提高到95%,突显了结构化实例上下文在高效代理系统中的关键作用。

英文摘要:

Current LLM agents typically lack instance-level context, which comprises concrete facts such as environment structure, system configurations, and local mechanics. Consequently, existing methods are forced to intertwine exploration with task execution. This coupling leads to redundant interactions and fragile decision-making, as agents must repeatedly rediscover the same information for every new task. To address this, we introduce AutoContext, a method that decouples exploration from task solving. AutoContext performs a systematic, one-off exploration to construct a reusable knowledge graph for each environment instance. This structured context allows off-the-shelf agents to access necessary facts directly, eliminating redundant exploration. Experiments across TextWorld, ALFWorld, Crafter, and InterCode-Bash demonstrate substantial gains: for example, the success rate of a ReAct agent on TextWorld improves from 37% to 95%, highlighting the critical role of structured instance context in efficient agentic systems.

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

↑