GEM: A Gym for Agentic LLMs

Zichen Liu, Anya Sims, Keyu Duan, Changyu Chen, Simon Yu +14 more
10/1/2025
cs.LGcs.AIcs.CL

No official code found. Best implementation: axon-rl/gem (510 stars, Apache-2.0, last commit 2026-01-21).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

axon-rl/gemCommunity79%
Apache-2.0

A Gym for Agentic LLMs

51034CSS, HTMLMay 27, 20259 months agoApache-2.0
gymllmrl

Similar Papers

Cite this paper

@article{liu2025gem,
  title  = {GEM: A Gym for Agentic LLMs},
  author = {Zichen Liu and Anya Sims and Keyu Duan and Changyu Chen and Simon Yu and Xiangxin Zhou and Haotian Xu and Shaopan Xiong and Bo Liu and Chenmien Tan and Chuen Yang Beh and Weixun Wang and Hao Zhu and Weiyan Shi and Diyi Yang and Michael Shieh and Yee Whye Teh and Wee Sun Lee and Min Lin},
  year   = {2025},
  eprint = {2510.01051},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.01051v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.01051.svg)](https://codeofpaper.com/paper/2510.01051)

Discussion