TL;DR
Reinforcement Learning with Verifiable Reward (RLVR) often causes Large Language Models (LLMs) to "overfit" to specific solution paths. While this increases single-attempt accuracy (Pass@1), it frequently destroys overall solution diversity (Pass@k) and triggers catastrophic forgetting of previously learned skills. This paper introduces Diversity-Preserving Hybrid RL (DPH-RL), a framework that swaps standard "mode-seeking" divergences for "mass-covering" ones (like forward-KL). This shift effectively turns the divergence term into a rehearsal mechanism, preserving the model's original knowledge base while it learns new reasoning skills.
What Problem Does This Paper Address?
When fine-tuning LLMs using RLVR—common in tasks like math or coding where a compiler or calculator can "verify" the answer—researchers encounter a strange paradox. The model improves at finding a correct answer (Pass@1), but its ability to find multiple different correct answers (Pass@k) often tanks.
This phenomenon is known as diversity collapse. The standard tool used to keep models from drifting too far from their base knowledge during training is the reverse-KL divergence. However, reverse-KL is inherently "mode-seeking." It encourages the model to place all its probability mass on a single high-reward peak. While this helps the model find a reliable path to the answer, it causes the model to "forget" other valid reasoning paths and even fail at out-of-domain tasks it could previously solve.
Methods: Diversity-Preserving Hybrid RL (DPH-RL)
The authors propose a fundamental shift in perspective: moving from a constraint-based mindset to a rehearsal-based one. Their framework, DPH-RL, implements this through three core mechanisms:
- Mass-Covering Divergences: Instead of reverse-KL, DPH-RL utilizes f-divergences like Forward-KL or Jensen-Shannon (JS) divergence. These are "mass-covering," meaning they penalize the model if it ignores any part of the original distribution. This forces the model to "cover" and retain all the solution styles the base model originally possessed.
- Data Partitioning: The framework intelligently splits the training set into two distinct subsets:
- $D_{pef}$ (Near-Perfect): Tasks the base model already handles well. Here, the model uses the mass-covering divergence to "rehearse" and maintain its existing skills.
- $D_{exp}$ (Exploration): Challenging tasks where the base model struggles. Here, the divergence penalty is removed or relaxed, granting the model the freedom to explore and discover new reasoning paths.
- Generator-Based Efficiency: Unlike standard PPO or GRPO, which often require running a separate, memory-intensive "reference model" during training, DPH-RL computes the divergence using pre-sampled trajectories. This makes the training process significantly more memory- and compute-efficient.
Key Insights and Ideas
- The Divergence is the Solution: Most researchers treat the KL-divergence term as a "necessary evil" to keep training stable. This paper argues that the choice of divergence is actually a powerful, overlooked lever for controlling model behavior.
- Anchor, Don't Just Constrain: By using Forward-KL, the initial policy acts as an "anchor dataset." The model essentially performs a continuous "Experience Replay" of its own best behaviors while simultaneously trying to learn new ones.
- The Pass@1 vs. Pass@k Trade-off: A high Pass@1 is often a "hollow victory" if Pass@k is low. A model that can only solve a problem in one specific way is brittle and highly prone to failing when the prompt or context changes slightly.
Key Results
The authors evaluated DPH-RL across SQL Generation (BIRD, Spider) and Mathematical Reasoning (AIME, AMC, Math500, etc.) using models like Llama-3.1-8B and Qwen2.5-Math-7B.
- Superior Diversity: On the BIRD (SQL) dataset, DPH-JS improved Pass@8 scores by 4.3% over the GRPO baseline. While baselines like DAPO saw diversity collapse as training progressed, DPH-RL methods remained stable.
- Preventing Catastrophic Forgetting: In out-of-domain (OOD) math tasks, standard RL-tuned models (using reverse-KL) suffered performance drops of up to 15%. Conversely, DPH-RL models maintained or even improved upon the base model's performance, proving they didn't "forget" how to do math while learning SQL.
- Multi-Style Generation: Qualitative analysis revealed that while standard RL forces a model into a single "style" (e.g., always using a specific SQL join syntax), DPH-F allowed the model to retain multiple valid coding styles.
- State-of-the-Art SQL: The authors' OmniSQL-32B model, trained with DPH-RL, achieved greedy performance on the BIRD dataset that surpasses all current open-source single models.
Limitations and Future Work
- Base Model Dependence: DPH-RL relies heavily on the base model having a decent "knowledge base" to rehearse. If the base model is extremely poor at a task, there is no "mass" to cover, rendering the rehearsal mechanism less effective.
- Threshold Sensitivity: Performance can vary based on the "correctness threshold" used to partition the data into $D_{pef}$ and $D_{exp}$.
- Future Directions: The authors suggest exploring how these mass-covering divergences could be integrated into "Reasoning" models (like OpenAI's o1-style models) to ensure that the search for long-chain reasoning doesn't inadvertently lead to a loss of general-purpose capabilities.
Summary updated