This paper tackles a fundamental bottleneck in fine-tuning Large Language Models (LLMs) using Reinforcement Learning (RL): the exploration dilemma. While RL is excellent at sharpening a model's performance on tasks with verifiable rewards (like math or code), it often does so at the cost of diversity, causing the model to get "stuck" in its own pre-existing biases.
TL;DR
The authors introduce Risk-Sensitive GRPO (RS-GRPO), a novel RL algorithm that uses a risk-seeking objective to help LLMs escape the local optima of their pre-trained policies. By prioritizing learning from "hard" prompts and interpolating between mean and maximum rewards, RS-GRPO significantly improves solution diversity (pass@k) while maintaining or even boosting single-shot accuracy (pass@1).
What Problem Does This Paper Address?
When we fine-tune LLMs using Reinforcement Learning with Verifiable Rewards (RLVR), we aren't starting with a "blank slate" policy. Pre-trained models come with sharply peaked probability distributions—they already have a strong idea of how to solve a problem.
Standard RL algorithms are typically risk-neutral: they aim to maximize the expected (mean) reward. In the context of LLMs, this often leads to "mode collapse." The model simply gets better at the few reasoning paths it already knew, sharpening those initial peaks while ignoring other potentially better solutions. This boosts pass@1 (getting it right on the first try) but causes pass@k (the probability of finding a correct answer in $k$ attempts) to stagnate or even drop. Essentially, the model stops exploring and starts merely distilling what it already knows.
Methods
To counter this, the authors propose a Risk-Sensitive Reinforcement Learning framework. Instead of the standard objective, they employ an exponential utility function:
$$J_{RS}(\pi_\theta) = \mathbb{E}_{x \sim \mathcal{D}} \left[ \frac{1}{\beta} \log \mathbb{E}_{y \sim \pi_\theta(\cdot|x)} [e^{\beta r(y)}] \right]$$
Key Components:
- The $\beta$ Parameter: This hyperparameter controls risk sensitivity. When $\beta \to 0$, it recovers standard risk-neutral RL. As $\beta$ increases, the objective becomes risk-seeking, shifting focus from the mean reward toward the maximum reward.
- RS-GRPO Algorithm: The authors instantiate this framework as a drop-in replacement for the advantage calculation in Group Relative Policy Optimization (GRPO).
- Dynamic Re-weighting: The resulting risk-sensitive advantage function automatically places more weight on "hard" prompts (where the model currently has low accuracy) and less on "easy" ones. This forces the model to explore new reasoning paths for difficult problems rather than over-optimizing easy ones.
Key Insights and Ideas
- Escaping the "Gravitational Pull": The paper uses a 100-armed bandit experiment to visualize how standard RL gets trapped in local optima near the initial policy. RS-RL, by being risk-seeking, "tunnels" through low-probability regions to find the global optimum.
- Denser Advantage Signals: Many existing "pass@k" optimization methods suffer from sparse gradients—once a model reaches a certain accuracy on a prompt, the gradient vanishes. RS-GRPO provides a "denser" signal, maintaining non-zero gradients even for high-accuracy prompts, which allows for continuous refinement.
- The Diversity-Accuracy Trade-off: Most methods that improve pass@k do so by sacrificing pass@1. RS-GRPO breaks this trend by re-weighting the advantage rather than just maximizing entropy, allowing it to expand the "capability frontier" without losing its grip on the most likely correct answers.
Key Results
The authors tested RS-GRPO on five different LLMs (including Qwen2.5 and Llama-3.1 variants) across a wide array of reasoning tasks (e.g., MATH500, AIME, GPQA-Diamond, LiveCodeBench).
- Consistent pass@k Gains: Across all models and benchmarks, RS-GRPO significantly outperformed standard GRPO at higher $k$ values (e.g., $k=32$ or $k=1024$).
- Superior pass@1: Unlike prior pass@k optimization baselines, RS-GRPO consistently maintained or improved pass@1 accuracy. For example, on Qwen2.5-Math-7B, it improved average pass@1 by 2.0% and pass@32 by 3.0% over standard GRPO.
- Increased Diversity: Analysis showed that RS-GRPO produces a significantly higher ratio of unique correct answers, proving it discovers genuinely different reasoning strategies rather than just variations of the same path.
Limitations and Future Work
- Static $\beta$: The study primarily used a fixed $\beta$ (finding $\beta=2$ to be a "sweet spot"). The authors noted that while they tried dynamic schedules (like decaying $\beta$), these didn't yield better results. Finding an optimal dynamic strategy remains an open question.
- Bandit Assumption: The current framework is designed for "bandit" settings where the reward is given at the end of a sequence. Extending this to complex Markov Decision Processes (MDPs) with intermediate rewards (dense rewards) is theoretically challenging.
- Computational Cost: Evaluating pass@k at scale (e.g., $k=1024$) is computationally expensive, which limited the size of the evaluation on the largest datasets like MATH500.
Summary updated