# GDPO: Why Multi-Reward RL Should Normalize Each Reward on Its Own

> GDPO is NVIDIA's January 2026 fix for multi-reward RL. GRPO sums the rewards before normalizing, which can collapse different reward combinations into one advantage; GDPO normalizes each reward first. This post re-enumerates the paper's counts and flags claims that do not check out.

- URL: https://dmxsf.com/en/blog/gdpo-group-reward-decoupled-normalization-policy-optimization/
- [DMXSF](https://dmxsf.com/en/about/)
- Published: 2026-01-18
- Updated: 2026-11-13
- Paper notes
- Paper: [GDPO: Group reward-Decoupled Normalization Policy Optimization for Multi-reward RL Optimization](https://arxiv.org/abs/2601.05242) (Shih-Yang Liu, Xin Dong, Ximing Lu, et al. · arXiv, 2026)

"GDPO: Group reward-Decoupled Normalization Policy Optimization for Multi-reward RL Optimization" (Liu et al., NVIDIA; GDPO below) takes up a concrete engineering question. When reinforcement learning optimizes several rewards at once, such as correctness, format and length, the usual recipe is to add the rewards up and normalize the total inside the group, as GRPO does. The paper argues that this gives different reward combinations exactly the same advantage. In the smallest example, two binary rewards and two rollouts, six unordered combinations of total rewards end up with only two distinct advantages, so the training signal loses resolution. GDPO's fix is small: normalize each reward inside the group first, then take a weighted sum, then normalize once over the whole batch. The paper reports that GDPO beats GRPO on tool calling (Qwen2.5-Instruct 1.5B and 3B), math reasoning (DeepSeek-R1-1.5B, 7B and Qwen3-4B-Instruct) and code reasoning; on AIME, DeepSeek-R1-1.5B gains 6.3 points of accuracy over GRPO.

The paper appeared on arXiv on January 8, 2026 (v1, which this post follows), and its abstract links implementations in HF-TRL, verl and NeMo-RL. The 1.5B to 7B reinforcement-learning runs cannot be reproduced on a laptop, so this post checks the half of the argument that can be checked exactly: the paper's central evidence is a count of distinct advantage groups, and that count can be enumerated. I recomputed the paper's Figures 2 and 3 (CPU only, a couple of seconds) and checked how the text describes Table 3. The counts match point by point, and GDPO's curves can be continued further than the paper plots them. But the text's example that three rollouts with all totals equal to 1 get nonzero advantages under GDPO does not hold for two binary rewards, and of the 15 accuracy cells in Table 3 GDPO is higher in 10, equal in 1 and lower in 4, so it is not better everywhere.

## Why this paper is worth reading

- **Multi-reward RL is now the norm.** Math answers are scored for correctness, format and length; tool calls for correctness and output structure. In its related work the paper notes that [DeepSeek-V3.2](https://dmxsf.com/en/blog/deepseek-v32-pushing-the-frontier-of-open-large-language-models/)'s RL stage combines rule-based outcome rewards, a length penalty and a language-consistency reward. Nearly all such training defaults to "add them up and hand them to GRPO", and few people check that step.
- **The argument can be checked by enumeration.** Whether different reward combinations receive the same advantage is plain arithmetic. You can check it without training a model, and that is what this post does.
- **It also answers how to express priorities.** Sections 3.2 and 4.2.1 compare reward weights with conditioned rewards, which is directly useful when you design a reward function.
- **It sits next to posts already on this site.** The origin of GRPO is in the [DeepSeekMath write-up](https://dmxsf.com/en/blog/deepseekmath-pushing-the-limits-of-mathematical-reasoning/), two common refinements are in [DAPO](https://dmxsf.com/en/blog/dapo-open-source-llm-reinforcement-learning-system-at-scale/) and [GSPO](https://dmxsf.com/en/blog/gspo-group-sequence-policy-optimization/), and the basics are on the [reasoning RL](https://dmxsf.com/en/wiki/post-training/reasoning-rl/) page.

## Background: GRPO's group normalization

For each question GRPO samples $G$ responses and normalizes each response's reward inside the group to get its advantage (a tiny constant in the denominator guards against division by zero):

$$
A^{(j)}=\frac{r^{(j)}-\mu}{\sigma}
$$

Here $\mu$ and $\sigma$ are the mean and standard deviation of the $G$ rewards of the group. That is the single-reward case. With $n$ rewards, the common practice summarized in the paper's Equations 1 and 2 is to add first and normalize afterwards:

$$
r_{\text{sum}}^{(j)}=\sum_{k=1}^{n} r_k^{(j)},\qquad
A_{\text{sum}}^{(j)}=\frac{r_{\text{sum}}^{(j)}-\mu_{\text{sum}}}{\sigma_{\text{sum}}}
$$

$\mu_{\text{sum}}$ and $\sigma_{\text{sum}}$ are the mean and standard deviation of the total rewards of the group. Dr. GRPO and DeepSeek-V3.2 use a variant that drops the denominator and only subtracts the mean; the paper calls it "GRPO w/o std", and so does this post.

## The problem: reward collapse

Start with the example in the paper's Figure 2: two binary rewards $r_1,r_2\in\{0,1\}$ and two responses per question. A response's total reward is 0, 1 or 2, so two responses have six unordered combinations of totals. Normalized the GRPO way, they produce only two advantages: the three combinations with equal totals get $(0,0)$, and the other three, $(0,1)$, $(0,2)$ and $(1,2)$, all get the same $(-0.7071,\,0.7071)$. But $(0,2)$ means "one response met both goals and the other met neither", which should carry a stronger signal than $(0,1)$. The variant without the standard deviation separates them ($\pm0.5$ and $\pm1.0$), but the paper says that as the number of rollouts grows this variant adds only a few distinct advantage groups.

The paper concludes that this loss of information makes policy updates less accurate, hurts convergence, and sometimes causes early training failure. Below is how GDPO changes the computation, followed by an enumeration that tests the counts.

## Method: GDPO

GDPO turns "add, then normalize" into "normalize, then add". Each reward $k$ is normalized inside the group on its own, the results are added with weights, and the sum is normalized once over the whole batch (Equations 4 to 7 of the paper):

$$
A_k^{(j)}=\frac{r_k^{(j)}-\mu_k}{\sigma_k},\qquad
A_{\text{sum}}^{(j)}=\sum_{k=1}^{n} w_k A_k^{(j)}
$$

$$
\hat A^{(j)}=\frac{A_{\text{sum}}^{(j)}-\mu_B}{\sigma_B+\epsilon}
$$

$\mu_k$ and $\sigma_k$ are the mean and standard deviation of the $k$-th reward inside the group, $w_k$ is the reward weight (all ones by default), and $\mu_B$ and $\sigma_B$ are the mean and standard deviation of $A_{\text{sum}}$ over every response in the batch. The first step gives every reward the same say in the advantage no matter how large its numeric range is. The weights in the second step are the knob for priorities. The batch normalization in the third step keeps the final advantage on a fixed scale however many rewards there are, and it does not change the number of distinct advantage groups.

*Figure: Figure 1: GRPO normalizes after adding the rewards, so different reward combinations can map to the same advantage; GDPO normalizes each reward first, adds them, and normalizes once more over the batch so the advantage scale does not grow with the number of rewards.*

Two consequences. First, with $n=1$ GDPO is "GRPO plus one batch normalization", so the two methods differ mainly when there are several rewards. Second, Section 3.2 proposes a conditioned reward (Equation 8): the easy reward $r_k$ is paid only if the harder reward $r_l$ reaches a threshold, $\tilde r_k=r_k$ when $r_l\ge t$ and 0 otherwise, which targets the habit of the model to max out the easy reward first.

## Check it yourself: enumerating the paper's counts

The script below uses only NumPy and finishes in seconds. It does seven things: it recomputes Figure 2; it recomputes both panels of Figure 3 and keeps going beyond the range the paper plots; it tests the text's claim that groups with equal totals get nonzero advantages under GDPO; it uses made-up demo data to show which reward each method's advantage follows when the rewards have different scales; it compares Table 3 cell by cell on accuracy and length violations; and it demonstrates what batch normalization does. A count is defined like this: for a group of $G$ responses, let each response's reward vector range over $\{0,1\}^n$, compute the group's advantages, sort them, round to 6 decimals, and call each distinct result one "advantage group". Under this definition the numbers for GRPO, GRPO w/o std and GDPO agree with the points I can read off the paper's Figure 3; details below. The Table 3 numbers were transcribed from the PDF.

```python
"""Checking GDPO: enumerate advantages, recompute Figs. 2-3 and tables"""
import itertools
from math import comb

import numpy as np

def norm(x, std=True):
    # group normalisation, std with ddof=1 (paper's 0.7071)
    # a constant column gives advantage 0
    c = x - x.mean(-1, keepdims=True)
    if not std:
        return c
    s = x.std(-1, ddof=1, keepdims=True)
    return np.where(s > 0, c / np.where(s > 0, s, 1), 0.0)

def grpo(r):
    # r has shape [groups, G, n]: sum, then normalise
    return norm(r.sum(-1))

def gdpo(r, w=None):
    # normalise each reward, weighted sum, then normalise over the batch
    w = np.ones(r.shape[-1]) if w is None else np.asarray(w, float)
    a = sum(w[k] * norm(r[:, :, k]) for k in range(r.shape[-1]))
    return (a - a.mean()) / (a.std() + 1e-6)

def groups(adv):
    # sort, round to 6 digits; each distinct result is one group
    return np.unique(np.round(np.sort(adv, axis=-1), 6) + 0.0, axis=0)

def n_grpo(G, n, std):
    # every multiset of total rewards
    sums = itertools.combinations_with_replacement(range(n + 1), G)
    adv = [norm(np.array(s, dtype=float), std) for s in sums]
    return len(groups(np.array(adv)))

def n_gdpo(G, n):
    # The same groups can be enumerated per rollout (G reward vectors)
    # or per reward (n 0/1 columns); take the cheaper one
    if comb(G + 2**n - 1, G) <= comb(2**G + n - 1, n):
        vec = np.array(list(itertools.product([0, 1], repeat=n)), float)
        idx = np.array(list(itertools.combinations_with_replacement(
            range(len(vec)), G)))
        adv = sum(norm(vec[idx][:, :, k]) for k in range(n))
    else:
        cols = np.array(list(itertools.product([0, 1], repeat=G)), float)
        idx = np.array(list(itertools.combinations_with_replacement(
            range(len(cols)), n)))
        adv = norm(cols)[idx].sum(1)
    return len(groups(adv))

def show(v):
    return "(" + ", ".join(f"{x:.4f}" for x in v) + ")"

print("== 1. Fig. 2: two binary rewards, two rollouts ==")
types = list(itertools.product([0, 1], repeat=2))
seen = {}
for r in itertools.product(types, repeat=2):
    r = np.array(r, dtype=float)
    key = tuple(int(x) for x in sorted(r.sum(1)))
    sets = seen.setdefault(key, [set(), set(), set()])
    s = r.sum(1)
    sets[0].add(tuple(np.sort(np.round(norm(s), 4) + 0.0)))
    sets[1].add(tuple(np.sort(np.round(norm(s, False), 4) + 0.0)))
    g = norm(r[:, 0]) + norm(r[:, 1])
    sets[2].add(tuple(np.sort(np.round(g, 4) + 0.0)))
for key in sorted(seen):
    a, b, c = (", ".join(show(x) for x in sorted(v)) for v in seen[key])
    print(f"totals {key}: GRPO {a} | w/o std {b} | GDPO {c}")
print("distinct groups: GRPO %d, GRPO w/o std %d, GDPO %d"
      % (n_grpo(2, 2, True), n_grpo(2, 2, False), n_gdpo(2, 2)))

print("\n== 2. Fig. 3 left: two rewards, rollouts G from 2 to 16 ==")
print("   G   GRPO  w/o std   GDPO")
for G in range(2, 17):
    print(f"{G:4d} {n_grpo(G, 2, True):6d} {n_grpo(G, 2, False):8d}"
          f" {n_gdpo(G, 2):6d}")

print("\n== 3. Fig. 3 right: G=4, rewards n from 2 to 8 ==")
print("   n   GRPO  w/o std   GDPO")
for n in range(2, 9):
    print(f"{n:4d} {n_grpo(4, n, True):6d} {n_grpo(4, n, False):8d}"
          f" {n_gdpo(4, n):6d}")

print("\n== 4. Equal totals, but some reward varies ==")
print("  G  n  equal totals, varying  of which GDPO nonzero")
for G, n in ((3, 2), (4, 2), (6, 2), (3, 3), (4, 3), (5, 3)):
    tot = nz = 0
    for grp in itertools.product(itertools.product([0, 1], repeat=n),
                                 repeat=G):
        r = np.array(grp, dtype=float)
        if np.ptp(r.sum(1)) > 0 or np.ptp(r, axis=0).max() == 0:
            continue
        tot += 1
        nz += np.abs(sum(norm(r[:, k]) for k in range(n))).max() > 1e-9
    print(f"{G:3d}{n:3d}{tot:14d}{nz:22d}")

print("\n== 5. Reward scales differ: within-group correlation (demo) ==")
rng = np.random.default_rng(0)
N, G = 200_000, 4
fmt = rng.integers(0, 2, (N, G)).astype(float)       # format reward 0/1
cor = rng.integers(-3, 4, (N, G)).astype(float)      # correctness reward -3..3
both = np.stack([fmt, cor], -1)

def corr(a, r):
    a, r = norm(a, False), norm(r, False)
    den = np.sqrt((a * a).sum(1) * (r * r).sum(1))
    ok = den > 0
    return np.mean((a * r).sum(1)[ok] / den[ok])

for name, adv in (("GRPO", grpo(both)), ("GDPO", gdpo(both))):
    print(f"{name}: corr(adv, format) {corr(adv, fmt):.3f},"
          f" corr(adv, correctness) {corr(adv, cor):.3f}")

print("\n== 6. Table 3: GDPO vs GRPO per cell (from the paper) ==")
# (GRPO, GDPO), order MATH, AIME, AMC, Minerva, Olympiad
acc = {
    "R1-1.5B": [(83.6, 86.2), (23.1, 29.4), (64.5, 69.0), (43.5, 44.0),
                (44.3, 46.6)],
    "R1-7B": [(94.1, 93.9), (50.2, 53.1), (83.8, 84.0), (53.2, 53.8),
              (60.2, 59.7)],
    "Qwen3-4B": [(93.9, 93.9), (54.6, 56.9), (85.2, 84.3), (52.4, 51.9),
                 (66.8, 67.5)],
}
exceed = {
    "R1-1.5B": [(1.5, 0.8), (10.8, 6.5), (3.2, 2.3), (1.7, 0.3), (2.6, 1.9)],
    "R1-7B": [(0.5, 0.1), (2.1, 0.2), (0.6, 0.3), (0.2, 0.1), (1.1, 0.4)],
    "Qwen3-4B": [(0.8, 0.1), (2.5, 0.1), (0.7, 0.1), (0.3, 0.1), (1.6, 1.0)],
}
w = t = lo = fewer = 0
for model in acc:
    d = [round(g - r, 1) for r, g in acc[model]]
    print(f"{model:9s} GDPO - GRPO: {d}")
    w += sum(x > 0 for x in d)
    t += sum(x == 0 for x in d)
    lo += sum(x < 0 for x in d)
    fewer += sum(g < r for r, g in exceed[model])
print("of 15 cells GDPO is higher in %d, equal in %d, lower in %d" % (w, t, lo))
print("length-exceed ratio: GDPO is lower in %d / 15 cells" % fewer)
gap = round(29.4 - 23.1, 1)
print("R1-1.5B AIME gain: %.1f (Sec. 4.2 says 6.7, intro 6.3)" % gap)

print("\n== 7. Batch normalization: summed advantage grows with n ==")
rng = np.random.default_rng(1)
for n in (1, 2, 4, 8):
    r = rng.integers(0, 2, (20_000, 8, n)).astype(float)
    before = sum(norm(r[:, :, k]) for k in range(n))
    print(f"n={n}: std before {before.std():.3f}, after {gdpo(r).std():.3f}")
```

Output:

```text
== 1. Fig. 2: two binary rewards, two rollouts ==
totals (0, 0): GRPO (0.0000, 0.0000) | w/o std (0.0000, 0.0000) | GDPO (0.0000, 0.0000)
totals (0, 1): GRPO (-0.7071, 0.7071) | w/o std (-0.5000, 0.5000) | GDPO (-0.7071, 0.7071)
totals (0, 2): GRPO (-0.7071, 0.7071) | w/o std (-1.0000, 1.0000) | GDPO (-1.4142, 1.4142)
totals (1, 1): GRPO (0.0000, 0.0000) | w/o std (0.0000, 0.0000) | GDPO (0.0000, 0.0000)
totals (1, 2): GRPO (-0.7071, 0.7071) | w/o std (-0.5000, 0.5000) | GDPO (-0.7071, 0.7071)
totals (2, 2): GRPO (0.0000, 0.0000) | w/o std (0.0000, 0.0000) | GDPO (0.0000, 0.0000)
distinct groups: GRPO 2, GRPO w/o std 3, GDPO 3

== 2. Fig. 3 left: two rewards, rollouts G from 2 to 16 ==
   G   GRPO  w/o std   GDPO
   2      2        3      3
   3      4        6      6
   4      7       10     14
   5     11       15     26
   6     16       21     38
   7     22       28     59
   8     29       36     81
   9     37       45    109
  10     46       55    145
  11     56       66    186
  12     67       78    230
  13     79       91    288
  14     92      105    350
  15    106      120    419
  16    121      136    497

== 3. Fig. 3 right: G=4, rewards n from 2 to 8 ==
   n   GRPO  w/o std   GDPO
   2      7       10     14
   3     14       20     45
   4     23       35    127
   5     41       56    318
   6     56       84    722
   7     89      120   1507
   8    119      165   2929

== 4. Equal totals, but some reward varies ==
  G  n  equal totals, varying  of which GDPO nonzero
  3  2             6                     0
  4  2            14                     0
  6  2            62                     0
  3  3            48                     0
  4  3           156                    72
  5  3           480                   300

== 5. Reward scales differ: within-group correlation (demo) ==
GRPO: corr(adv, format) 0.220, corr(adv, correctness) 0.962
GDPO: corr(adv, format) 0.672, corr(adv, correctness) 0.712

== 6. Table 3: GDPO vs GRPO per cell (from the paper) ==
R1-1.5B   GDPO - GRPO: [2.6, 6.3, 4.5, 0.5, 2.3]
R1-7B     GDPO - GRPO: [-0.2, 2.9, 0.2, 0.6, -0.5]
Qwen3-4B  GDPO - GRPO: [0.0, 2.3, -0.9, -0.5, 0.7]
of 15 cells GDPO is higher in 10, equal in 1, lower in 4
length-exceed ratio: GDPO is lower in 15 / 15 cells
R1-1.5B AIME gain: 6.3 (Sec. 4.2 says 6.7, intro 6.3)

== 7. Batch normalization: summed advantage grows with n ==
n=1: std before 0.931, after 1.000
n=2: std before 1.321, after 1.000
n=4: std before 1.861, after 1.000
n=8: std before 2.639, after 1.000
```

Reading it item by item:

- **Figure 2 matches.** Section 1 of the output: GRPO has 2 distinct advantage groups, GRPO w/o std and GDPO have 3 each. GDPO gives $(0,2)$ the advantage $\pm1.4142$ and $(0,1)$ and $(1,2)$ the advantage $\pm0.7071$, as in the paper's Figure 2; GRPO w/o std gives $(0,1)$ and $(0,2)$ the values $\pm0.5$ and $\pm1.0$, as in the paper's text. GDPO here is without batch normalization, as in the paper's figure (batch normalization is one affine map over the whole batch and does not change the number of groups).
- **Figure 3 matches point by point, and can be continued.** In section 2, GRPO has 121 groups at $G=16$, GRPO w/o std has 136, and GDPO has 186 at $G=11$, the last point the paper plots; in section 3, at $G=4$ and $n=8$ GRPO has 119 groups and GRPO w/o std 165, and GDPO has 722 at $n=6$, the last point the paper plots. These agree with the points I read off the paper's Figure 3 (reading precision is a few groups). The paper stops the GDPO curves at $G=11$ and $n=6$ without saying why. Enumerating with the cheaper of two equivalent methods, one reward vector per response or one 0/1 column per reward, reaches $G=16$ (497 groups) and $n=8$ (2,929 groups).

*Figure: Figure 2: recomputing the paper's Figure 3. The y value is the number of distinct advantage groups (defined in the text). The GRPO and GRPO w/o std curves, and GDPO inside the range the paper plots, agree with the points readable from the paper's Figure 3; the paper stops GDPO at G=11 and n=6, and the dashed parts are my continued enumeration. The right y axis is logarithmic.*

- **More advantage groups does not mean better training.** GRPO w/o std has more groups than GRPO, yet in the paper's Table 2 it fails to learn the format in tool calling: the correct-format rate on BFCL-v3 is 0%. So the group count is a proxy for resolution, neither sufficient nor necessary; the paper's own evidence is its training curves and downstream scores, not this count.
- **The G=3 example in the text does not hold.** The paper writes that for three responses whose totals are all 1, GRPO gives $(0,0,0)$, but such totals can come from partitions like $r_1=(1,1,0)$ or $r_2=(0,0,1)$, for which GDPO would produce nonzero advantages. Section 4 of the output enumerates every group with equal totals but varying rewards: with two binary rewards, $G=3$ has 6 such groups and GDPO gives a nonzero advantage in 0 of them; $G=4$ and $G=6$ also give 0. The reason is simple: if two binary rewards have equal totals and still differ, the totals must all be 1, so $r_2=1-r_1$, and the two normalized columns are exact opposites that cancel when added. The $(1,1)\to(0,0)$ entry in Figure 2 says the same thing. With three rewards, $G=3$ still gives 0, and a nonzero advantage first appears at $G=4$ (72 of 156 groups). This affects only that one sentence of illustration, not the conclusion of the counts.
- **When rewards have different scales, "add, then normalize" favors the larger one (my own demo, not an experiment in the paper).** In section 5 the format reward is 0 or 1 and the correctness reward is an integer from $-3$ to 3 (a scale like the paper's tool-calling rewards; the data are made up). GRPO's advantage correlates 0.962 with the correctness reward and only 0.220 with the format reward; GDPO's two correlations are 0.712 and 0.672, nearly equal. This is a second effect, different from collapse: after adding and normalizing, the large-scale reward becomes the de facto driver, and the weights $w_k$ lose their meaning.
- **Table 3, cell by cell.** Of the 15 accuracy cells, GDPO is higher than GRPO in 10, equal in 1 and lower in 4: DeepSeek-R1-1.5B is higher on all five benchmarks, R1-7B is 3 higher and 2 lower, Qwen3-4B-Instruct is 2 higher, 1 equal and 2 lower. The length-violation rate is lower for GDPO in all 15 cells. The abstract says GDPO "consistently outperforms" GRPO in all settings; that holds for length control and holds for accuracy only in most cells. Also, for R1-1.5B on AIME the introduction says 6.3, the text of Section 4.2 says 6.7, and Table 3 gives 29.4 minus 23.1, which is 6.3; trust the introduction and the table.
- **What batch normalization does.** In section 7, with random binary rewards and 8 responses per group, adding $n$ normalized rewards raises the standard deviation of the advantage from 0.931 at $n=1$ to 2.639 at $n=8$, roughly as $\sqrt n$; batch normalization pulls it back to 1 (by definition). The paper's Appendix A says that without this step GDPO training occasionally fails to converge; that is a training phenomenon, and the numbers above only show that the scale really does change.

Environment: Apple M2 Max, Python 3.14.3, NumPy 2.4.2, CPU only, about 2 seconds; section 5 uses a fixed-seed `default_rng(0)`, section 7 an independent `default_rng(1)`, and everything else is exhaustive enumeration with no randomness.

## The paper's experiments and conclusions

The paper compares GDPO with GRPO on three kinds of tasks, all trained with verl.

**Tool calling** (following the ToolRL setup): 4k training examples (2k from ToolACE, 1k from Hammer, 1k from xLAM) and two rewards, a format reward in {0, 1} and a correctness reward from $-3$ to 3. Models are Qwen2.5-Instruct 1.5B and 3B, with 4 rollouts per question, batch size 512 and 100 training steps, evaluated on BFCL-v3 and averaged over five runs per method.

| Model | Method | Avg accuracy | Correct format |
| --- | --- | --- | --- |
| 1.5B | base | 17.88% | 4.74% |
| 1.5B | GRPO | 30.18% | 76.33% |
| 1.5B | GRPO w/o std | 29.26% | 0% |
| 1.5B | GDPO | 32.81% | 80.66% |
| 3B | base | 31.90% | 58.37% |
| 3B | GRPO | 39.20% | 81.64% |
| 3B | GDPO | 40.87% | 82.23% |

In the paper's training curves (median and interquartile band over five runs), GDPO converges to higher format and correctness rewards; GRPO w/o std reaches a correctness reward close to GDPO's but never learns the format reward.

**Math reasoning**: two rewards, correctness (0 or 1) and length (1 if the response stays within 4,000 tokens, else 0). The training set is the 40k competition problems of DeepScaleR-Preview, for 500 steps with 16 rollouts per question, batch size 512 and at most 8,000 tokens, using the DLER recipe (dynamic sampling, a higher clipping bound, and DAPO's token-level mean loss). At evaluation the limit is 32k tokens, each question is sampled 16 times, and "length violations" is the share of responses over 4,000 tokens. The table lists MATH and AIME only.

| Model | Method | MATH acc. | AIME acc. | AIME over length |
| --- | --- | --- | --- | --- |
| R1-1.5B | base | 84.3% | 29.8% | 91.5% |
| R1-1.5B | GRPO | 83.6% | 23.1% | 10.8% |
| R1-1.5B | GDPO | 86.2% | 29.4% | 6.5% |
| R1-7B | base | 93.6% | 55.4% | 85.6% |
| R1-7B | GRPO | 94.1% | 50.2% | 2.1% |
| R1-7B | GDPO | 93.9% | 53.1% | 0.2% |
| Qwen3-4B-Instruct | base | 94.6% | 63.7% | 71.3% |
| Qwen3-4B-Instruct | GRPO | 93.9% | 54.6% | 2.5% |
| Qwen3-4B-Instruct | GDPO | 93.9% | 56.9% | 0.1% |

Two points about this table. First, both methods push the AIME length-violation rate from 70% to 90% down to single digits, and the price is AIME accuracy: for R1-7B and Qwen3-4B-Instruct both trained models fall below the base model, GDPO by less. So "GDPO is better" means it loses less under the same length budget, not that it beats the base model. Second, the paper's curves show GRPO degrading after about 400 steps (correctness reward falls, the longest response in the batch grows) while GDPO does not; that is one set of curves, on DeepSeek-R1-1.5B.

**Priorities** (DeepSeek-R1-7B): the length-reward weight $w_{\text{length}}$ is set to 1.0, 0.75, 0.5 and 0.25, and accuracy and violation rates are read on AIME and MATH. The paper observes that going from 1.0 to 0.75 or 0.5 barely changes the violation rate, and only 0.25 relaxes it clearly (on AIME for both methods, on MATH for GDPO), because the length reward is so much easier. With a conditioned length reward (paid only for correct answers) the weight becomes controllable.

| Setting (R1-7B) | AIME accuracy | AIME over length |
| --- | --- | --- |
| base | 55.4% | 85.6% |
| GRPO, original length reward | 50.2% | 2.1% |
| GDPO, original length reward | 53.1% | 0.2% |
| GRPO, conditioned length reward | 53.3% | 29.2% |
| GDPO, conditioned length reward | 57.7% | 12.3% |

**Code reasoning** (DeepSeek-R1-7B, 24k problems from Eurus-2-RL, 400 steps, evaluated on the PRIME validation sets Apps, CodeContests, Codeforces and Taco): the two-reward setting is the pass rate plus a conditioned length reward; the three-reward setting adds a bug reward for whether the code runs without errors.

| Benchmark | Two rewards: pass rate GRPO / GDPO | Three rewards: bug rate GRPO / GDPO |
| --- | --- | --- |
| Apps | 67.2% / 68.3% | 20.3% / 18.8% |
| CodeContests | 63.2% / 65.8% | 3.9% / 2.5% |
| Codeforces | 68.1% / 71.2% | 2.5% / 1.8% |
| Taco | 45.1% / 48.4% | 30.0% / 28.0% |

In the three-reward setting the two methods reach about the same pass rate (Table 5 of the paper, GDPO against GRPO: 67.8% against 68.1%, 65.6% against 65.6%, 69.4% against 69.5%, 45.1% against 44.4%), and GDPO's gain shows up as lower bug and length-violation rates.

## Limitations and reservations

- **The count is a proxy.** As noted above, more advantage groups does not mean better training; GRPO w/o std is the counterexample. The paper uses the count to argue about resolution and the training curves to argue about effect, and the causal link between the two is the authors' interpretation, not tested separately.
- **GDPO bundles two changes.** Per-reward normalization and batch normalization arrive together. Appendix A compares "GDPO without batch normalization", but nothing compares "GRPO with batch normalization", so we cannot say how much of the gain comes from normalizing separately.
- **The statistics are thin.** Tool calling gives averages and medians over five runs; the other experiments do not say how many training runs they use and give no confidence intervals. Many differences in Table 3 for the 7B and 4B models are within a point, and without a noise estimate they cannot be read.
- **Reward design and algorithm are entangled.** In Table 4, the same GDPO goes from 53.1% to 57.7% AIME accuracy when the length reward is conditioned, and the violation rate goes from 0.2% to 12.3% at the same time: the larger gain comes from a reward design that relaxes the length constraint, not from the normalization. When you compare two algorithms, the reward function must be identical.
- **Two statements disagree with the enumeration or the tables** (the G=3 example, and 6.7 against 6.3), and Table 3 has one typesetting error (the base-model Minerva score for R1-1.5B reads "38.41.%"). None changes the main conclusions, but when you cite numbers from the paper, trust the tables.
- **I did not reproduce the training.** RL runs at 1.5B to 7B need multiple GPUs and days; what this post checks is the arithmetic in the argument, not the training results.

## What to take away

1. **Do not add several rewards and then normalize the total.** Doing so both squeezes different combinations into one advantage (the paper's claim) and lets the reward with the larger scale take over (this post's demo).
2. **Normalize first, then add with weights; only then are weights priority knobs.** Each reward is brought to the same scale first, so $w_k$ has a predictable meaning; batch normalization keeps the scale from growing with the number of rewards.
3. **When priorities conflict, change the reward function rather than the weights.** A conditioned reward, where the easy reward is paid only once the harder goal is met, writes "hard first, easy second" into the reward itself.
4. **Separate length control from accuracy when you read the results.** GDPO is consistently better at length control; for accuracy only R1-1.5B shows a clear advantage, and the rest are small differences that go both ways.

## Further reading

- Paper: [GDPO (arXiv 2601.05242)](https://arxiv.org/abs/2601.05242).
- Background: GRPO in [DeepSeekMath (arXiv 2402.03300)](https://arxiv.org/abs/2402.03300); Dr. GRPO in [Understanding R1-Zero-Like Training (arXiv 2503.20783)](https://arxiv.org/abs/2503.20783); DAPO in [arXiv 2503.14476](https://arxiv.org/abs/2503.14476).
- Recipes the paper builds on: tool calling follows [ToolRL (arXiv 2504.13958)](https://arxiv.org/abs/2504.13958), length control follows [DLER (arXiv 2510.15110)](https://arxiv.org/abs/2510.15110).
- On this site: [reasoning RL](https://dmxsf.com/en/wiki/post-training/reasoning-rl/), [preference optimization](https://dmxsf.com/en/wiki/post-training/preference-optimization/), the [DeepSeekMath write-up](https://dmxsf.com/en/blog/deepseekmath-pushing-the-limits-of-mathematical-reasoning/), the [DAPO write-up](https://dmxsf.com/en/blog/dapo-open-source-llm-reinforcement-learning-system-at-scale/) and the [GSPO write-up](https://dmxsf.com/en/blog/gspo-group-sequence-policy-optimization/).

## FAQ

### What is the difference between GDPO and GRPO?

With several rewards, GRPO adds them into one total reward and normalizes that total inside the group. GDPO reverses the order: it normalizes every reward inside the group on its own, adds the results with weights, and then normalizes once more over the whole batch so the advantage scale does not grow with the number of rewards. With a single reward, GDPO is GRPO plus one batch-level normalization.

### What is reward collapse in multi-reward GRPO?

Different reward combinations end up with the same advantage. The paper's smallest example has two binary rewards and two rollouts per question: the total-reward pairs (0,1), (0,2) and (1,2) all get the advantage (-0.7071, 0.7071) under GRPO, even though (0,2) means one rollout met both goals. GDPO gives (0,2) the advantage (-1.4142, 1.4142), so the three pairs fall into three distinct groups. I recomputed the counts behind the paper's Figures 2 and 3 by enumeration, and they all match.

### What does GDPO's batch-wise normalization do?

Summing n separately normalized rewards makes the advantage grow with n. In my simulation the standard deviation rises from 0.931 at n=1 to 2.639 at n=8, roughly as the square root of n, and the policy-gradient step depends on the advantage scale. Batch normalization pulls the sum back to unit scale. The paper's Appendix A reports that without this step GDPO training occasionally fails to converge.

### Can reward weights express that correctness matters more than length?

The paper finds that weights alone are unreliable when the objectives differ a lot in difficulty, because the model first maximizes the easy reward (length). On DeepSeek-R1-7B, lowering the length weight from 1.0 to 0.75 or 0.5 barely moves the length-violation rate; only 0.25 relaxes it clearly. The paper switches to a conditioned reward that pays the length bonus only for correct answers, which makes weights behave predictably: on AIME, GDPO with the conditioned length reward reaches 57.7% accuracy and GRPO with the same reward 53.3%.

### How reliable are GDPO's gains, and when can you skip it?

Only the tool-calling results are averaged over five runs; the other experiments do not state how many training runs they use and give no confidence intervals. Comparing the 15 accuracy cells of Table 3 one by one, GDPO is higher in 10, equal in 1 and lower in 4; the length-violation rate is lower in all 15. The solid findings are better length control and a clear accuracy gain on DeepSeek-R1-1.5B; differences under one point on the 7B and 4B models cannot be judged without a noise estimate. With a single reward there is no collapse to fix, so there is no reason to switch.
