# #6 Advantage redistribution approaches in rubric-based reinforcement learning

Author: Paulius Rauba
Canonical URL: https://www.pauliusrauba.com/notes/6-advantage-redistribution-approaches-in-rubric-based-reinforcement-learning
Published: 2026-11-23T15:05:58.331Z
Updated: 2026-11-23T15:05:58.331Z

# Advantage redistribution approaches

In rubric-based designs, we obain both a reward and subsequent advantages, but the judges *also* can identify which parts of the sequence are responsible for the correct/incorrect response. Can we use them? Some ideas how to apply the loss calculation to the trainer in a dynamic manner.

For rollout $i$ and criterion $c$ the verdict is $v_{ic}\in\{\text{pass},\text{fail},\text{n/a}\}$. With $p_i$ passes and $f_i$ fails, $R_i = \frac{p_i - f_i}{p_i + f_i}\in[-1,1]$ The advantage from this is the standard is $A_i = R_i - \tfrac{1}{G}\sum_k R_k$, and our LLM is any frozen LLM. Below I compare three approaches for such distribution.

**(1) Uniform advantage distribution (common default).** Every token receives the same advantage and we average the loss per-token-mean, scaled by importance weights. Every token that the policy wrote in rollout $i$ receives the same advantage $A_i$. Write those tokens as $y_{i,1},\dots,y_{i,n_i}$, and let $N=\sum_i n_i$ be their number over the whole batch. The loss is

$$
\mathcal{L} = -\frac{1}{N}\sum_{i} A_i \sum_{t=1}^{n_i} \operatorname{sg}(\rho_{i,t})\,\log \pi_\theta(y_{i,t}\mid y_{i,<t}),
\qquad
\rho_{i,t}=\frac{\pi_\theta(y_{i,t}\mid y_{i,<t})}{\pi_{\text{old}}(y_{i,t}\mid y_{i,<t})} < 2 \text{ (clipped)}, \quad \operatorname{sg} = \text{stop-gradient},
$$

**(2) Targeted dvantage re-distribution.** The loss in (1) uses a single number $A_i$ for the whole rollout. To see what this assumes, it is convenient to allow each token its own advantage $a_{i,t}$ and to consider the more general loss

$$
\mathcal{L}(a) = -\frac{1}{N}\sum_{i}\sum_{t=1}^{n_i} a_{i,t}\,\operatorname{sg}(\rho_{i,t})\,\log \pi_\theta(y_{i,t}\mid y_{i,<t}).
$$

The loss in (1) is the special case $a_{i,t}=A_i$ for all $t$.

For a given rollout $i$, we are assuming that every token is equally responsible for the outcome. That doesn't have to be the case. Suppose we are given a probability distribution on its tokens $q_{i,t}\ge 0$ with $\sum_{t=1}^{n_i} q_{i,t}=1$. Here, $q_{i,t}$ can be thought of as the share of the rollout's credit that is assigned to token $t$. Now set

$$
a_{i,t} = n_i\,A_i\,q_{i,t}.
$$

Two important properties of this. *First, the total amount of mass is conserved.* For every choice of $q_i$,

$$
\sum_{t=1}^{n_i} a_{i,t} = n_i A_i \sum_{t=1}^{n_i} q_{i,t} = n_i A_i
$$

Thus re-distribution moves credit between the tokens of a rollout.

*Second, the current method is the uniform case.* Taking $q_{i,t}=1/n_i$ gives $a_{i,t}=A_i$ for every $t$, which is exactly loss (1).

**(3) Per-criterion re-distribution.** In (2) we still collapse the rollout to a single number $A_i$ before we assign any credit. But the reward is an average over criteria, and different criteria are decided by different tokens. So we can assign credit for each criterion separately, and average afterwards.

Let $K_i = p_i + f_i$ be the number of criteria that apply to rollout $i$. Give each of them its own advantage $A_{i,c}$: $+1$ for a pass or $-1$ for a fail, minus the group's mean reward $\tfrac{1}{G}\sum_k R_k$. By the definition of $R_i$, the rollout's advantage is the mean of these:

$$
A_i = \frac{1}{K_i}\sum_{c=1}^{K_i} A_{i,c}.
$$

Suppose that for each criterion $c$ we are given a probability distribution on the tokens, $q_{i,c,t}\ge 0$ with $\sum_{t=1}^{n_i} q_{i,c,t}=1$. Here, $q_{i,c,t}$ can be thought of as the share of criterion $c$'s credit that is assigned to token $t$ (the judge tells us which model calls were responsible for each verdict). Now set

$$
a_{i,t} = \frac{n_i}{K_i}\sum_{c=1}^{K_i} A_{i,c}\,q_{i,c,t}.
$$

This is (2) applied to each criterion, then averaged.

Two important properties of this. *First, the total amount of mass is still conserved.* For every choice of the distributions,

$$
\sum_{t=1}^{n_i} a_{i,t} = \frac{n_i}{K_i}\sum_{c=1}^{K_i} A_{i,c}\sum_{t=1}^{n_i} q_{i,c,t} = \frac{n_i}{K_i}\sum_{c=1}^{K_i} A_{i,c} = n_i A_i .
$$

*Second, (2) is the special case where all criteria share one distribution.* Taking $q_{i,c,t}=q_{i,t}$ for every $c$ gives $a_{i,t}=n_i\,A_i\,q_{i,t}$.
