New

DAPO: Stabilizing Long-Chain-of-Thought RL

Four controls preserve useful learning signals

8 chapters77 min total
Keywords
DAPOLong-CoTGRPOExplorationClippingDynamic SamplingToken-Level LossReward ShapingVerifierAIME 2024
Overview

This series explains how DAPO stabilizes long-chain-of-thought reinforcement learning by preserving exploration, mixed-outcome group contrast, sensible token credit, and a separate length signal. It traces the loop from sampled responses to policy updates, then tests what the AIME 2024 result on Qwen2.5-32B and DAPO-Math-17K supports: a concrete recipe for verifiable math, not a universal or fully isolated rule.

Learning outcomes
  • DAPO treats long-CoT instability as four linked boundary problems: exploration, group contrast, token credit, and length-aware reward.
  • Clip-Higher preserves room for low-probability alternatives without making higher entropy proof of better reasoning.
  • Dynamic Sampling preserves mixed-correctness groups, because uniform outcomes provide little relative direction in GRPO.
  • Token-level loss can reduce length-weighting distortion, but it is not process supervision or proof of causal token credit.
  • The evidence supports an assembled recipe for verifiable math on Qwen2.5-32B, not a universal or fully isolated improvement.
Keywords
DAPOLong-CoTGRPOExplorationClippingDynamic SamplingToken-Level LossReward ShapingVerifierAIME 2024

Chapters

Preview every chapter · Unlock full text, audio, and video from chapter 4

Plans
Ch.1-3 FreeCh.4-8 Premium

FAQ

What problem does DAPO solve?

DAPO addresses instability in long-chain-of-thought RL by protecting exploration, group contrast, token credit, and the distinction between truncation and incorrectness.

Why does Dynamic Sampling matter in GRPO?

Dynamic Sampling matters because all-correct or all-incorrect groups provide little relative direction, so DAPO resamples until mixed groups fill the update buffer.

Does DAPO reward longer reasoning?

No. DAPO makes long token sequences more influential and applies a gradual length preference, but longer responses help only when they produce rewarded reasoning; verbosity is not the goal.

How far can DAPO’s results be generalized?

DAPO’s results generalize only conditionally: the evidence centers on verifiable math, DAPO-Math-17K, and Qwen2.5-32B, with cumulative rather than factorial ablation and no equivalent cross-domain validation of all four controls.