RL
×Large-scale asynchronous reinforcement learning in synthesized agent tasks, with the reasoning effort as a condition and a length penalty that depends on it.
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-R1 paper, eq. 1 to 3, and DeepSeek-V3 report, eq. 26 to 28; for one prompt, in the atlas’s letters w, w̄, D
What the letters mean
: answer ’s probability under the model being trained over its probability under the policy that wrote it; : its reward less the group’s mean, over the group’s standard deviation; : a KL penalty to the reference model; : the group size; , : hyper-parameters. Maximized.
The report names GRPO only through its group (“GRPO group size”, p. 30) and writes no objective. Before mean-centring the rewards among the answers to one prompt at one effort, it adds a length penalty that falls as the requested effort rises; it mentions no division by the rewards’ deviation (p. 29). Its clipping and KL term are not disclosed.
- Effort
- a scalar from 1 to 100 in the prompt
- Length penalty
- falls exponentially with the effort
- Successive runs
- merged checkpoints start the next run
Not disclosed Context of this stage · What is trained · Group size · The trained effort levels · The length penalty’s base coefficient , decay rate , cap and reference length · Clipping, KL term · Learning rate · Tokens
Why
The report says the gains come from the scale, diversity and verifiability of synthesized tasks and environments, under a fixed and unremarkable optimization procedure. DeepSeek-V4.1 report §5.1, p. 25
Architecture at this stageStated for post-training as a whole, with no stage named: the Hierarchical Sparse Indexer is switched on, the main KV cache is trained in FP4, and DSpark trains beside the backbone, its loss sending no gradient into the backbone.
What the terms meanAsynchronous RL · Reasoning effort
- Asynchronous RL
- Generation keeps a steady number of responses in flight, and training takes over the machines as soon as enough are finished; an unfinished response resumes under the updated model, so the model also learns from tokens an earlier version of itself wrote, and tokens that are too stale are left out of the loss. DeepSeek-V4.1 report §5.2, pp. 30–31
- Reasoning effort
- How much the model may reason before it answers: a level given in its prompt, which training ties to a token budget or a length penalty. DeepSeek-V4.1 report §5.1.4, p. 29
All settings14
- Kind
- Large-scale asynchronous RL in synthesized tasks, over several agent scaffolds
- Algorithm
- GRPO is named only through its group; rewards are mean-centered within a subgroup to give group-relative advantages; the report writes no objective
- Effort
- A scalar effort b from 1 to 100 in the system prompt; responses sampled for the same prompt and effort form a subgroup (eq. 8)
- Length penalty
- Added to the reward: , the reasoning tokens, with falling exponentially in (eq. 9, 10)
- Tasks
- A task is a problem, an environment and a verification system; environments for general agents and coding agents are synthesized and checked by agents
- Successive runs
- Checkpoints of runs across scaffolds or configurations are merged to start the next run
- Other reward signals
- A crashed environment is a failed trajectory with a “repercussion” signal; Agent Team mode has a reward of its own
- Asynchronous training
- A prompt is dispatched once as many samples complete as its group holds; recorded expert routing is replayed; tokens too stale are masked from the loss
- Figures
- Figure 7 labels its runs 512K and, on one benchmark from about 1,900 cumulative steps, 1M; three set-ups are plotted to about 2,000, 2,500 and 4,500 cumulative RL steps, none identified as the released model’s
- DSpark
- Trained alongside the backbone through post-training, with no gradient from its objective into the backbone
- Hierarchical Sparse Indexer
- “Training-aware and introduced in post-training”: later indexers score a candidate pool an earlier one selected
- Number format
- Quantization-aware training for the main KV cache in FP4, introduced in post-training; the sliding-window KV cache stays FP8
- Replay
- The decoder’s bounded replay of the sliding window is simulated in post-training
- Long sequences
- “A substantial share of training occurring at ultra-long sequence lengths in both the pre-training and post-training stages”, of sequences up to one million tokens
Sources12
- DeepSeek-V4.1 report, p. 26Kind
- DeepSeek-V4.1 report, p. 29Algorithm, Effort, Length penalty, Other reward signals
- DeepSeek-V4.1 report, p. 30Algorithm
- DeepSeek-V4.1 report, pp. 25–26Tasks
- DeepSeek-V4.1 report, p. 27Successive runs
- DeepSeek-V4.1 report, p. 36Other reward signals
- DeepSeek-V4.1 report, pp. 30–31Asynchronous training
- DeepSeek-V4.1 report, pp. 27–28Figures
- DeepSeek-V4.1 report, p. 14DSpark, Number format
- DeepSeek-V4.1 report, p. 12Hierarchical Sparse Indexer
- DeepSeek-V4.1 report, p. 20Replay
- DeepSeek-V4.1 report, p. 17Long sequences