[论文解读] AgentGym: Evolving Large Language Model-based Agents across Diverse Environments
该论文提出了AgentGym,一个通过自我演化在多样化环境中持续进化大型语言模型(LLM)基础智能体的框架。它结合了统一平台与多样化任务、经筛选的轨迹数据集(AgentTraj),以及一种新颖的演化方法(AgentEvol),使智能体能够超越示范行为实现性能提升,在无需大量人工监督的情况下达到与最先进模型相当的性能。
Building generalist agents that can handle diverse tasks and evolve themselves across different environments is a long-term goal in the AI community. Large language models (LLMs) are considered a promising foundation to build such agents due to their generalized capabilities. Current approaches either have LLM-based agents imitate expert-provided trajectories step-by-step, requiring human supervision, which is hard to scale and limits environmental exploration; or they let agents explore and learn in isolated environments, resulting in specialist agents with limited generalization. In this paper, we take the first step towards building generally-capable LLM-based agents with self-evolution ability. We identify a trinity of ingredients: 1) diverse environments for agent exploration and learning, 2) a trajectory set to equip agents with basic capabilities and prior knowledge, and 3) an effective and scalable evolution method. We propose AgentGym, a new framework featuring a variety of environments and tasks for broad, real-time, uni-format, and concurrent agent exploration. AgentGym also includes a database with expanded instructions, a benchmark suite, and high-quality trajectories across environments. Next, we propose a novel method, AgentEvol, to investigate the potential of agent self-evolution beyond previously seen data across tasks and environments. Experimental results show that the evolved agents can achieve results comparable to SOTA models. We release the AgentGym suite, including the platform, dataset, benchmark, checkpoints, and algorithm implementations. The AgentGym suite is available on https://github.com/WooooDyy/AgentGym.
研究动机与目标
- 开发能够跨多样化环境自主演化的通用LLM基础智能体,超越模仿学习,实现交互式学习。
- 克服专家监督模仿学习(成本高、难以扩展)和孤立环境训练(专家型智能体泛化能力差)的局限性。
- 建立一个统一、可扩展的平台,实现在14种环境和89项任务中对智能体进行实时、并发的训练与评估。
- 提供基准测试套件(AgentEval)和高质量轨迹数据集(AgentTraj),以启动基础智能体能力并实现公平比较。
- 通过灵活、环境无关的演化机制(AgentEvol),探究LLM智能体自我演化潜力。
提出的方法
- AgentGym提供基于HTTP的标准化API平台,支持14类环境和89项任务,涵盖网页导航、具身任务和电子表格操作等。
- 提供统一接口,支持多轮交互、实时反馈以及在具有统一观测/动作空间的环境中进行轨迹采样。
- 通过众包和基于AI的指令扩展技术(如自我指令、指令演化)收集大规模高质量轨迹数据集(AgentTraj),确保多样化且具有挑战性的示例。
- AgentEvol方法通过利用多样化环境中获得的反馈,使智能体能够基于初始示范之外的经验更新策略,实现自我演化。
- 框架包含一个基准测试套件(AgentEval),提供经筛选的测试集,用于评估智能体在各类任务和环境中的性能。
- 系统支持在线评估、交互式训练以及以统一、可扩展格式进行的并发智能体探索。

实验结果
研究问题
- RQ1LLM基础智能体能否通过自我演化而非依赖专家示范,在多样化环境中实现泛化?
- RQ2统一平台结合多样化环境与标准化API,在实现可扩展、并发的智能体训练与评估方面效果如何?
- RQ3经筛选的轨迹数据集(AgentTraj)在启动基础智能体能力并提升下游泛化能力方面,其作用程度如何?
- RQ4无需人工监督的自我演化机制(AgentEvol)能否在未见过的任务中超越或匹配SOTA模型?
- RQ5多样化环境、高质量轨迹与可扩展演化方法的整合,如何共同提升智能体的泛化能力与性能?
主要发现
- AgentGym框架成功支持通过统一API和标准化接口,在14种环境和89项任务中实现实时、并发的智能体探索。
- 通过众包和基于AI的指令扩展收集的AgentTraj数据集,为训练基础智能体提供了高质量、多样化的轨迹。
- AgentEvol方法使智能体能够超越示范行为实现自我演化,性能达到与最先进模型相当的水平。
- 基准测试套件AgentEval实现了在多样化任务和环境中的公平、标准化的智能体能力评估。
- 该框架展现出良好的可扩展性与灵活性,支持在线评估与交互式训练,并保持一致的反馈循环。
- 发布的完整套件——包括平台、数据集、检查点和代码——支持可复现的研究,推动通用智能体开发的社区发展。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。