DAPO and the Stability Problem in Long-Chain-of-Thought RL

DAPO—Decoupled Clip and Dynamic sAmpling Policy Optimization—is an open reinforcement-learning system for training language models to produce long chains of reasoning. This series asks a focused question: why can a capable model and an exact answer checker still produce an unstable RL run, and what does DAPO change to keep learning useful? The answer is not a new optimizer in isolation. It is a set of controls over exploration, the information contained in sampled groups, credit across long responses, and the reward boundary created by a length limit.

That distinction matters because long-chain-of-thought training changes the failure surface. A short answer can be judged mostly by whether it is right. A long response is a sequence of thousands of decisions whose final correctness may be known only at the end. The policy must explore enough to discover better reasoning patterns, but not so freely that it fills the training stream with repetition or gibberish. It must learn from long successful traces without allowing length itself to become a shortcut. And it must not confuse “ran out of space” with “reasoned incorrectly.” DAPO is best understood as an attempt to keep those boundaries from drifting apart.

A benchmark result that is really a systems question

The DAPO paper reports a striking progression on AIME 2024 using a Qwen2.5-32B base model. In the authors’ cumulative table, naive GRPO reaches 30 points under their avg@32 reporting, while the assembled DAPO recipe reaches 50. The paper compares that final number with 47 for DeepSeek-R1-Zero-Qwen-32B and says DAPO reaches its result with half the training steps used in the cited comparison. The same paper also releases the algorithm, training code, and processed data, positioning the work as a reproducibility contribution rather than only a leaderboard entry.

The score is important, but it does not mean that DAPO discovered a single universally superior update rule. The table adds interventions in sequence: Overlong Filtering, Clip-Higher, Soft Overlong Punishment, Token-Level Policy Gradient Loss, and Dynamic Sampling. That is evidence for the value of an assembled recipe under the stated setup, not a full factorial experiment that isolates every interaction or order effect. The metric also needs to stay attached to its name. DAPO reports avg@32; the companion DeepSeek-R1 report often uses Pass@1. Those figures cannot be compared as if they were the same measurement.

The training-step comparison is similarly meaningful only inside its experimental frame. Fewer gradient updates can indicate that each update carries a stronger signal, but it does not by itself prove lower total compute: Dynamic Sampling may draw more responses, and verification and long-tail generation still consume resources. The paper argues that the extra sampling cost did not materially slow the reported run and that convergence could arrive sooner, but that conclusion depends on how rollout and training are scheduled. The open release makes such questions inspectable; it does not make them disappear.

The subject is therefore a training system with interacting state, not just a formula. A rollout produces a group of candidate answers. A verifier turns their final outcomes into rewards. The update uses the differences within that group to push some token choices up and others down. Every stage changes the next stage’s inputs. If the policy becomes too concentrated, the group loses diversity. If groups become uniformly correct, they lose relative contrast. If long responses are averaged in the wrong way, useful and pathological tokens receive distorted influence. If truncation is punished too crudely, the reward teaches the policy that exhausting its budget is equivalent to being wrong.

flowchart LR Q["Question"] --> G["Sample response group"] G --> V["Verify outcomes"] V --> A["Relative learning signal"] A --> U["Policy update"] G -.-> X["Exploration"] A -.-> C["Group contrast"] U -.-> T["Token credit"] V -.-> L["Length reward boundary"] X --> D["DAPO stability controls"] C --> D T --> D L --> D D --> A

This map also explains why a precise verifier is necessary but insufficient. In DAPO’s mathematical setting, the reward can be rule-based: a response receives positive or negative feedback according to whether its answer is equivalent to the ground truth. That gives the system a comparatively clean signal. It does not guarantee that optimization will use the signal well. A group can be perfectly labeled and still contain no useful contrast. A policy can pursue correct answers while losing the capacity to explore. A response can be correct for the wrong length-related reason.

Why long reasoning turns small choices into large effects

The underlying lineage is Group Relative Policy Optimization, or GRPO. In the simplest operational picture, GRPO samples several responses for one question, scores them, and normalizes their rewards within the group. It avoids the separate value model used by PPO, which reduces memory and computation. But the price is dependence on the composition of each group: the update is meaningful only when the responses provide informative differences.

The long-response setting makes this dependence sharper. Feedback usually arrives as an outcome, while the response contains a changing sequence of partial attempts, revisions, checks, and detours. The policy therefore has to distribute a final signal over many token decisions. A design that looks harmless for short completions can become consequential when one answer is several times longer than another. The companion DeepSeek-R1 report describes the same broader phenomenon: reinforcement learning can encourage longer responses, reflection, verification, and backtracking, but smaller models may turn additional length into repetition rather than better reasoning.

