2025-01-22 · 专家 · 机器人 · 机器学习 · 自然语言处理

Learn-by-interact: A Data-Centric Framework for Self-Adaptive Agents in Realistic Environments

Learn-by-interact 提出了一种基于数据的框架,通过模拟智能体与环境交互的轨迹,自适应地调整大型语言模型(LLMs)以适应各种环境,无需人工标注。

更新于 2025-01-22。作者:Hongjin Su、Ruoxi Sun、Jinsung Yoon、Pengcheng Yin、Tao Yu、Sercan Ö. Arık。

中文摘要

由大型语言模型(LLMs)驱动的自主代理具有增强人类能力、协助完成从发送电子邮件到执行数据分析等数字任务的潜力。现有LLMs在执行此类任务的能力往往受到缺乏与它们交互的相应环境中高质量代理数据的限制。我们提出了“Learn-by-interact”这一以数据为中心的框架,以适应任何给定的环境而无需人工标注。Learn-by-interact基于文档合成了代理与环境交互的轨迹,并通过总结或抽象交互历史来构建指令,这一过程称为反向构建。我们通过在基于训练的场景和无需训练的情境学习(ICL)中使用这些合成数据来评估合成数据的质量,我们在这些场景中创建了针对代理优化的创新检索方法。在SWE-bench、WebArena、OSWorld和Spider2-V上进行的大量实验,涵盖了现实中的编码、网页和桌面环境,展示了Learn-by-interact在多种下游代理任务中的有效性——与Claude-3.5的ICL基线结果相比提升了高达12.2%,与Codestral-22B的训练相比提升了19.5%。我们进一步证明了反向构建的关键作用,它为训练提供了高达14.0%的提升。我们的消融研究展示了我们的合成数据在ICL中的效率,以及我们的检索流程相较于传统检索增强生成(RAG)等替代方法的优越性。我们预计Learn-by-interact将成为随着LLMs在现实世界环境中的日益部署,代理数据合成的基石。

英文摘要

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.

解读

一句话总结

Learn-by-interact 提出了一种基于数据的框架,通过模拟智能体与环境交互的轨迹,自适应地调整大型语言模型(LLMs)以适应各种环境,无需人工标注。

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

• 问题背景:现有的 LLMs 在处理复杂任务时,通常受限于缺乏与相应环境交互的高质量代理数据。 • 现有方案不足:基于提示的方法受限于基础模型的局限性,而人工标注数据成本高且耗时。 • 研究目标:提出 Learn-by-interact,一种无需人工标注即可将 LLMs 代理自适应到任何给定环境的框架。

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

• 技术创新:Learn-by-interact 通过合成智能体-环境交互轨迹,并使用反向构建来生成指令。 • 方法改进:提出了一种创新的检索方法,结合基于模型和基于观察的方法,优化智能体。 • 优势:与现有方法相比,Learn-by-interact 提高了 ICL 和训练的性能,同时减少了数据标注的需求。

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

• 关键实验:在 SWE-bench、WebArena、OSWorld 和 Spider2-V 等基准上进行了实验,涉及现实世界的编码、网页和桌面环境。 • 性能提升:对于 ICL,基线结果提高了 12.2%(使用 Claude-3.5),对于训练,提高了 19.5%(使用 Codestral-22B)。 • 对比结果:与基线方法相比,Learn-by-interact 在各种下游代理任务中表现更佳。

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

• 应用场景:Learn-by-interact 可用于需要自适应代理的实时环境,如软件工程、网页浏览和桌面操作。 • 实施建议:建议在部署前评估环境的特定需求和智能体的适应性。 • 局限与展望:目前 Learn-by-interact 需要大量的 LLM 调用,未来研究将探索更高效的生成和过滤方法。

来源

机器可读索引:llms.txt