DAPO: An Open-Source LLM Reinforcement Learning System at Scale

Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, YuYue, Weinan Dai, Tiantian Fan, Gaohong Liu, Juncai Liu, LingJun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Ru Zhang, Wang Zhang, Hang Zhu, Jinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuxuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Lin Yan, Yonghui Wu, Mingxuan Wang

The AI community has been buzzing about "reasoning" models like OpenAI’s o1 and DeepSeek-R1, which use Reinforcement Learning (RL) to "think" through complex problems using long Chain-of-Thought (CoT) sequences. However, while the results are public, the specific "secret sauce" recipes for training these models at scale have remained largely behind closed doors.

A new paper from researchers at ByteDance Seed and Tsinghua University introduces DAPO (Decoupled Clip and Dynamic sAmpling Policy Optimization), an open-source system designed to democratize high-performance RL for LLMs.

TL;DR

DAPO is a state-of-the-art, open-source RL framework that enables a Qwen2.5-32B model to score 50 points on the AIME 2024 benchmark, surpassing DeepSeek-R1-Zero while using only 50% of the training steps. It introduces four critical algorithmic techniques to stabilize training and prevent the "entropy collapse" that often plagues large-scale reasoning RL.

What Problem Does This Paper Address?

Training LLMs with RL for complex reasoning is notoriously difficult. When models generate long "thinking" chains, standard RL algorithms like PPO or GRPO (Group Relative Policy Optimization) often run into several walls:

  1. Entropy Collapse: The model quickly becomes "too sure" of itself, stopping exploration and settling into repetitive, mediocre patterns.
  2. Gradient Vanishing: As the model improves, many training samples in a batch might all be "correct," leading to zero advantage and no learning signal.
  3. Reward Noise: Long responses that get truncated by length limits can confuse the model if they are penalized too harshly or ignored entirely.
  4. Unhealthy Length: Models often learn to "cheat" by becoming excessively wordy or repetitive (gibberish) if the loss function isn't balanced correctly.

Methods

DAPO builds upon the GRPO framework but introduces four novel "recipes" to make it work at scale:

  • Clip-Higher: Standard PPO/GRPO uses a symmetric clipping range (e.g., 0.2) to keep updates stable. DAPO decouples this, using a higher upper bound ($\epsilon_{high}$). This allows the model to more easily "uplift" low-probability "exploration" tokens that might lead to a correct answer, preventing the model from getting stuck in a deterministic rut.
  • Dynamic Sampling: To solve the "zero gradient" problem, DAPO over-samples prompts and filters out those where all generated responses are either all right or all wrong. It keeps sampling until the training batch is filled with prompts that actually provide a learning signal.
  • Token-Level Policy Gradient Loss: Instead of averaging the loss across a whole response (sample-level), DAPO weights every token equally. This ensures that tokens in long, complex reasoning chains contribute fairly to the gradient and helps penalize repetitive "gibberish" more effectively.
  • Overlong Reward Shaping: Instead of a "hard" penalty for responses that hit the token limit, DAPO uses a "Soft Overlong Punishment." This provides a smoother gradient that encourages the model to be concise without discarding the valid reasoning it performed before being truncated.
Ablation of Clip-Higher showing improved AIME accuracy and prevention of entropy collapse.

Datasets

The authors released DAPO-Math-17K, a curated dataset of 17,000 mathematical prompts.

  • Transformation: To ensure rule-based rewards (checking if an answer is exactly right) are reliable, they used an LLM to rewrite complex math problems so that the final answer is always a simple integer (e.g., if the answer was $\frac{a+\sqrt{b}}{c}$, the prompt is modified to ask for the value of $a+b+c$).
  • Evaluation: The primary benchmark used is AIME 2024, a prestigious high school math competition.

Key Insights and Ideas

  • Exploration is Fragile: The "Clip-Higher" insight is particularly clever. It recognizes that in reasoning tasks, the "correct" path is often hidden behind very low-probability tokens. Standard clipping is too defensive; by "raising the ceiling," DAPO allows the model to aggressively learn from its rare successes.
  • Efficiency via Filtering: Dynamic sampling proves that you don't need more data; you need better data. By filtering out "uninformative" batches where the model already knows exactly what to do (or is totally lost), convergence speed doubles.
  • Verifiable Rewards over Neural Models: The paper leans heavily on rule-based rewards (correct/incorrect) rather than neural Reward Models. This avoids "reward hacking," where a model learns to trick a neural judge into giving a high score without actually solving the problem.

Key Results

  • SOTA Performance: Using a Qwen2.5-32B base, DAPO achieved 50 points on AIME 2024. For context, the previous state-of-the-art DeepSeek-R1-Zero-Qwen-32B scored 47 points.
  • Training Efficiency: DAPO reached this superior performance in roughly half the training steps required by DeepSeek’s approach.
DAPO training curve on AIME 2024, surpassing DeepSeek-R1-Zero in fewer steps.
  • Ablation Success: Without these four techniques, a "naive" GRPO run only achieved 30 points on AIME, highlighting that the engineering details are just as important as the base algorithm.

Limitations and Future Work

  • Single-Turn Focus: The current system is optimized for single-turn reasoning (one prompt, one long answer). The authors note that multi-turn RL (dialogue) is a more complex frontier they haven't tackled yet.
  • Numerical Constraints: The dataset transformation technique currently limits the system to problems with numerical answers. Mathematical proofs, which require more subjective evaluation, remain a challenge for future work.
  • Compute Resources: While the algorithm is efficient, the paper does not provide specific details on the hardware (GPU count/type) used for the full-scale 32B model training.

Paper Link: DAPO: An Open-Source LLM Reinforcement Learning System at Scale (Note: Placeholder link based on title/authors) Code & Data: Built on the verl framework.

Summary updated

BibTeX
@inproceedings{yu2025dapo,
  author = {Qiying Yu and Zheng Zhang and Ruofei Zhu and Yufeng Yuan and Xiaochen Zuo and YuYue and Weinan Dai and Tiantian Fan and Gaohong Liu and Juncai Liu and LingJun Liu and Xin Liu and Haibin Lin and Zhiqi Lin and Bole Ma and Guangming Sheng and Yuxuan Tong and Chi Zhang and Mofan Zhang and Ru Zhang and Wang Zhang and Hang Zhu and Jinhua Zhu and Jiaze Chen and Jiangjie Chen and Chengyi Wang and Hongli Yu and Yuxuan Song and Xiangpeng Wei and Hao Zhou and Jingjing Liu and Wei-Ying Ma and Ya-Qin Zhang and Lin Yan and Yonghui Wu and Mingxuan Wang},
  title = {{DAPO: An Open-Source LLM Reinforcement Learning System at Scale}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=2a36EMSSTp},
}
Figure