Paper Feed

Issue 45 · Pick 03 AI / ML ✓ read

When Rewards Depend on the Group, GRPO Plays a Tournament

Junyi Gao, Yu Shi, Pingzhao Hu, Ewen M Harrison

TL;DR: GRPO's group-mean baseline — the thing everyone treats as a free variance reducer — silently changes the objective whenever a response's reward depends on its groupmates, which is exactly the situation in every diversity bonus, coverage reward, and distribution-matching scheme now in use. The authors prove an exact identity: GRPO's expected update credits each response's effect on its groupmates with weight -1/(K-1) instead of the correct +1, turning training into a zero-sum tournament where samples are rewarded for hurting each other. This explains the diversity collapse people keep observing. The fix, Team-GRPO, is a leave-one-out difference reward that costs essentially nothing, and the theory is tight enough to predict where a 9B model's policy converges with r = 0.995.

The setup, and why the classical argument breaks

GRPO and RLOO are now the default recipe for RL fine-tuning of language models: sample K responses per prompt, score each one, subtract the group's mean reward as a baseline, and take a policy-gradient step. No critic needed. The textbook justification is Williams (1992): a baseline that is independent of the action reduces variance without biasing the gradient, and since the responses are sampled independently, your groupmates' rewards don't depend on your response. Independent baseline, no bias, done.

Except a whole family of modern rewards breaks the premise. DARLING multiplies a response's quality by its semantic distance to its groupmates. GAPO penalizes answers that are common within the group. Distribution-matching rewards penalize collisions with groupmates so that the sampled set reproduces a target distribution. Pass@k-style set objectives score the group as a whole. In every one of these, the reward r_k of response k is a function of the entire group. Your groupmates' rewards now depend on you — and therefore so does your baseline.

The common assumption (stated explicitly in the GAPO paper) is that this is still fine because the reward doesn't contain \theta. This paper shows it is not fine, and more interestingly, shows that the failure is not noise. It's a different, well-defined objective — and a perverse one.

The α-identity: one conditioning step

Define two scalar functions of a single response y:

\mathrm{own}(y) = \mathbb{E}[r_1 \mid y_1 = y], \qquad \mathrm{ext}(y) = \sum_{j \geq 2} \mathbb{E}[r_j \mid y_1 = y].

The first is the reward a response expects for itself; the second — its externality — is the total effect it has on its groupmates' rewards. A diverse response has positive externality (it raises its groupmates' diversity bonuses); a duplicate has negative externality (it causes collisions).

Now let g_\alpha = \mathbb{E}\big[(\mathrm{own}(y) + \alpha\,\mathrm{ext}(y))\, s_\theta(y)\big], where s_\theta(y) = \nabla_\theta \log \pi_\theta(y) is the score. The paper's Theorem 1 says every estimator sits on one line indexed by \alpha:

  • True gradient of the group objective J = \mathbb{E}[\bar r]: \;\nabla_\theta J = g_{1}. Externalities count with weight +1.
  • REINFORCE (group-independent baseline): \;\mathbb{E}\,\hat g \propto g_{0}. Externalities ignored.
  • GRPO / RLOO: \;\mathbb{E}\,\hat g \propto g_{-1/(K-1)}. Externalities count with weight -1/(K-1).

The derivation is a one-line conditioning argument, and you should verify it yourself because the whole paper rests on it. The baseline term for groupmate j \neq k contributes \mathbb{E}[r_j\, s_\theta(y_k)] = \mathbb{E}\big[\mathbb{E}[r_j \mid y_k]\, s_\theta(y_k)\big] — which is not zero when r_j depends on y_k. Subtracting the leave-one-out mean \frac{1}{K-1}\sum_{j\neq k} r_j therefore subtracts \frac{1}{K-1}\mathrm{ext}(y_k) from the effective credit. The group-relative baseline doesn't merely discard a response's contribution to its teammates; it reverses its sign.

α = weight on externality GRPO / RLOO α = −1/(K−1) zero-sum tournament: beat your groupmates REINFORCE α = 0 Nash: maximize your own reward Team-GRPO = ∇J α = +1 team game: maximize the group's total reward larger K moves GRPO toward Nash, never toward team

effective credit per response: own(y) + α · ext(y)

Every group-relative estimator lies on one line. The true gradient counts a response's effect on its groupmates with weight +1; GRPO counts it with a negative weight, so responses that help the group are penalized. Growing K only shrinks the negative weight toward zero — it never recovers the team objective.

