TL;DR
Reinforcement learning with verifiers (RLVR) helps large language models (LLMs) reason better but often causes them to collapse onto a few repetitive solution patterns. This paper introduces DSDR (Dual-Scale Diversity Regularization), a framework that decomposes exploration into global (inter-mode) and local (intra-mode) scales. By dynamically coupling these scales exclusively for correct answers, DSDR prevents mode collapse and significantly boosts both accuracy and solution diversity across complex math benchmarks.
What Problem Does This Paper Address?
When training LLMs on reasoning tasks using Reinforcement Learning with Verified Rewards (RLVR)—such as Group Relative Policy Optimization (GRPO)—models frequently suffer from exploration collapse. Once the model finds a few reliable ways to solve a problem correctly, it concentrates its probability mass on those specific templates.
While this improves immediate pass@1 accuracy, it severely limits the model's ability to discover alternative solution paths. This leads to a plateau in pass@k performance, weak learning signals during training (since all sampled answers look identical), and poor generalization on out-of-domain or highly compositional tasks. Traditional token-level entropy regularization merely injects local randomness without creating structurally diverse reasoning paths, while trajectory-level diversity alone fails to prevent the model from becoming rigid once a template is chosen.
Methods
The authors propose DSDR, which coordinates exploration across two distinct scales and couples them mathematically:
- Global-Scale Diversity: Measures how distinct a reasoning trajectory is compared to others in the sampled group. It combines semantic similarity (computed via a lightweight sentence encoder) and formula-level uniqueness (checking if the mathematical expressions used are novel within the group). Crucially, this diversity bonus is correct-only—it only rewards diversity among correct solutions to prevent reward hacking.
- Local Positive-Sample Regularization: Applies a length-invariant, token-level conditional entropy penalty, also restricted strictly to correct trajectories. This prevents the model from becoming overconfident and rigid within a specific solution mode.
- Global-to-Local Coupling: Instead of treating these scales independently, DSDR uses a diversity-weighted softmax mechanism. Globally distinctive correct trajectories receive a higher share of the local entropy budget, pushing the model to deeply explore the neighborhoods of unique solution paths.
Datasets
- Training: Filtered DAPO-Math-17K dataset.
- Evaluation: Five rigorous mathematical reasoning benchmarks: AIME2024, AIME2025, MATH500, Minerva Math, and Olympiadbench (Olympiad-level problems).
Key Insights and Ideas
- Correctness-Aligned Exploration: Diversity shouldn't just mean "randomness." By restricting both global and local regularization to correct rollouts, DSDR ensures the model expands its horizons within the valid solution manifold rather than drifting into hallucination or nonsense.
- The Synergy of Two Scales: Global diversity identifies which modes are underrepresented, while local entropy thickens those modes. This dual action allows the model to escape local suboptimal traps that standard RL training gets stuck in.
- Preserving the Learning Signal: In group-based RL, if all rollouts are correct and identical, the within-group variance drops to zero, causing the gradient to vanish. DSDR's global diversity reward injects controlled dispersion among correct answers, keeping the preference signals informative even late in training.
Key Results
- Consistent Accuracy Boosts: Across multiple model scales (Qwen2.5-Math-1.5B, Qwen3-1.7B, Qwen3-4B), DSDR consistently outperformed standard GRPO and DAPO baselines. For instance, on Qwen3-4B, DSDR achieved an average Pass@1/Avg@16 score of 48.01% / 46.80%, compared to GRPO's 39.31% / 39.57%.
- Scalable Pass@k Performance: Unlike baselines where pass@k plateaus due to repetitive solutions, DSDR's performance gap widened as $k$ increased (up to $k=64$), proving it successfully populates the solution space with genuinely distinct valid paths.
- Ablation Validation: Removing global diversity (w/o GD) or the coupling mechanism (w/o GC) led to significant performance drops, confirming that single-scale exploration is insufficient.
Limitations and Future Work
- Hyperparameter Sensitivity: The framework introduces local ($\lambda_\ell$) and global ($\lambda_d$) coefficients along with a coupling temperature ($\tau$). Setting these values too high can destabilize training or disrupt correctness-aligned optimization, though the authors identify a stable default range ($\lambda_\ell = 0.001, \lambda_d = 0.001, \tau = 5$).
- Domain Specificity: The formula-level diversity metric is explicitly tailored to mathematical reasoning. Extending DSDR to non-mathematical domains (like code generation or creative writing) would require designing alternative structured uniqueness metrics to complement semantic embeddings.
Summary updated