TL;DR
Score Centering Stabilizes Off-policy Reinforcement Learning (arXiv 2609.20807) explains score centering (SC) as canceling a "drift" term in the policy gradient under training-inference mismatch. We make the motivation explicit: canceling the drift makes the update valid, meaning a constant reward no longer moves the policy. SC achieves this in a specific way: under a softmax policy, the centered score is exactly the sampler's own score in logit space, so SC computes the sampler's on-policy update and maps it to parameters through the trainer's Jacobian. Relative to the trainer, the update is still biased. Off-policy correction removes the bias, and is valid as well, but at the cost of variance; SC with MIS combines the two, which is why it works best under staleness in the paper's experiments. With many inference engines, this is asynchronous SGD with stale workers, and its tools carry over.
Work in logit space
Let be a prefix and the next token. The trainer computes logits and the policy . The sampler computes logits and the policy . Tokens are sampled from . We write and for the probability vectors and for the one-hot vector of .
Every gradient with respect to the parameters passes through the logits: . So we first look at SC in logit space, and bring in the Jacobian at the end.
In logit space, the trainer's score is , due to the softmax parametrization. SC subtracts its expectation under the sampler:
The trainer's distribution cancels. The centered score is the sampler's own score. Nan Jiang made the same point for linear softmax policies: there, the correction simply computes the gradient under the sampling distribution.
What direction does SC compute?
A rollout starts from a prompt , samples , and extends the prefix until it ends; it receives reward . The expected reward of the sampler is
The trainer's expected reward is defined the same way, with in place of . The value of token at prefix , the value of the prefix, and the advantage are
where the expectations are over rollouts from . In practice is estimated by , with a baseline, for example the mean reward of the rollouts for the same prompt (group centering), so all tokens of a rollout get the same estimate. We write where the distinction does not matter and where it does.
Let be the expected number of visits to prefix under . Treating each as a free parameter, the policy gradient theorem gives
where the baseline drops out because . Hence, for rollouts from ,
So the centered score, weighted by the advantage, is the on-policy REINFORCE estimator of the sampler's logit-space policy gradient. The data come from , so nothing needs correcting.
The trainer only maps this back to parameters:
An equivalent loss is : treat the logit gap between the two engines as a constant, take the forward pass from and the gradient from .
The exact policy gradient of the sampler would use the sampler's Jacobian ; SC uses the trainer's .
- In expectation, SC moves along : the sampler's logit-space policy gradient, pulled back through the trainer's Jacobian. In general this is not the gradient of any objective.
- It equals only when the two Jacobians agree. The gap is , and it comes only from the Jacobian swap.
So with a sampler synced every step, SC is one-step on-policy PG on the sampler.
Validity vs. unbiasedness: SC and off-policy correction
§01–§02 showed what SC computes. This section explains why it works: SC makes the update valid. Validity is a different requirement from the one off-policy correction targets, which is unbiasedness toward the trainer. An unbiased update is automatically valid, but validity alone is already worth having, and it is cheaper. SC achieves validity with low variance and does not aim to cancel the bias toward the trainer; off-policy correction achieves unbiasedness, and with it validity, but its variance is large.
Fix a prefix and stay in logit space, as in §02. There, the sampler's expected update at is . The trainer wants the same quantity with in place of , , but only has rollouts from the sampler.
1. Validity. Consider updates of the form , with and a score in logit space. Call the update valid if a constant reward gives zero expected update at every prefix: for and any baseline , so that ,
A constant reward carries no information, so a valid update leaves the policy unchanged in expectation. The trainer's score on the sampler's data, , fails this:
so a constant reward moves the logits by , pulling the trainer toward the sampler when . This is the drift, and the update is not valid.
2. SC makes it valid. SC subtracts the score's mean under ,
the sampler's own score (§01), which has zero mean under the sampler: . A constant reward, or any baseline , then gives zero expected update and no longer changes the policy. This is the orthogonal projection, in the Fisher–Rao metric, onto the scores with zero mean under the sampler (a Fisher–Rao view). The update becomes , with expectation for any baseline. This is the sampler's expected update, not the trainer's, so relative to the trainer it is still biased: canceling the bias is not what SC does. The bias is benign when the two policies are close, since it is the on-policy update of a nearby policy. SC is computable because the sampler's logprobs are logged and the sampler shares the trainer's parameters, so this logit-space update reaches through .
3. Off-policy correction makes it unbiased, and therefore valid, at the cost of variance. Weighting each token by gives , with expectation , the trainer's expected update: it is unbiased for the trainer at each prefix. Validity follows, since the weighted score has zero mean under the sampler, . The price is variance, , so in practice the ratio is clipped or masked. Clipping brings the drift back, and in PPO it also acts as an approximate KL trust region.
The two corrections are independent, so they compose: weight, then project,
with a function of the token's ratio only. The projection makes the update valid for any ; moves the target from the sampler toward the trainer and trades bias against variance. Each method is a choice on the two axes:
| Method | Weight | Projected | Valid | Bias vs. trainer | Variance |
|---|---|---|---|---|---|
| Uncorrected PG | no | no (drift) | yes | low | |
| Per-token IS | no (the mean is already 0) | yes | none at each prefix | high | |
| TIS, MIS | clipped or masked | no | no (clipping brings the drift back) | partial | bounded |
| SC | yes | yes | yes | low | |
| SC + TIS, SC + MIS | clipped or masked | yes | yes | partial | bounded |
Among the rows with bounded variance, SC + TIS and SC + MIS are the only ones that are valid and also reduce the bias. For SC + MIS, with on the kept tokens and on the rest, the expected update is , the trainer's expected update restricted to : the kept tokens carry no bias, and what is left comes from the masked tokens. This matches the paper's experiments. Under quantization and synthetic weight noise, where the sampler and the trainer stay close, SC alone and SC composed with TIS or MIS perform about the same: the bias is small, and validity alone is enough. Under staleness, with the sampler updated only every 64 steps, the trainer moves far from the sampler, the bias grows, and the composition performs best. Once the projection takes care of validity, choosing is a per-token tradeoff between a bias term (how far is from ) and a variance term, weighted by and summed over tokens. Below, , , and are short for , , and . The variance term is either the second moment of the weight, , or its deviation from SC's weight ; under the first, a large drives to , under the second, to SC. Existing weights, and some new ones, are its solutions under different measures:
| Bias term | Variance term | Optimal | Weight |
|---|---|---|---|
| TIS | |||
| soft truncation | |||
| linear mix of SC and IS | |||
| power family ( at ) |
Here . The two ends are limits of these rows: gives , per-token IS, in every row; gives , SC, in the last two rows, where the variance term measures the deviation from . MIS is not a row: restricting to gives its upper cut, dropping a token when , but not its lower cut, since dropping a token with small saves little variance. All of these are per-token corrections at a prefix: none of them corrects the prefix distribution or the continuation, which only the sequence-level ratio does.
Distributed training: merging many inference policies
In practice many inference engines sample in parallel, and they rarely run the same policy: new weights reach them at different times, and they may use different quantization or kernels. Write for the policy of engine , with logits and score .
The parameter-server picture. This is the setting of asynchronous parameter-server training (Downpour SGD, Parameter Server). The engines are the workers: each computes its part of the update with its own, possibly stale, parameters . The trainer is the server: it applies the updates to a central model , with policy . One difference: a worker here computes only the logit-space part, ; the Jacobian is taken at the central model.
Each engine uses the update of §03, weight then project, with a function of its own ratio :
Each engine's update is valid, so updates from different engines can be merged directly, with merge weights , . At a prefix , the merged update has expectation
while the central model's own on-policy update has expectation ; the difference is the bias, mapped to parameters by the central model's Jacobian. With , SC, each engine's term is , and each engine carries the bias of §03. With , IS, each term equals the central model's, and the bias is zero; a clipped or masked ratio leaves part of it. For SC, this is the stale-gradient bias of asynchronous SGD (Agarwal and Duchi, Lian et al.), confined to logit space: the Jacobian is the central model's own, and to first order the bias is linear in the logit gaps , averaged under .
What to borrow. The correspondence suggests which tools carry over. Parameter-server training has three kinds of operations on the central model:
- The server's update rule. The server decides which updates to accept and how far to step. It can drop updates from engines more than a few versions behind, as in stale synchronous parallel, or scale their step down with staleness (Zhang et al.); both shrink the logit gaps that enter the bias. Delayed updates also act like extra momentum (Mitliagkas et al.), so with stale engines the trainer's own momentum should be lowered. Taylor-based delay compensation (DC-ASGD) is not recommended at scale: it needs second-order terms, which are noisy for large models.
- An outer optimizer. Adaptive federated optimization and DiLoCo treat the updates collected over a period as a pseudo-gradient and step the central model with an outer optimizer, such as Adam or Nesterov momentum. This needs the trainer to collect inner updates before each outer step, a heavier change than the others.
- Averaging: the weights pushed and the central model. In elastic averaging SGD, workers are pulled toward a center that averages them. Inference engines compute no gradients and make no updates of their own, so they cannot be pulled; the levers are which weights the trainer pushes to them and where it takes the Jacobian. The two should be the same slowly moving point, a smoothed copy of the trainer: pushing a smoothed copy while taking the Jacobian at the latest weights only widens the gap. The trainer's latest weights are the default, and what SC does. An exponential moving average of the trainer's iterates, pushed to the engines and used for the Jacobian, keeps the engines close to one another and to the center: the backward pass runs on the EMA copy, the update is applied to , and the EMA follows. For engines already running different versions, the weighted average makes the first-order bias vanish, since and the weighted logit gaps sum to zero. The extreme, weight stashing, takes the Jacobian at each engine's own ; it is not recommended at scale, since it needs a copy of every version still in use.
Whatever the choices above, the engines return, for each token, the top logprobs (for example the top 128) and the logprob of the sampled token, all of the distribution actually sampled from, after temperature and top-, together with their weight version. Inference engines such as vLLM and SGLang return top logprobs per token, but one should check that they are the processed ones. The trainer assembles the update from them, with the remaining mass as a tail term. For an engine sampling at temperature , the trainer uses the same temperature, , and the Jacobian of carries an extra factor .
Bonus: adaptive exploration vs. exploitation tradeoff
So far we have read SC as one-step on-policy PG on the sampler. Read instead against uncorrected PG (§03), SC adds one term in logit space, and this term has an interpretation of its own:
Since , the extra term is . A usual KL regularizer ascends with and always pulls toward . In SC the coefficient is the advantage: tokens with push away from , and tokens with pull it toward .
Averaged over , the extra term is . With the exact advantage of §02, , so the term vanishes and SC matches uncorrected PG at every prefix in expectation. In practice the update uses (§02). At an intermediate prefix , , and the extra term becomes
Prefixes better than the baseline push away from ; prefixes worse than the baseline pull toward . The expected difference between SC and uncorrected PG therefore comes entirely from the advantage estimate not being centered at intermediate prefixes.
Pushing away from explores beyond the current sampler; pulling toward stays close to it. The tradeoff adapts per prefix through the sign of .
The same structure appears in value-incentivized preference optimization (VPO). VPO adds to the DPO loss, which equals up to a constant. A positive coefficient (online) is optimism: it pushes away from . A negative coefficient (offline) is pessimism: it pulls toward . SC has the same term with and replaced by , so the choice between optimism and pessimism is made per prefix instead of per setting.
Takeaway
The method works and is cheap. Canceling the drift makes the update valid, and it does so by switching the target from the trainer to the sampler: with a synced sampler, SC is one-step on-policy PG on the sampler. Relative to the trainer it still has a bias, which only off-policy correction removes, at the cost of variance (§03). SC with MIS combines the two: it is valid, and it removes the bias on the tokens it keeps, so it helps most when the trainer moves far from the sampler, as in the paper's staleness experiments.
With many inference engines, each engine's SC update is valid and can be merged without ratios; relative to the central model it carries the same bias. This is asynchronous parameter-server training confined to logit space, so its tools carry over: the server's update rule, an averaged central model that is both pushed to the engines and used for the Jacobian, and IS correction (§04).