Mixed RL
×One GRPO stage for reasoning, agents and alignment together, continued for thousands of steps from the distilled checkpoint, with synthesized agentic tasks.
GRPO, group relative policy optimization
For each prompt the model writes a group of answers; each is scored and compared with the group’s mean, and the model is moved toward the answers above it, by a step clipped near the policy that wrote them and with a penalty for leaving a reference model.
DeepSeek-V3.2 report, eq. 8; for one question, in the atlas’s letters m, r̄, D
What the letters mean
: responses sampled for one question by the policy that generated the data; : the ratio of the current policy’s probability of token of to that policy’s; : the response’s outcome reward less its group’s mean; : 0 for a response of negative advantage whose mean log-ratio of the sampling to the current policy exceeds , else 1 (eq. 9); : the clipping range; : the unbiased KL estimate to the reference policy of eq. 7, of weight . Maximized; the report takes the expectation over questions.
- Agentic tasks
- 1,827 synthesized environments; real code and search
- Steps
- thousands
- Compute
- more than 10% of pre-training
- Rewards
- rule-based; a generative reward model with rubrics
Not disclosed Group size · Learning rate · Trainable
Why
Merging reasoning, agent and human-alignment training into one RL stage balances performance across domains and avoids the catastrophic forgetting the report associates with multi-stage training. DeepSeek-V3.2 report §3, p. 6
Inference and training frameworks can route the same input to different experts; keeping the routing used in sampling makes training optimize the same experts, which the report found crucial for the stability of RL on mixture-of-experts models. DeepSeek-V3.2 report §3.1, p. 8
Architecture at this stageThe model as drawn, the published DeepSeek-V3.2; the experts each token was routed to in sampling are kept in training.
What the terms meanRule-based reward · Generative reward model · Catastrophic forgetting
- Rule-based reward
- A reward computed by a fixed check, such as whether the final answer matches the reference or the code passes its tests, with no model judging.
- Generative reward model
- A language model used as a judge: it writes an assessment of a response, here against rubrics, and gives a score or a verdict.
- Catastrophic forgetting
- A model losing what it learned earlier as it is trained further on other tasks.
All settings9
- Algorithm
- GRPO (eq. 5), with reasoning, agent and human-alignment training merged into one stage
- Stabilization
- An unbiased KL estimate, the K3 estimator corrected by the ratio of current to sampling policy (eq. 7), its weight set per domain, weak or none for mathematics; negative sequences far off-policy masked out (eq. 8–9); the experts’ routing from sampling kept in training (Keep Routing); the sampling’s top-p and top-k masks kept in training (Keep Sampling Mask)
- Rewards
- Reasoning and agent tasks: a rule-based outcome reward, a length penalty and a language-consistency reward; general tasks: a generative reward model with rubrics of each prompt’s own
- Tasks
- Reasoning, agent and human-alignment training in one stage, with the agentic tasks below; the report says the model integrates the data distilled from the specialists and then undergoes thousands of steps of continued RL
- Cold start
- Reasoning within tool use started by prompting: system prompts ask the model to call tools inside its reasoning, and the trajectories it occasionally produces then seed RL
- Agentic tasks
- Code agent: 24,667 tasks in real environments, prompts extracted; search agent: 50,275, real, synthesized; general agent: 4,417 in 1,827 synthesized environments; code interpreter: 5,908, real, extracted (Table 1)
- Steps
- Thousands of steps of continued RL to the final checkpoints
- Compute
- A post-training budget of more than 10% of the pre-training cost
- Attention
- Sparse, in the same way as in the sparse continued pre-training
Sources9
- DeepSeek-V3.2 report, p. 6Algorithm, Rewards, Tasks, Steps
- DeepSeek-V3.2 report, p. 7Algorithm, Stabilization
- DeepSeek-V3.2 report, p. 8Stabilization
- DeepSeek-V3.2 report, p. 9Cold start
- DeepSeek-V3.2 report, p. 10Cold start, Agentic tasks
- DeepSeek-V3.2 report, p. 11Agentic tasks
- DeepSeek-V3.2 report, p. 2Compute
- DeepSeek-V3.2 report, p. 13Compute
- DeepSeek-V3.2 report, p. 5Attention