option
Home
News
Former DeepSeeker and collaborators release new method for training reliable AI agents: RAGEN

Former DeepSeeker and collaborators release new method for training reliable AI agents: RAGEN

May 4, 2025
337

Former DeepSeeker and collaborators release new method for training reliable AI agents: RAGEN

The Year of AI Agents: A Closer Look at 2025's Expectations and Realities

2025 was heralded by many experts as the year when AI agents—specialized AI systems powered by advanced large language and multimodal models from companies like OpenAI, Anthropic, Google, and DeepSeek—would finally take center stage. However, according to a recent VentureBeat poll on the social network X, most AI agents are still languishing in experimental stages, caught in a sort of corporate limbo.

But there's a glimmer of hope on the horizon. A collaborative effort from researchers at Northwestern University, Microsoft, Stanford, and the University of Washington, including Zihan Wang, a former DeepSeek researcher now pursuing a PhD in computer science at Northwestern, has introduced RAGEN. This new system aims to train and evaluate AI agents to make them more reliable and adaptable for real-world, enterprise use.

RAGEN: A New Approach to Training AI Agents

Unlike static tasks such as math solving or code generation, RAGEN focuses on dynamic, multi-turn interactions where agents need to adapt, remember, and reason amidst uncertainty. The system is built on a custom reinforcement learning (RL) framework called StarPO (State-Thinking-Actions-Reward Policy Optimization), which emphasizes learning through experience rather than rote memorization. StarPO looks at entire decision-making sequences, not just single-step responses.

StarPO operates in two phases: a rollout stage where the LLM generates complete interaction sequences guided by reasoning, and an update stage where the model is optimized using normalized cumulative rewards. This approach offers a more stable and interpretable learning loop compared to traditional policy optimization methods.

The researchers tested this framework using fine-tuned versions of Alibaba’s Qwen models, specifically Qwen 1.5 and Qwen 2.5, chosen for their open weights and strong instruction-following capabilities. This choice facilitated reproducibility and consistent baseline comparisons across symbolic tasks.

The Echo Trap: A Challenge in Reinforcement Learning

Zihan Wang highlighted a critical issue in RL training in a widely shared X thread: *Why does your RL training always collapse?* The team identified that while LLM agents initially produce well-reasoned responses, RL systems often reward shortcuts, leading to repetitive behaviors that degrade performance—a phenomenon they dubbed the "Echo Trap."

This regression is fueled by feedback loops where certain phrases or strategies earn high rewards early on, encouraging overuse and stifling exploration. The symptoms are clear: reward variance cliffs, gradient spikes, and disappearing reasoning traces.

RAGEN's Test Environments

To study these behaviors in a controlled setting, RAGEN evaluates agents across three symbolic environments:

  • Bandit: A single-turn, stochastic task that tests symbolic risk-reward reasoning.
  • Sokoban: A multi-turn, deterministic puzzle involving irreversible decisions.
  • Frozen Lake: A stochastic, multi-turn task requiring adaptive planning.

Each environment is designed to minimize real-world priors and focus solely on decision-making strategies developed during training. For example, in the Bandit environment, agents must reason symbolically about Dragon and Phoenix arms representing different reward distributions, interpreting them as "strength" and "hope" to predict outcomes.

Stabilizing Reinforcement Learning with StarPO-S

To combat training collapse, the researchers introduced StarPO-S, a stabilized version of the original framework. StarPO-S includes three key interventions:

  1. Uncertainty-based rollout filtering: Prioritizing rollouts where the agent shows outcome uncertainty.
  2. KL penalty removal: Allowing the model to deviate more freely from its original policy and explore new behaviors.
  3. Asymmetric PPO clipping: Amplifying high-reward trajectories more than low-reward ones to boost learning.

These changes help delay or eliminate training collapse and improve performance across all three tasks. As Wang put it, "StarPO-S… works across all 3 tasks. Relieves collapse. Better reward."

What Makes a Good Agentic AI Model?

The success of RL training depends not only on the architecture but also on the quality of the data generated by the agents. The team identified three crucial dimensions that significantly impact training:

  • Task diversity: Exposing the model to a wide range of initial scenarios improves generalization.
  • Interaction granularity: Allowing multiple actions per turn enables more meaningful planning.
  • Rollout freshness: Keeping training data aligned with the current model policy avoids outdated learning signals.

