I wrote a blog on why RL can make a trait more common even when responses with it earn less reward. It might help you understand Trait Selection Decomposition from a dynamics perspective.
The policy gradient splits into two parameter updates: one from the reward gap between responses with and without the trait, one from reward differences within each class. Project each onto the gradient of the trait's probability and you get its contribution to how the trait changes.
Both updates move the same parameters, so learning to do better within a class also changes how often the trait appears. It can outweigh the reward gap.
https://t.co/OPumWxTSdF
Reinforcement Learning shapes AIs, but we do not know how.
In our new paper with researchers from @openai, @anthropic, and @redwood_ai, we study RL dynamics: how behaviors and cognitive patterns change during RL.
A way to read score centering: it is the sampler's policy gradient, backpropagated through the trainer.
The sampler q draws token y, and the trainer p computes the gradient. Take that gradient with respect to the trainer's logits, and write e_y for the one-hot vector of y:
score of the sampled token: grad log p(y) = e_y - p
centering term: grad sum_v q(v) log p(v) = q - p
difference: e_y - q
The trainer's probabilities cancel. What is left is the score of the sampler's own policy.
Full derivation: https://t.co/QgiCEo6iZy
Same weights, same tokens, two engines. Do you get the same log-probs?
The answer is usually no: the trainer and the sampler disagreed on a few thousand tokens every step.
We built a mode in verl-omni that makes them agree bit for bit, at every step. It covers full-parameter and LoRA training, and tensor-parallel rollouts.
We did this by fixing each difference on the side that owns it. The trainer calls the sampler's attention and MoE kernels; the sampler follows the trainer's order for norm, RoPE and MoE routing.
The rest is in the blog: https://t.co/mFNRnfOPIt