RAGEN
RAGEN is a reinforcement learning framework for training reasoning LLM agents, supporting multi-turn reinforcement learning based on the StarPO algorithm. It provides trajectory-level and turn-level training, 10 built-in environments, and a Gym-compatible interface, making it easy to add custom environments. RAGEN-2 further introduces SNR adaptive filtering based on reward variance and reasoning collapse diagnostic metrics to mitigate issues such as template collapse and improve training stability.