Mechanism

Identifies a fundamental flaw in token-level importance ratios ρi,t=πθ(yi,t∣x,yi,<t)πθold(yi,t∣x,yi,<t)\rho_{i,t} = \frac{\pi_\theta(y_{i,t}\mid x,y_{i,<t})}{\pi_{\theta_{\text{old}}}(y_{i,t}\mid x,y_{i,<t})}: while the basic policy gradient identity holds at the sequence level, off-policy token-level ratios accumulate high variance and cause catastrophic Mixture-of-Experts (MoE) routing instability. GSPO defines the importance ratio at the sequence level with length normalization (geometric mean of token ratios): si(θ)=(πθ(yi∣x)πθold(yi∣x))1∣yi∣=exp⁡(1∣yi∣∑t=1∣yi∣log⁡πθ(yi,t∣x,yi,<t)πθold(yi,t∣x,yi,<t))s_i(\theta) = \left(\frac{\pi_\theta(y_i \mid x)}{\pi_{\theta_{\text{old}}}(y_i \mid x)}\right)^{\frac{1}{|y_i|}} = \exp\left(\frac{1}{|y_i|}\sum_{t=1}^{|y_i|} \log \frac{\pi_\theta(y_{i,t}\mid x, y_{i,<t})}{\pi_{\theta_{\text{old}}}(y_{i,t}\mid x, y_{i,<t})}\right) and clips si(θ)s_i(\theta) at the sequence level: min⁡(si(θ)A^i,clip(si(θ),1−ϵ,1+ϵ)A^i)\min\left(s_i(\theta)\hat{A}_i, \text{clip}(s_i(\theta), 1-\epsilon, 1+\epsilon)\hat{A}_i\right). Also includes GSPO-token for token-specific advantages.

Practical Notes

Completely eliminates the need for MoE Routing Replay hacks and stabilizes massive MoE RL runs.

References

  1. Group Sequence Policy Optimization ↗

    Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao et al. · 2025

    All 12 authors

    Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, Jingren Zhou, Junyang Lin