无需人工标注,让大模型智能体通过自适应交互数据提升真实环境任务表现。
Learn-by-interact: A Data-Centric Framework for Self-Adaptive Agents in Realistic Environments
- 基于文档生成交互轨迹,反向构建指令以合成高质量代理数据。
- 在多个真实环境中,使LLM智能体任务成功率提升最高19.5%。
- 特别适合希望低成本部署智能体的开发者和研究者使用。
由大语言模型驱动的自主智能体有望增强人类能力,协助完成从发送邮件到数据分析等数字任务。现有LLM在这些任务中的表现常受限于对应环境缺乏高质量的代理数据。我们提出Learn-by-interact,一个无需人工标注即可适应任意环境的数据中心框架。该框架基于文档合成智能体与环境的交互轨迹,并通过总结或抽象交互历史反向构建指令,称为后向构造。我们通过训练和无需训练的上下文学习(ICL)评估合成数据质量,设计了专为智能体优化的创新检索方法。在涵盖真实编程、网页和桌面环境的SWE-bench、WebArena、OSWorld和Spider2-V上进行的大量实验表明,Learn-by-interact在多种下游智能体任务中均有效——基于ICL时,Claude-3.5的基线性能提升达12.2%;训练时,Codestral-22B提升高达19.5%。我们进一步证明后向构造的关键作用,其可使训练性能提升最多14.0%。消融实验显示,合成数据在ICL中具有高效性,且我们的检索管道优于传统检索增强生成(RAG)等方法。我们期望Learn-by-interact能成为未来大模型在真实环境中部署时的智能体数据合成基础。
原文摘要 · Abstract (English)
Autonomous agents powered by large language models (LLMs) have the potential to enhance human capabilities, assisting with digital tasks from sending emails to performing data analysis. The abilities of existing LLMs at such tasks are often hindered by the lack of high-quality agent data from the corresponding environments they interact with. We propose Learn-by-interact, a data-centric framework to adapt LLM agents to any given environments without human annotations. Learn-by-interact synthesizes trajectories of agent-environment interactions based on documentations, and constructs instructions by summarizing or abstracting the interaction histories, a process called backward construction. We assess the quality of our synthetic data by using them in both training-based scenarios and training-free in-context learning (ICL), where we craft innovative retrieval approaches optimized for agents. Extensive experiments on SWE-bench, WebArena, OSWorld and Spider2-V spanning across realistic coding, web, and desktop environments show the effectiveness of Learn-by-interact in various downstream agentic tasks -- baseline results are improved by up to 12.2\% for ICL with Claude-3.5 and 19.5\% for training with Codestral-22B. We further demonstrate the critical role of backward construction, which provides up to 14.0\% improvement for training. Our ablation studies demonstrate the efficiency provided by our synthesized data in ICL and the superiority of our retrieval pipeline over alternative approaches like conventional retrieval-augmented generation (RAG). We expect that Learn-by-interact will serve as a foundation for agent data synthesis as LLMs are increasingly deployed at real-world environments.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。