Reproduce “GEM: A Gym for Agentic LLMs” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Zichen Liu, Anya Sims, Keyu Duan, Changyu Chen, Simon Yu, Xiangxin Zhou, Haotian Xu, Shaopan Xiong and 11 more
GEM is an open-source framework for training and evaluating agents through interaction, with standardized environments, tools, and training interfaces. Its REINFORCE with Return Batch Normalization (ReBN) method normalizes discounted returns across transitions, enabling turn-level rewards without a learned critic. Across eight environments, ReBN improves on vanilla REINFORCE and is reported as better than or comparable to PPO and GRPO, with results varying by task.
Key insights
- A standardized environment framework like GEM is crucial for accelerating research into agentic LLMs by facilitating experience-based learning for complex multi-turn interactions and tool use.
- The discount factor (γ) plays a critical role in multi-turn RL, where smaller values incentivize agents to discover more efficient, shorter-turn strategies, a capability not well-supported by single-step RL approaches.
- Modular integration of external tools (e.g., Python, search) within environments, as facilitated by GEM, consistently leads to substantial performance gains for LLM agents in complex reasoning and knowledge-intensive tasks.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.