GRPO step

qPromptqqOld policy{oi}i=1G∼πθold(O∣q)\{o_i\}_{i=1}^{G}\sim\pi_{\theta_{\mathrm{old}}}(O\mid {\htmlClass{vl-stream-q}{q}})o[B, G]Rewardsrules ⋅ generative RM with rubrics\text{rules}\ \cdot\ \text{generative RM with rubrics}r[B, G]Normalize in the groupAi=ri−mean⁡(r1,…,rG)std⁡(r1,…,rG)A_i=\frac{r_i-\operatorname{mean}(r_1,\dots,r_G)}{\operatorname{std}(r_1,\dots,r_G)}A[B, G]Policywi=πθ(oi∣q)πθold(oi∣q)w_i=\frac{\pi_\theta(o_i\mid {\htmlClass{vl-stream-q}{q}})}{\pi_{\theta_{\mathrm{old}}}(o_i\mid {\htmlClass{vl-stream-q}{q}})}w[B, G]KL to the referenceDi=πref(oi∣q)πθ(oi∣q)−log⁡πref(oi∣q)πθ(oi∣q)−1D_i=\frac{\pi_{\mathrm{ref}}(o_i\mid {\htmlClass{vl-stream-q}{q}})}{\pi_\theta(o_i\mid {\htmlClass{vl-stream-q}{q}})}-\log\frac{\pi_{\mathrm{ref}}(o_i\mid {\htmlClass{vl-stream-q}{q}})}{\pi_\theta(o_i\mid {\htmlClass{vl-stream-q}{q}})}-1D[B, G]Clipped objectiveJ=1G∑i(min⁡(wiAi,clip⁡(wi,1±ε)Ai)−βDi)J=\tfrac1G\sum_i\big(\min(w_iA_i,\operatorname{clip}(w_i,1\pm\varepsilon)A_i)-\beta D_i\big)J[1]hatched band: not updated in this step · solid band: what this stage trainsq: one prompt, named beside each model that reads it

Clipped objective

×

Each output pulls the policy by its advantage, the pull clipped where the ratio leaves a band around one; the penalty holds the policy near the reference.

J=1G∑i=1G(min⁡(wiAi, clip⁡(wi,1−ε,1+ε)Ai)−βDi){\htmlData{light=objective objective-op}{J}}=\frac1G\sum_{i=1}^{G}\Big(\min\big({\htmlData{light=ratio policy}{w_i}}{\htmlData{light=advantage advantage-op}{A_i}},\ \operatorname{clip}({\htmlData{light=ratio policy}{w_i}},1-\varepsilon,1+\varepsilon){\htmlData{light=advantage advantage-op}{A_i}}\big)-\beta {\htmlData{light=penalty reference}{D_i}}\Big)
in
ww [B batch, G]AA [B batch, G]DD [B batch, G]
out
JJ [1]
Explanation
A = +1, above the group’s mean0flatA = −1, below the group’s mean0flat1−ε11+εw →
The term one answer adds, the smaller of w·A and clip(w)·A, against its ratio w to the policy that wrote it; dashed, w·A unclipped. For an answer above its group the term is flat past 1+ε: once the policy has made it that much more probable, the step stops pulling it up; for one below, it is flat under 1−ε and stops pushing it down. ε = 0.2 is illustrative; DeepSeek-V3.2 does not disclose it.
Sources

Direct evidence

§2.2.1, Reinforcement Learning Algorithm: GRPO foregoes the critic model and estimates the baseline from group scores. For each question a group of outputs is sampled from the old policy; the objective is the clipped ratio times the advantage, less β times a KL term to π_ref, averaged over the group (eq. 1, 2); the advantage is the reward less the group’s mean, over its standard deviation (eq. 3). ε and β are hyper-parameters the paper does not give for this model.

DeepSeek-R1-2501.12948v1.pdf p. 5 ↗ · arXiv 2501.12948 @ v1