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

基于检索的LLM代理:学习从经验中学习

Retrieval-Augmented LLM Agents: Learning to Learn from Experience

NAVER LABS Europe(NAVER实验室欧洲)

Thomas Palmeira Ferraz, Romain Deffayet, Vassilina Nikoulina, Hervé Déjean, Stéphane Clinchant

AI总结:

本文提出结合微调与经验检索的方法,通过LoRA优化SFT流程,分析经验检索关键设计,提出整合经验检索的训练流程,提升代理对新任务的泛化能力。

摘要:

尽管大型语言模型(LLMs)推动了通用代理的发展,但实现对未见任务的鲁棒泛化仍是一个重大挑战。当前方法通常依赖于微调或无训练的记忆增强生成,但两者均有局限:微调难以推广到新任务,而经验检索表现不如监督基线。本文提出结合这两种方法,系统研究如何训练基于检索的LLM代理以有效利用检索到的轨迹。首先,我们建立了一个使用LoRA的稳健监督微调(SFT)配方,优于几种最先进的代理训练流程。其次,我们详细分析了经验检索的关键设计选择,确定了存储、查询和轨迹选择的最佳策略。最后,我们提出一个将经验检索整合到微调过程中的流程。我们的结果表明,这种结合方法显著提高了对未见任务的泛化能力,提供了一种可扩展且有效的框架,用于构建能够从经验中学习的代理。

英文摘要:

While large language models (LLMs) have advanced the development of general-purpose agents, robust generalization to unseen tasks remains challenging. Two common approaches are supervised fine-tuning and training-free memory-augmented generation using retrieved experience; yet both have limitations: fine-tuning often fails to extrapolate to new tasks, while experience retrieval often underperforms compared to supervised baselines. In this work, we combine these approaches and study how retrieval-augmented LLM agents can learn to use retrieved trajectories in-context. First, we establish a strong LoRA fine-tuning baseline that outperforms several state-of-the-art agent training pipelines. Second, we analyze key design choices for experience retrieval, including storage, querying, and trajectory selection. We then integrate experience retrieval directly into the fine-tuning process, finding that this substantially improves generalization to unseen tasks. Finally, we show that these gains often persist with imperfect experience and, even when agents reuse their own failed attempts without test-time parameter updates. Overall, our results establish simple episodic retrieval as a strong foundation for agent memory and retrieval-aware fine-tuning as a practical and effective framework for building agents that learn to learn from experience.

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

↑