TL;DR
Reinforcement Learning with Verifiable Rewards (RLVR) helps large language models develop complex reasoning, which typically correlates with longer, step-by-step responses. However, popular algorithms like GSPO suffer from "response length collapse," where outputs shrink over time and degrade performance. This paper introduces Length-Unbiased Sequence Policy Optimization (LUSPO), a simple yet elegant fix that scales sequence loss by its length, eliminating algorithmic length bias and unlocking state-of-the-art reasoning performance across text and multimodal benchmarks.
What Problem Does This Paper Address?
When training models with RLVR (the paradigm behind models like DeepSeek-R1), an increase in response length is generally a good sign—it means the model is learning to generate extended, nuanced chain-of-thought reasoning to solve complex problems.
However, the authors discovered that mainstream RLVR algorithms have a hidden flaw: an inherent length bias built directly into their loss functions. In Group Relative Policy Optimization (GRPO), token-level averaging causes the model to favor shorter correct answers and longer incorrect answers.
This issue becomes catastrophic in Group Sequence Policy Optimization (GSPO), an algorithm designed to stabilize training for Mixture-of-Experts (MoE) architectures. Due to sequence-level clipping and mechanisms that filter out negative samples, GSPO's length bias is severely amplified. Over time, the model experiences response length collapse, generating increasingly brief answers and losing its ability to reason through complex tasks.
Methods
The authors propose Length-Unbiased Sequence Policy Optimization (LUSPO) to rectify this bias.
Instead of treating every generated sequence equally regardless of how many tokens it contains, LUSPO introduces a straightforward modification to the GSPO objective function: it scales each sequence's loss by its own length ($|y_i|$).
Through formal gradient analysis, the authors demonstrate why this works. In standard GSPO, the sequence likelihood definition introduces a length-dependent denominator ($1/|y_i|$) into the gradient updates, mathematically penalizing longer trajectories. By multiplying the sequence loss by $|y_i|$, LUSPO perfectly cancels out this denominator. This ensures that longer, more detailed reasoning paths are not unfairly down-weighted during gradient updates, stabilizing the training dynamics for both dense and MoE models.
Datasets
The authors trained and evaluated their approach on both text-only and multimodal (vision-language) scientific reasoning datasets:
- Text Evaluation Benchmarks: AMC23, AIME24, AIME25, and MATH500.
- Multimodal Evaluation Benchmarks: MathVista-mini, MathVision, MathVerse (Vision Only), DynaMath, WeMath, and LogicVista.
Key Insights and Ideas
- The Mechanics of Length Collapse: In token-averaged loss functions, tokens in long responses contribute less to the total loss than tokens in short responses. When a model achieves high accuracy, the positive rewards heavily incentivize the model to shorten its outputs to maximize token-level weight, leading to collapse.
- Dataset Complexity Can Mask the Flaw: The authors noted that training GSPO on a highly complex dataset (like DAPO-MATH-17K) can temporarily hide length collapse because the sheer difficulty of the math forces longer sequences. However, on more diverse or slightly easier datasets, the algorithmic bias quickly takes over and shrinks the outputs.
- Algorithmic Fix Over Reward Shaping: Instead of trying to manually balance response lengths using complex, hand-tuned reward penalties (which can ruin optimization), fixing the underlying gradient math via LUSPO naturally allows the model to find the optimal length for exploration.
Key Results
LUSPO consistently achieved state-of-the-art performance across multiple model architectures:
- Text-Only Reasoning: When training the MoE model
Qwen3-30B-A3B-Instruct, LUSPO outperformed GSPO by a massive +6.9% on AIME24 and +17.1% on AIME25. For the denseQwen2.5-7B-Base, LUSPO yielded an average accuracy boost of +4.0% across all benchmarks.
- Multimodal Reasoning: Trained on
Qwen2.5-VL-7B-Instruct, LUSPO achieved an average improvement of +2.0% over GSPO, with notable jumps on visual logic tasks like WeMath (+5.1%) and LogicVista (+6.0%). - Longer Exploration Space: On the validation set, the average response length of LUSPO-trained models was nearly 1.5 times longer than those trained with GSPO, proving that LUSPO successfully fends off length collapse and gives the model the "breathing room" to solve harder problems.
Limitations and Future Work
While the paper demonstrates clear empirical gains, a few limitations and areas for future work remain:
- Verifiable Reward Dependency: LUSPO is evaluated within the RLVR framework, which requires rule-based verifiers (like code execution or math answer checkers). How well this length-unbiasing translates to open-ended RLHF tasks (like creative writing or helpfulness) remains unstudied.
- Compute Trade-offs: Allowing models to generate significantly longer responses inherently increases training and inference compute costs. Future work could explore how to maintain LUSPO's unbiased accuracy gains while optimizing for token efficiency.
Summary updated