2025-10-02 · 专家 · 自然语言处理 · 机器学习

GEM: A Gym for Agentic LLMs

GEM是一个为大型语言模型(LLMs)设计的开源环境模拟器,旨在促进LLMs在复杂环境中的学习和推理能力。

更新于 2025-10-02。作者:Zichen Liu、Anya Sims、Keyu Duan、Changyu Chen、Simon Yu、Xiangxin Zhou、Haotian Xu、Shaopan Xiong、Bo Liu、Chenmien Tan、Chuen Yang Beh、Weixun Wang、Hao Zhu、Weiyan Shi、Diyi Yang、Michael Shieh、Yee Whye Teh、Wee Sun Lee、Min Lin。

中文摘要

大型语言模型(LLMs)的训练范式正从静态数据集转向基于经验的学习,其中智能体通过与复杂环境交互来获取技能。为了促进这一转变,我们引入了GEM(通用经验制造者),这是一个为LLMs时代设计的开源环境模拟器。类似于OpenAI-Gym用于传统强化学习(RL),GEM提供了一个标准化的框架,用于环境-智能体接口,包括异步向量化执行以实现高吞吐量,以及灵活的包装以实现易于扩展。GEM还提供了一系列多样化的环境、强大的集成工具和单文件示例脚本,展示了如何使用GEM与五种流行的RL训练框架相结合。此外,我们还提供了一套使用REINFORCE与返回批量归一化(ReBN)的24个环境基线,与GRPO不同,ReBN与密集的每轮奖励的完整RL设置兼容,并提供了更好的信用分配。我们进一步使用GEM在单轮和多轮设置中对PPO、GRPO和REINFORCE进行了苹果对苹果的基准测试,以阐明算法设计。最后,GEM除了作为训练环境外,还充当了一个便捷的评估工具包。我们希望这个框架能够帮助加速未来智能体LLMs的研究。

英文摘要

The training paradigm for large language models (LLMs) is moving from static datasets to experience-based learning, where agents acquire skills via interacting with complex environments. To facilitate this transition we introduce GEM (General Experience Maker), an open-source environment simulator designed for the age of LLMs. Analogous to OpenAI-Gym for traditional reinforcement learning (RL), GEM provides a standardized framework for the environment-agent interface, including asynchronous vectorized execution for high throughput, and flexible wrappers for easy extensibility. GEM also features a diverse suite of environments, robust integrated tools, and single-file example scripts demonstrating using GEM with five popular RL training frameworks. Along with this, we also provide a set of baselines across 24 environments using REINFORCE with Return Batch Normalization (ReBN), which -- unlike GRPO -- is compatible with the full RL setting of dense per-turn rewards and offers better credit assignment. We further conduct apple-to-apple benchmarking of PPO, GRPO and REINFORCE in both single- and multi-turn settings using GEM to shed light on the algorithmic designs. Lastly, GEM also functions as a convenient evaluation toolkit besides a training environment. We hope this framework can help accelerate future agentic LLM research.

解读

一句话总结

GEM是一个为大型语言模型(LLMs)设计的开源环境模拟器,旨在促进LLMs在复杂环境中的学习和推理能力。

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

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

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

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

来源