These factors contribute to a more stable and effective training process. An interactive demo site on Github visualizes agent rollouts as full dialogue turns, including not just actions but the step-by-step thought process that precedes them. For instance, in solving a math problem, an agent might first 'think' about isolating a variable before submitting an answer like 'x = 5'. These intermediate thoughts are visible and traceable, adding transparency to how agents make decisions.

When Reasoning Runs Out

While explicit reasoning enhances performance in simple, single-turn tasks like Bandit, it tends to decay during multi-turn training. Despite using structured prompts and tokens, reasoning traces often shrink or vanish unless directly rewarded. This highlights a limitation in how rewards are typically designed: focusing on task completion may neglect the quality of the process behind it. The team experimented with format-based penalties to encourage better-structured reasoning but acknowledges that more refined reward shaping is likely needed.

Open Tools and Future Directions

RAGEN, along with its StarPO and StarPO-S frameworks, is now available as an open-source project at https://github.com/RAGEN-AI/RAGEN. However, at the time of writing, no explicit license is listed in the GitHub repository, which may limit its use or redistribution by others.

The system provides a valuable foundation for those interested in developing AI agents that not only complete tasks but also think, plan, and evolve. As AI moves toward greater autonomy, projects like RAGEN help illuminate what it takes to train models that learn from the consequences of their own actions.

Outstanding Questions for Real-World Enterprise Adoption

While the RAGEN paper offers a detailed technical roadmap, several practical questions remain for those looking to apply these methods in enterprise settings. For instance, how transferable is RAGEN’s approach beyond stylized, symbolic tasks? Would businesses need to design entirely new environments and reward functions to use this system in workflows like invoice processing or customer support?

Wang, in a direct message to VentureBeat on X, suggested that improving task diversity could help, as the current gaming tasks only have similar grid representations but lack semantic information. He also expressed optimism about businesses designing their own training exercises for AI agents using RAGEN, noting that the GitHub link provides a simple introduction to adding new environments.

Another critical area is scalability. Even with the enhancements provided by StarPO-S, the paper acknowledges that training still eventually collapses over longer horizons. This raises the question: is there a theoretical or practical path to sustaining reasoning over open-ended or continuously evolving task sequences?

At the time of writing, no explicit license is listed in the RAGEN GitHub repository or documentation, leaving open questions about usage rights. Nonetheless, RAGEN stands out not just as a technical contribution but as a conceptual step toward more autonomous, reasoning-capable AI agents. Whether it becomes part of the enterprise AI stack remains to be seen, but its insights into agent learning dynamics are already helping redefine the frontier of LLM training.

Related article
Nvidia H200 China deal survives Trump-Xi summit, but not as expected Nvidia H200 China deal survives Trump-Xi summit, but not as expected President Trump traveled to Beijing with Jensen Huang joining the delegation at the eleventh hour, departing two days later with vague remarks about potential chip export developments. No deal materialized. Since Trump first authorized sales in Decem
Alibaba, DeepSeek Drive China’s AI Model Race to Lower Costs Alibaba, DeepSeek Drive China’s AI Model Race to Lower Costs Alibaba has introduced Qwen3.8-Max, its most powerful AI model yet, as DeepSeek’s new V4-Flash gains attention for offering inference pricing lower than several competitors.With 2.4 trillion parameters, Qwen3.8-Max employs a mixture-of-experts archit
Base44 Unveils Proprietary AI Model to Bolster Defensibility in Vibe Coding Platform Base44 Unveils Proprietary AI Model to Bolster Defensibility in Vibe Coding Platform Base44, the vibe coding platform acquired by Wix for $80 million just a year ago — when it was merely six months old with a team of eight — has begun deploying its proprietary AI model to help users build applications using natural language.This deve
Related Special Topic Recommendations
Design & Art Top AI Illustration Tools: Create Editorial Scenes and Cover Art Faster
Top AI Illustration Tools: Create Editorial Scenes and Cover Art Faster

2026 Latest Top-rated AI Illustration Tools: Our curated list features the best powerfully designed tools for creating stunning editorial scenes and eye-catching cover art quickly. Each option has gone through rigorous real-world tests, offering a free vs paid comparison to help you find the perfect match for your workflow. Try these must-try solutions today to unlock your AI edge and boost your creative productivity. Explore now at XIX.AI.

10 tools
xix.ai
Education and Learning Top AI Tutors for Exam Prep: Practice Math, Science, and English
Top AI Tutors for Exam Prep: Practice Math, Science, and English

