AgentGym-RL: Training LLM Agents for Long-Horizon Decision Making through Multi-Turn Reinforcement Learning
该论文提出了一种名为AgentGym-RL的新框架,用于通过多轮强化学习训练LLM智能体,以实现长期决策和复杂任务解决。
更新于 2025-09-25。作者:Zhiheng Xi、Jixuan Huang、Chenyang Liao、Baodai Huang、Honglin Guo、Jiaqi Liu、Rui Zheng、Junjie Ye、Jiazheng Zhang、Wenxiang Chen、Wei He、Yiwen Ding、Guanyu Li、Zehui Chen、Zhengyin Du、Xuesong Yao、Yufei Xu、Jiecao Chen、Tao Gui、Zuxuan Wu、Qi Zhang、Xuanjing Huang、Yu-Gang Jiang。
中文摘要
开发能够通过探索和与环境的互动来获取知识和技能,从而做出一系列智能决策以解决复杂、真实世界任务的自主LLM智能体,是一个快速发展的前沿领域。如同人类认知发展一样,智能体预计将通过探索和与环境的互动来获取知识和技能。尽管取得了进展,但社区仍然缺乏一个统一、交互式的强化学习(RL)框架,该框架可以有效地从头开始训练这样的智能体——而不依赖于监督微调(SFT)——在多样化的真实环境中。为了填补这一空白,我们引入了AgentGym-RL,这是一个新的框架,用于通过强化学习训练LLM智能体进行多轮交互式决策。该框架具有模块化和解耦的架构,确保了高度灵活性和可扩展性。它包含了各种各样的真实世界场景,并支持主流的RL算法。此外,我们提出了ScalingInter-RL,这是一种针对探索-利用平衡和稳定的RL优化的训练方法。在早期阶段,它通过限制交互次数来强调利用,并逐渐转向探索,以更大的视野来鼓励多样化的解决问题的策略。通过这种方式,智能体发展出更多样化的行为,并且更不容易在长期预测下崩溃。我们进行了广泛的实验,以验证AgentGym-RL框架和ScalingInter-RL方法稳定性和有效性的。我们的智能体在各种环境中的27项任务上与商业模型相匹配或超越。我们提供了关键见解,并将开源完整的AgentGym-RL框架——包括代码和数据集——以赋能研究社区开发下一代智能智能体。
英文摘要
Developing autonomous LLM agents capable of making a series of intelligent decisions to solve complex, real-world tasks is a fast-evolving frontier. Like human cognitive development, agents are expected to acquire knowledge and skills through exploration and interaction with the environment. Despite advances, the community still lacks a unified, interactive reinforcement learning (RL) framework that can effectively train such agents from scratch -- without relying on supervised fine-tuning (SFT) -- across diverse and realistic environments. To bridge this gap, we introduce AgentGym-RL, a new framework to train LLM agents for multi-turn interactive decision-making through RL. The framework features a modular and decoupled architecture, ensuring high flexibility and extensibility. It encompasses a wide variety of real-world scenarios, and supports mainstream RL algorithms. Furthermore, we propose ScalingInter-RL, a training approach designed for exploration-exploitation balance and stable RL optimization. In early stages, it emphasizes exploitation by restricting the number of interactions, and gradually shifts towards exploration with larger horizons to encourage diverse problem-solving strategies. In this way, the agent develops more diverse behaviors and is less prone to collapse under long horizons. We perform extensive experiments to validate the stability and effectiveness of both the AgentGym-RL framework and the ScalingInter-RL approach. Our agents match or surpass commercial models on 27 tasks across diverse environments. We offer key insights and will open-source the complete AgentGym-RL framework -- including code and datasets -- to empower the research community in developing the next generation of intelligent agents.
解读
一句话总结
该论文提出了一种名为AgentGym-RL的新框架,用于通过多轮强化学习训练LLM智能体,以实现长期决策和复杂任务解决。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:目前缺乏一个统一的、交互式的强化学习(RL)框架,能够在没有监督微调(SFT)的情况下,在多样化的真实环境中有效地训练智能体。
- 现有方案不足:现有的RL研究大多局限于单轮任务,且在任务复杂性和环境多样性方面存在限制,同时优化稳定性和效率也较低。
- 研究目标:开发一个名为AgentGym-RL的新框架,通过RL训练LLM智能体,使其能够在多轮交互决策中表现出智能行为。
问题2:论文的核心创新点是什么?
- 技术创新:提出了AgentGym-RL框架,具有模块化和解耦的架构,支持多种真实场景和主流RL算法。
- 方法改进:提出了ScalingInter-RL训练方法,通过渐进式扩展智能体与环境的交互范围,平衡探索和利用,提高优化稳定性。
- 优势:AgentGym-RL框架和ScalingInter-RL方法在多个任务上实现了显著的性能提升,匹配或超过了商业模型。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在WebArena、Deep Search、TextCraft、BabyAI和SciWorld等多个环境中进行了实验。
- 性能提升:在27个任务上,智能体的表现与商业模型相当或更好。
- 对比结果:与基线方法相比,AgentGym-RL框架和ScalingInter-RL方法在多个任务上实现了显著的性能提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:Web导航、深度搜索、数字游戏、具身任务和科学任务等。
- 实施建议:开源AgentGym-RL框架,包括代码和数据集,以促进研究社区开发下一代智能体。
- 局限与展望:未来研究方向包括开发具有泛化能力和迁移能力的智能体,扩展RL训练到更长期和更真实、物理化的任务,以及推进多智能体强化学习。
来源
机器可读索引:llms.txt