Definitive mathematical formulations for rollout correction methods in VeRL, progressing from REINFORCE to PPO to Decoupled PPO. Handles policy mismatch, temporal lag, replay buffers, and off-policy algorithms with importance sampling and rejection sampling techniques.
Bias and variance of each off-policy estimator for LLM-RL: sequence-level IS is unbiased but its variance grows exponentially with length, token-level IS and PPO-style truncation trade that for an O(T²) bias, and truncated sequence-level IS balances the two.
The relentless push for faster inference creates a dangerous training-inference mismatch that silently kills RL with LLMs. We trace how it leads to collapse, most acutely in reasoning and agentic RL, and propose masked importance sampling (MIS): one importance ratio per response, with sequences outside the trust region masked out of the loss. Its length-normalized form, Geo-MIS, masks on the geometric mean of the per-token ratios, a one-sample estimate of the mean per-token KL that Trust Region Masking later computes exactly. In our multi-turn tool-use runs, token-level corrections still collapsed, while MIS trained past 700 steps where the uncorrected run collapsed near step 280.