There is also a tension between staying near a reference policy and allowing the model to discover behavior that the reference did not already express. DeepSeek-R1's related GRPO setup retains a KL coefficient and periodically refreshes its reference policy. DAPO's preliminary discussion removes the KL term because a long-CoT policy may need to move substantially from its initial distribution. That does not make divergence harmless; it makes exploration, clipping, reward quality, and monitoring carry more of the burden. The choice is therefore part of the stability story, not a footnote in an equation.

This is why DAPO’s four interventions should not be read as four unrelated improvements. Clip-Higher addresses a policy-distribution problem. Standard symmetric clipping can make it easier for already-likely tokens to become more likely than for rare exploratory tokens to gain meaningful probability. DAPO separates the lower and upper clipping ranges and raises the upper side, leaving more room for low-probability tokens to be reinforced. The goal is not maximum entropy. It is to avoid an early deterministic policy that stops discovering useful alternatives.

Dynamic Sampling addresses a group-information problem. As accuracy rises, more questions may produce groups in which every sampled answer is correct. Under group-relative normalization, those responses have no meaningful difference from one another; the effective number of informative prompts shrinks even as the nominal batch size stays fixed. DAPO oversamples and filters groups whose correctness is all zero or all one, refilling a buffer with mixed groups before updating. It spends more rollout effort to preserve the contrast on which the update depends.

Token-Level Policy Gradient Loss addresses a credit-allocation problem. In the sample-level reduction used by the original GRPO formulation, each response receives equal final weight after its token losses are averaged. That can dilute useful patterns in a long successful response, while also failing to penalize low-quality repetition spread across a long response strongly enough. Token-level aggregation changes the weighting so that longer sequences can have more influence and a rewarded or suppressed token pattern is treated more consistently across responses of different lengths. It is still outcome-based learning; it is not a complete process verifier.

Overlong Reward Shaping addresses a reward-boundary problem. A hard generation limit is operationally necessary, but a blanket penalty for every truncated response can label a sound reasoning attempt as bad merely because it needed more space. DAPO first uses Overlong Filtering to mask the loss of truncated samples, then applies a softer, length-aware punishment near the limit. That makes length a controlled preference rather than a crude substitute for correctness.

Together these interventions describe a stability problem with four distinct questions: can the policy still explore, does the batch still contain informative comparisons, is credit distributed sensibly across the response, and does the reward distinguish wrongness from exhaustion of the context budget? Calling all four symptoms “training instability” would hide the mechanisms that make them repairable.

The controls also interact. More exploration can change how often a prompt yields a mixed group. Filtering saturated groups changes which response lengths and difficulty levels reach the update. Token-level weighting changes how those retained responses influence the policy, while length shaping changes the label attached to their endings. A useful diagnosis must therefore follow the path of information through the whole loop. Improving one curve while another boundary deteriorates is not necessarily progress; it may be the system moving the failure somewhere else.

The scope of the claim

DAPO’s strongest evidence is also its clearest boundary. The detailed experiment centers on verifiable mathematical tasks, the DAPO-Math-17K dataset, and Qwen2.5-32B. The authors state that the approach can transfer to other tasks, but the supplied evidence does not provide an equivalent cross-domain validation of all four interventions. The companion DeepSeek-R1 report reinforces why that matters: reliable rule-based or concise-answer verification is much easier to scale than judging open-ended writing, and model-based preference rewards can be hacked as optimization proceeds.

The dataset itself is part of the stability design. DAPO transforms varied mathematical answers into integer targets so a rule-based checker can avoid many expression-parsing ambiguities. That choice creates dense, repeatable feedback, but it also narrows what the experiment tests. A system trained on answers that can be checked exactly is not automatically a system that can optimize writing quality, nuanced helpfulness, or an open-ended proof. The reward boundary is part of the subject, not merely a preprocessing detail.

The open release improves the situation for researchers who want to reproduce or extend the work, but openness does not remove sensitivity to data transformation, hyperparameters, rollout cost, verifier latency, or evaluation protocol. Nor does a rise in reflective language prove that a model has acquired human-like understanding; it shows a change in generated behavior under a reward process. A responsible reading of DAPO is narrower and more useful: it is a concrete, evidence-rich recipe for stabilizing one class of large-scale, verifiable long-CoT RL.

That is the practical judgment this series develops. The important question is not whether one can memorize four names. It is whether one can look at a training run and ask which boundary failed: exploration, group contrast, token credit, or reward interpretation. The next step is to make that diagnosis concrete by tracing how a group of sampled answers becomes a policy update, and by seeing exactly where DAPO changes the GRPO baseline.

References