Reproduce “RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learning” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Zihan Wang, Kangrui Wang, Qineng Wang, Pingyue Zhang, Linjie Li, Zhengyuan Yang, Xing Jin, Kefan Yu and 10 more

The authors present StarPO, a trajectory-level framework for training agents through sequences of actions and environment feedback. RAGEN provides its training and evaluation system. Across four tasks, filtering prompts by reward variability extended stable PPO training on Frozen Lake from 100 to 140 steps when retaining 75%. This result is specific to that task and optimizer.

Key insights

  • Multi-turn LLM agent training with standard RL methods introduces a new instability, termed the "Echo Trap," characterized by agents overfitting to repetitive reasoning patterns and collapsing behavioral diversity.
  • Training stability can be significantly improved by filtering training data based on reward uncertainty and using asymmetric gradient shaping (StarPO-S).
  • Explicit reasoning in LLM agents does not consistently improve generalization in complex multi-turn tasks and can even degrade or become "hallucinated" if reward signals are not fine-grained and reasoning-aware.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.