@willcb In my original implementation, score centering is merely a `score_center=False` argument to the Reinforce loss. I intentionally didn't implement it as a new algorithm 🙂
https://t.co/105fEvnXZ0
Off-policy RL is difficult; runs can suddenly collapse because of async RL staleness or numerical mismatch.
StableReinforce is a new method on Tinker that keeps your RL runs stable, even when learning drifts from sampling.
https://t.co/PfBNb5lxxy
Could you use SC + KL together? In our experiments, vanilla SC worked great for numerical mismatch but under staleness, TIS+SC worked better. Using KL to reduce staleness mismatch might also help, it seems StableReinforce is doing something like SC+KL.
Basically, what I like about SC is that it can be composed with other methods. And I absolutely agree that vanilla SC on its own is not a catch-all method :) To me, the best setup for staleness is an open question; perhaps SC might be part of it, but it's definitely not sufficient without TIS / KL / other tricks.
Tinker’s Dimuon is Muon with delayed diagonal conditioning, Polar Express and a rank-dependent update norm. I recovered its update rule through the API, borrowing @mrtnm’s approach to StableReinforce. Here’s how 🧵
Yes! Sorry for not making this clearer. My claim is that with kl_coeff=0, StableReinforce is a "sampling" implementation of score centering. Score Centering is equivalent to an advantage-weighted KL term.
Tinker adds a non-advantage-weighted KL regularization term on top of score centering. This is the term listed in their docs, and it is not the score centering correction.
@nikhilbarhate99 explains it well here https://t.co/c51d5sSF7D
I find this interpretation of score centering more intuitive: SC is an advantage-weighted KL correction.
For vanilla policy gradient (REINFORCE), exact score centering has the same gradient as:
L_sc = L_pg − A · KL(q || p),
where q is the sampler and p is the learner.
When A > 0:
- Normally in on-policy setting, L_pg increases the probability of the sampled action.
- But in an off-policy/TIM setting, the action is sampled from a different distribution q, so L_pg update increases the probability of that action while also pulling the learning policy p towards sampler q, this is the “drift”. The SC correction pushes p away from q to cancel that drift (in expectation).
When A < 0:
- Normally in on-policy setting, L_pg decreases the probability of the sampled action.
- But in an off-policy setting, L_pg update decreases the probability of that action while also pushing the learning policy p away from q. Here, the SC correction pulls p towards q to cancel the drift (in expectation).
This is different from tinker’s StableReinforce KL term which uses a constant positive coefficient, which always pulls p toward the q, regardless of advantage sign.
score centering + masked importance sampling is now the default in TRL's async GRPO Trainer!
Across various staleness and sampler quantization settings, the stability is pretty wild 👇
Yes! Sorry for not making this clearer. My claim is that with kl_coeff=0, StableReinforce is a "sampling" version of score centering (8 correction tokens sampled at inference time). In contrast our paper uses a different top_k estimate for the mean score. So it's only equivalent in the sense that we're subtracting an estimate of the mean score. The KL term is applied on top of the score centering correction.
On a side note, I'm thrilled Thinky has found Score Centering to be extremely stable! From their docs: "In our internal post-training, this loss function has led to extremely stable training, even under highly off-policy async RL and low precision numerics."