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 and criterion the verdict is . With passes and fails, The advantage from this is the standard is , 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 receives the same advantage . Write those tokens as , and let be their number over the whole batch. The loss is
(2) Targeted dvantage re-distribution. The loss in (1) uses a single number for the whole rollout. To see what this assumes, it is convenient to allow each token its own advantage and to consider the more general loss
The loss in (1) is the special case for all .
For a given rollout , 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 with . Here, can be thought of as the share of the rollout's credit that is assigned to token . Now set
Two important properties of this. First, the total amount of mass is conserved. For every choice of ,
Thus re-distribution moves credit between the tokens of a rollout.
Second, the current method is the uniform case. Taking gives for every , which is exactly loss (1).
(3) Per-criterion re-distribution. In (2) we still collapse the rollout to a single number 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 be the number of criteria that apply to rollout . Give each of them its own advantage : for a pass or for a fail, minus the group's mean reward . By the definition of , the rollout's advantage is the mean of these:
Suppose that for each criterion we are given a probability distribution on the tokens, with . Here, can be thought of as the share of criterion 's credit that is assigned to token (the judge tells us which model calls were responsible for each verdict). Now set
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,
Second, (2) is the special case where all criteria share one distribution. Taking for every gives .