SeqSC: Sequence-Level Score Centering for Stable Offline LLM Reinforcement Learning

SeqSC eliminates RL training numerical drift via sequence-level score centering, achieving zero crashes and higher accuracy.
The article introduces Sequence-Level Score Centering (SeqSC), a new method for addressing numerical instability in LLM reinforcement learning. The root cause is numerical discrepancies between rollout and training engines that cause policy gradient drift, and the original token-level score centering (SC) cannot be directly transferred to sequence-level RL methods weighted by an overall importance ratio. SeqSC subtracts the expected weighted score of each token and uses optional stopping on a running ratio with mean one to keep expected weights in closed form on every prefix, achieving exact centering for any policy and sampler without extra per-step cost. Across Qwen3 models from 4B to 30B and fifteen mismatch settings, SeqSC achieves zero crashes and improves over SC by 14.6, 12.7, and 6.6 percentage points on Seq-TIS, GSPO, and TOPR, respectively, while enabling stable MoE training without routing replay.

Reinforcement learning (RL) has become a key technique for improving the capabilities of large language models, but numerical instability during training has always troubled practitioners. A new paper proposes a method called Sequence-Level Score Centering (SeqSC), offering a new approach to solving this problem.
Root Cause: Numerical Drift Between Rollout and Training Engines
One of the core challenges in language model RL is the numerical discrepancy between the rollout engine that generates trajectories and the training engine that updates parameters. This discrepancy causes policy gradients to drift, thereby affecting training stability.
The original score centering (SC) method addresses this problem at the token level: at each step, it independently subtracts the expected score under the sampler, thereby canceling the drift. However, the paper points out that sequence-level RL methods (such as Seq-TIS, GSPO, and TOPR) use a single overall importance ratio to weight the entire response, which makes token-level SC no longer applicable—each token, while adjusting itself, also changes the ratio of the entire sequence, so the drift remains significant.
Importance ratio is a key concept for understanding this paper. Under the importance sampling framework of reinforcement learning, the behavior policy (the sampler that generates trajectories) and the target policy (the policy being trained) are often different. The importance ratio is the ratio of their probabilities for the same action, used to correct the bias caused by this distribution difference. Token-level methods compute the ratio separately for each token, while sequence-level methods multiply the token ratios of the entire response to obtain an overall ratio that weights the return of the whole response. It is precisely this structural difference that determines the granularity at which the centering operation acts: token-level SC only affects the weight of a single token, whereas in a sequence-level ratio, a change to any one token propagates to the weight of the entire sequence. Therefore, the original ex post bound cannot precisely cancel the drift.
The Core Idea of SeqSC
SeqSC's approach is: for sequence-level RL, subtract the expected weighted score of each token. The key innovation is replacing the ex post bound with optional stopping on a running ratio with mean one, which keeps these expected weights in closed form on every prefix, thereby achieving exact centering for any policy and any sampler.
This design allows SeqSC to be seamlessly integrated into existing sequence-level RL frameworks without adding per-step computational cost.
Optional stopping originates from the theory of stopping times and martingales in probability theory. Intuitively, if the expectation of a stochastic process remains unchanged at any time, then stopping at any random time that depends on historical information leaves the expectation unchanged—this is precisely the theoretical basis for SeqSC's ability to achieve exact centering for any policy and sampler. The paper constructs the stopping condition using a "running ratio with mean one," so that the expected weight on each prefix has a closed-form solution, thereby avoiding reliance on ex post estimated bounds. In contrast, an ex post bound can only give a weight range after observing the complete sequence and cannot guarantee unbiasedness for intermediate prefixes, which is also the reason why the original token-level SC fails when directly transferred to the sequence level.
Experimental Validation: Stability Improvements Across Multiple Models and Scenarios
The paper applies SeqSC to three sequence-level RL methods (Seq-TIS, GSPO, and TOPR), training Qwen3-series models ranging from 4B to 30B in scale. Under fifteen mismatch settings, including quantization, noise, and stale samplers, SeqSC achieved zero crashes.
In terms of performance improvement, compared with SC, SeqSC improves average evaluation accuracy as follows: Seq-TIS by 14.6 percentage points, GSPO by 12.7 percentage points, and TOPR by 6.6 percentage points. On the Qwen3-30B-A3B model, without routing replay, SeqSC achieved the highest evaluation accuracy and reduced the number of training steps needed to reach the same performance as SC by about half.
Significance for RL Training of MoE Models
Traditional RL training of MoE models requires routing replay to maintain consistency in expert routing, which increases engineering complexity and computational overhead. SeqSC enables training MoE models without routing replay while maintaining high stability and efficiency, providing a simpler path for RL post-training of MoE models.
The value of this work lies in the fact that it approaches from the often-overlooked perspective of numerical precision and provides both theoretical guarantees and a practical solution for RL training stability. As model scale grows and MoE architectures become more widespread, methods like SeqSC will become increasingly important.
Routing replay is a consistency-preserving mechanism in RL training of MoE models. In MoE models, during inference (rollout) and training, the same token may be assigned to different experts due to numerical differences, causing the probabilities computed during training to be inconsistent with those during sampling, thereby amplifying the aforementioned numerical drift. Routing replay eliminates this inconsistency by recording the expert selections during the rollout phase and forcing their reuse during training, but it requires additional storage and recomputation of routing information. SeqSC precisely cancels this part of the drift through exact centering, so that even if routing deviates, the gradient estimate remains stable. As a result, training can be completed with routing replay disabled, significantly simplifying the engineering workflow.
One-line Summary
SeqSC eliminates numerical drift in RL training via sequence-level score centering, achieving zero crashes and improved accuracy.
Paragraph Summary
The article introduces a new method called Sequence-Level Score Centering (SeqSC) for addressing numerical instability in reinforcement learning training of large language models. The root cause is that numerical discrepancies between the rollout engine and the training engine cause policy gradient drift, and the original token-level score centering (SC) cannot be directly transferred to sequence-level RL methods that are weighted by an overall importance ratio. SeqSC subtracts the expected weighted score of each token and, with the help of optional stopping on a running ratio with mean one, keeps the expected weights in closed form on every prefix, thereby achieving exact centering for any policy and sampler without adding per-step cost. Across Qwen3-series models from 4B to 30B and fifteen mismatch settings, SeqSC achieved zero crashes and improved over SC by 14.6, 12.7, and 6.6 percentage points on Seq-TIS, GSPO, and TOPR, respectively, while enabling stable training of MoE models without routing replay.
Related articles

Jensen Huang Testifies Before Congress: Key Takeaways on Chip Export Controls
NVIDIA CEO Jensen Huang faces questioning from the U.S. House Foreign Affairs Committee on AI chip export controls, commercial interests, and national security.

Tencent WorkBuddy in Practice: Building an AI Automated Testing Workbench with SKILL Capabilities
Based on Bilibili creator Baili Yang's sharing, this article analyzes how Tencent WorkBuddy AI agent desktop workbench can be used for automated testing: the shift from AI-assisted to AI-led, the relationship among large models, agents, and SKILL capabilities, zero-configuration installation and permission control, and practical ideas for building a personal AI automated testing workbench.

Adding Authentication to Remix SaaS Apps: A Practical Guide to WorkOS AuthKit
Based on the official WorkOS AuthKit guide, this article covers the full approach to integrating authentication in Remix or React Router SaaS apps, including session management, protected routes, multi-tenant organizations, enterprise SSO, and SCIM sync, and analyzes its engineering value for SaaS teams.