The game-theoretic reading makes this vivid. With payoff U_k = r_k + \alpha \sum_{j\neq k} r_j, GRPO's payoffs (\alpha = -1/(K-1)) sum to exactly zero: it's a zero-sum tournament, formally identical to relative-payoff selection in finite populations (Schaffer, 1988), the setting known to favor spite — behavior that hurts yourself less than it hurts your rivals.

Closed-form consequences

The identity has sharp corollaries for the reward structures people actually use.

Pairwise bonuses are attenuated, and invisible at K=2. For a symmetric m-body interaction term, GRPO retains a fraction \rho_m(K) = \frac{K-m}{m(K-1)} of the true weight. For pairwise diversity (m=2): 0 at K=2, 1/3 at K=4, 3/7 at K=8, never exceeding 1/2. The K=2 case is worth internalizing: with two samples, GRPO's advantage is \tfrac{1}{2}(r_1 - r_2), and any symmetric pairwise term appears identically in r_1 and r_2, so it cancels exactly. GRPO literally cannot distinguish two different good answers from the same good answer twice. Standard-deviation normalization, which keeps only the sign of r_1 - r_2, is equally blind.

Quality-weighted diversity can't be rescued by retuning. For DARLING-style rewards r_k = q_k(1 + \lambda D_k) at K=2, the GRPO advantage is \tfrac{1}{2}(q_1 - q_2)(1 + \lambda d_{12}): diversity only scales the quality ranking, and raising \lambda amplifies the ranking most in the most diverse pairs — making collapse faster. More generally (Proposition 3), the antisymmetric part of a pairwise kernel, which the true gradient ignores entirely, enters GRPO's update as a rotational field, so for K>2 GRPO's update isn't the gradient of any objective. For purely symmetric kernels, retuning \lambda by \frac{m(K-1)}{K-m} exactly compensates (and never at K=m); for mixed kernels like DARLING's, no coefficient works at any K.

Fixed points are computable. On a finite answer space with a softmax policy, the \alpha-dynamics ascend an explicit potential. For distribution matching toward a target t, Team-GRPO converges to t, REINFORCE to \mathrm{Proj}_\Delta(2t), and GRPO to \mathrm{Proj}_\Delta\!\big(2t\tfrac{K-1}{K-2}\big) — the mode of t at K=2. GRPO never reaches the target at any K, and the gap is an equilibrium of its game, not an optimization failure.

The fix: a one-sign-flip difference reward

Setting \alpha = +1 gives Team-GRPO. Let R(\mathcal{S}) be the total reward of a set, computed as if \mathcal{S} were the whole group. The advantage is

A_k^{\text{team}} = R(\mathcal{G}) - \tfrac{K}{K-1}\, R(\mathcal{G}\setminus\{y_k\}),

i.e., K times the change response k causes in the group's mean reward. Unbiasedness is immediate: R(\mathcal{G}\setminus\{y_k\}) doesn't depend on y_k, so it's a legitimate baseline, and the remaining R(\mathcal{G})\,s_\theta(y_k) terms sum to K\nabla J. This is a difference reward from multi-agent credit assignment (Wolpert & Tumer; COMA), applied to samples of a single policy — where the counterfactual is exact and free, not learned.

