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

ExpGraph: 面向LLM智能体的模型无关经验学习与图结构记忆

ExpHarness: Model-Agnostic Experience Learning through a Trainable Harness

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Nanyang Technological University(南洋理工大学);Meta Monetization AI(Meta 营收人工智能)

Tao Feng, Chongrui Ye, Fangxu Yu, Tianyang Luo, Jingjun Xu, Xueqiang Xu, Haozhen Zhang, Weizhi Zhang, Zijie Lei, Zhigang Hua, Yan Xie, Shuang Yang, Jiaxuan You

AI总结:

提出ExpGraph框架,通过图结构记忆和强化学习实现冻结LLM执行器的外部经验复用,在问答、数学推理、代码生成和多步智能体任务上显著提升性能并减少交互步骤。

摘要:

大型语言模型(LLM)智能体在推理、工具使用和多步交互方面表现出强大的能力,但它们通常从零开始解决任务,未能重用先前经验中的成功策略或失败教训。对收集的经验进行微调可以改善重用,但当出现更强或更合适的执行器时,这种方法不够灵活。我们提出ExpGraph,一个模型无关的经验学习框架,使冻结且可替换的LLM执行器能够通过外部经验重用而无需参数更新来改进。ExpGraph将历史轨迹总结为可重用的技能和失败教训,将它们组织为自进化经验图中的节点,并通过图扩散和效用感知排序检索有用的经验。一个轻量级的检索副驾驶通过强化学习进行训练,使用比较有无检索经验时执行器性能的反馈,同时图根据下游任务结果在线更新。我们在ExpSuite上评估ExpGraph,涵盖问答、数学推理、代码生成以及包括ALFWorld和AppWorld在内的多步智能体环境。ExpGraph在静态任务上,对于较小和较大的执行器,分别比最强基线提高12.2%和4.7%;在智能体环境中提高21.4%和12.7%,同时平均交互步骤减少12.7%和21.6%。消融实验表明,图结构经验、效用感知排序和自适应检索共同实现了跨不同任务和执行器模型的有效经验重用。

英文摘要:

Large language model (LLM) agents increasingly operate within a harness, the scaffolding that determines what enters the executor's context, yet the experience they accumulate across tasks rarely flows back into this harness. Existing approaches include executor fine-tuning and external memory retrieval, but combining task-adaptive retrieval with experience reuse across frozen executors remains challenging. To this end, we introduce ExpHarness, a learnable experience harness that improves frozen and replaceable LLM executors without modifying their parameters. Specifically, ExpHarness distills trajectories into reusable skills and failure lessons within a self-evolving experience graph, and trains a lightweight retrieval copilot that decides, per task, how broadly to explore the graph and how strongly to favor historically useful experiences over merely similar ones. The copilot is optimized with reinforcement learning from a utility-grounded reward combining the with/without-experience score difference and an absolute-performance term; the same reward updates the graph during training. Extensive experiments on ExpSuite, spanning 10 static benchmarks and 2 agentic environments, show that ExpHarness improves over the strongest baseline by 12.1% and 4.5% on static tasks and by 21.4% and 12.7% on agentic tasks with the smaller and larger executors, respectively, while reducing interaction steps by up to 21.6%. Transfer experiments further examine reuse of the learned harness across executors of different scales and reasoning capabilities, with joint graph and copilot transfer performing closest to target-specific training among the evaluated transfer variants.

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

↑