2026 Latest Top-Rated Best AI Tutors for Exam Prep are here on XIX.AI! Our curated list features powerful game-changing tools that offer free vs paid comparison, real-world tests, and weekly updated rankings. They help boost your writing efficiency, simplify complex topic learning, and unlock your academic potential. Explore now to Discover your perfect exam prep tool and Start creating today to Unlock your AI edge!

10 tools
xix.ai
Finance AI Budget Planning Tools for Personal Money Management
AI Budget Planning Tools for Personal Money Management

2026 Latest Best Top-Rated AI Budget Planning Tools for Personal Money Management are here on XIX.AI! This curated collection features powerful, game-changing solutions that help you conduct real-world tests, understand spending habits, and create personalized plans to boost productivity. Enjoy a free vs paid comparison along with detailed rankings. Must-try tools designed to simplify money management and unlock your AI edge. Explore now!

11 tools
xix.ai
Health & Wellness AI Sleep Tracking Assistants: Improve Recovery with Better Bedtime Habits
AI Sleep Tracking Assistants: Improve Recovery with Better Bedtime Habits

2026 Latest Best Top-Rated AI Sleep Tracking Assistants curated for ultimate recovery. This fully updated weekly guide features powerful tools that deliver real-world tests, free vs paid comparison, and detailed rankings to help you find the must-try solution that boosts sleep quality and supports better bedtime habits. Explore now at XIX.AI to Unlock your AI edge.

10 tools
xix.ai
Data Analysis AI SQL Copilots for Product and Revenue Analytics
AI SQL Copilots for Product and Revenue Analytics

2026 Latest Best Top-Rated AI SQL Copilots for Product and Revenue Analytics! XIX.AI has curated a powerful, game-changing collection of must-try tools that undergo real-world tests through weekly updated rankings. These tools help users boost productivity significantly by accelerating data analysis, streamlining complex queries, and generating accurate insights to drive smarter business decisions. Explore now to Discover your perfect tool for unlocking your AI edge!

14 tools
xix.ai
Education and Learning Best AI Homework Helpers That Teach: Learn Concepts, Not Just Answers
Best AI Homework Helpers That Teach: Learn Concepts, Not Just Answers

2026 Latest Best Top-Rated AI Homework Helpers That Teach Core Concepts Not Just Answers Powerful Tools for Students Must-Try Curated List Weekly Updated Free vs Paid Comparison Real-World Tests Accurate Rankings to Help You Unlock Your Full Learning Potential Explore now to Discover your perfect tool for smarter studying.

10 tools
xix.ai
Comments (11)
0/500
EricJohnson
EricJohnson August 30, 2026 at 8:00:30 AM EDT

RAGENって名前、なんかかっこいいよね。DeepSeekの元エンジニアが関わってるってだけで期待しちゃう。2025年はエージェント元年って言われてるけど、結局は安定性が鍵だよね。技術的には面白いけど、実用化までにはまだ課題がありそう。今後の展開に注目!🤖✨

CharlesYoung
CharlesYoung April 8, 2026 at 2:00:57 PM EDT

Estaba viendo las noticias sobre el lanzamiento de RAGEN y me preguntaba: ¿están los agentes de IA realmente listos para el uso general? Los anuncios son prometedores, pero en la práctica, seguro que surgen fallos en casos de borde. Sobre todo con la ética y el control. ¿Alguien ha probado realmente estas herramientas? Da un poco de respeto, la verdad 😅.

JosephMartínez
JosephMartínez April 4, 2026 at 12:00:41 PM EDT

這方法聽起來滿有趣的,但訓練出真正可靠的AI代理還是有段距離吧?RAGEN這個方向不錯,但實務上遇到意外狀況時,它們真的能妥善應對嗎?先觀望一下實際應用案例再說...🤔

GregoryRodriguez
GregoryRodriguez October 11, 2025 at 10:30:38 PM EDT

RAGEN sounds promising, but I'm skeptical about the 'reliable' claim 🤔. Every time a new training method drops, it's hailed as revolutionary... until the limitations surface. Remember when we thought RLHF was the ultimate solution?

ScottEvans
ScottEvans August 13, 2025 at 7:00:59 AM EDT

RAGEN sounds cool, but will it actually make AI less chaotic or just add more hype to the mix? 🤔 Curious to see if it lives up to the promises!

JimmyRamirez
JimmyRamirez July 23, 2025 at 12:59:29 AM EDT

This RAGEN method sounds like a game-changer for AI reliability! Curious how it stacks up against what OpenAI’s cooking. Anyone tried it yet? 🤔

OR