Three practical notes. First, cost: for rewards built from pairwise distance/similarity/collision matrices, the leave-one-out reward is just the matrix with row and column k deleted — O(K^2) arithmetic, zero extra model calls. Second, backward compatibility: for ordinary scalar rewards r_k = f(y_k), the formula telescopes to exactly RLOO, so nothing breaks on standard tasks (this answers the obvious stability worry). Third, K=2: the leave-one-out set is a single response for which a diversity term is undefined, so they use A_k = r_1 + r_2 - b_k with a batch-level baseline — still unbiased, and it works in precisely the two-sample regime where GRPO fails completely. The estimator also subsumes several recent special-purpose fixes (unbiased max@k estimators, SetPO's leave-one-out bonus, the uncentred witness estimator) as special cases. The price is variance: 1.1–2.1× RLOO's at K\geq 4 — but that extra variance is the externality signal GRPO cancels, it shrinks with batch size, and GRPO's bias (39–86% relative error in exact computations) does not.

The evidence, and how tight it is

What elevates this paper above a clean diagnosis is that the theory makes pre-registered quantitative predictions that a 9B model then hits.

Sandbox with exact readout. Qwen3.5-9B answers four-option prompts with single letters, so the policy is readable from logits. Trained with a diversity bonus for 500 LoRA steps, all 12 runs with closed-form predicted fixed points land within \ell_1 \leq 0.018 of them. GRPO at K=2 collapses onto the best option for every \lambda, exactly as predicted; multiplying \lambda by the prescribed factor of 3 moves GRPO at K=4 onto Team-GRPO's solution, as Proposition 5 says it should.

Distributional alignment. On GlobalOpinionQA — match a country's answer distribution — the theory predicted GRPO at K=2 would collapse onto the majority answer and end worse than the untrained model. It did:

GlobalOpinionQA: squared error to human answer distribution (510 unseen questions)test error ||π − t||²00.10.20.30.40.50.1970.4910.1310.081K=20.1970.1810.1310.074K=40.1970.1790.1310.077K=8Base modelGRPOREINFORCETeam-GRPOTable 2. GRPO at K=2 collapses onto the majority answer (≥90% of samples agree on 97% of items), ending 2.5× worse than no training. Larger groups plateau GRPO at its biased fixed point, 2.3–2.4× Team-GRPO's error.

Across all 13 configurations with closed-form fixed points, predicted vs. measured concentration of the trained policy correlates at Pearson r = 0.995. Where the theory predicts ties, there are ties: Poly-EPO (which estimates the same gradient where it can run) finishes within noise of Team-GRPO, and the centred witness estimator's predicted \frac{1}{K}\nabla\|\pi\|^2 bias shows up at K=4 (0.096 vs 0.074) and vanishes at K=8, exactly on schedule. This level of prediction–experiment agreement is rare in RL.

Open-ended generation. On NoveltyBench with the DARLING-structure reward:

NoveltyBench at K=2, λ=2 (benchmark scorer, 400 prompts, 3 seeds)score02468104.013.444.61Set utility4.332.654.56Distinct answers (of 10)7.589.048.511st-sample qualityBase modelGRPOTeam-GRPOTable 3. GRPO's higher first-sample quality is the predicted signature of collapse, not a strength: mass piles onto one good answer while the set degrades below the untrained model. Gaps persist at matched KL (+0.84 utility) and under an independent Claude judge.

GRPO collapses in every seed at K=2 — fewer distinct answers and lower utility than the untrained model — while first-sample quality rises, the predicted signature of collapse. Raising \lambda makes GRPO more collapsed (training diversity 0.193 → 0.147 as \lambda goes 0.25 → 2) while Team-GRPO gets more diverse, exactly as Equation 5 predicts. At K=8 the gap narrows (attenuation ladder) but persists: +0.56 utility, +0.62 at matched KL. The "pick a random prime" example is the whole paper in miniature: GRPO answers 23 in seven of ten samples; Team-GRPO names six different primes.

What changes, and what to watch

If this holds — and the derivation is simple enough to check in ten minutes, while the appendices verify the identities to 10^{-15} by exact enumeration — then every method feeding group-dependent rewards into standard GRPO advantages is optimizing a corrupted objective, and the widely reported diversity collapse under RLHF-style training has, at least in part, a mechanistic explanation: it's the equilibrium of a tournament nobody meant to run. Appendix G's audit of published methods (DARLING, GAPO, DSDR, Pref-GRPO, …) is a useful checklist. The fix is a few lines of advantage computation, degenerates gracefully to RLOO for scalar rewards, and will likely be absorbed into training libraries quickly.

Caveats worth holding. All experiments are one model (Qwen3.5-9B) with rank-16 LoRA, no KL penalty, single-epoch on-policy updates — a deliberately clean regime chosen so theory applies exactly; clipping, multi-epoch reuse, and std-normalization are handled in appendices (simulation only, within 0.074 \ell_1 of predictions), not at frontier-training messiness. The GlobalOpinionQA reward is literally the objective of Proposition 4(b), so that experiment partly validates the math rather than a realistic pipeline — NoveltyBench is the more ecologically honest test. Team-GRPO's variance penalty at K=3 (5.3× RLOO) suggests small odd groups are awkward. And at K=2 the method needs a reward-structure-specific baseline construction, which is the one place the recipe stops being plug-and-play. Nothing here is overclaimed, though — unusually, the paper's hedges match its evidence.

Where to spend your time: Section 2 through Theorem 1 and Corollary 2 for the core result (the proof sketch is three lines), then Table 2 and Figure 4c for the prediction–experiment agreement. Appendix A.7 is a hidden gem: it gives an unbiased estimator for every point on the \alpha-line, cleanly separating "credit each response for its total group effect" (\alpha=1) from "credit it against fixed groupmates" (\alpha=0) — and shows GRPO's negative \alpha serves neither intention a designer could plausibly have.