TL;DR
Modern reasoning LLMs (like DeepSeek-R1) learn without a separate "critic" model by grading a small batch of answers against their own group average—a technique popularized by GRPO. This paper uncovers a hidden statistical trap in that setup: because groups where the model gets everything right or everything wrong produce zero gradient and are ignored, the remaining updates systematically under-reward rare breakthroughs on hard problems and under-penalize silly mistakes on easy ones. By tracking the model's evolving skill over time and dynamically reweighting these skewed learning signals, the authors boost reasoning accuracy across the board without generating extra rollouts.
What Problem Does This Paper Address?
Post-training LLMs on math and coding often relies on Reinforcement Learning with Verifiable Rewards (RLVR)—a fancy way of saying a deterministic checker gives a binary pass/fail ($1$ or $0$) to the model's answer. Standard RL requires training a massive, memory-hungry "critic" network to guess how good a state is. Group Relative Policy Optimization (GRPO) elegantly dodges this: for a given prompt, you sample a small group of responses (typically $G=8$), calculate the group's average score, and use that average as the baseline. Beat the average, get a positive "advantage" (reinforce); fall below, get a negative one (penalize).
Here is the catch. What happens on a brutally hard prompt where the model's true success rate is, say, $5\%$? Most of the time, all $8$ rollouts fail. Every response gets a $0$, the group average is $0$, the relative advantages are all $0$, and no learning update happens.
Learning only triggers on "non-degenerate" groups—batches with a mix of passes and fails. Conditional on getting at least one right out of $8$, the empirical group average is forced to be at least $1/8$ ($12.5\%$), artificially inflating the baseline above the true $5\%$ expectation! Consequently, that precious correct answer looks less impressive than it actually is, receiving a muted positive signal. Conversely, on an easy prompt ($95\%$ true pass rate), an update only triggers when at least one rollout fails, dragging the empirical baseline down and softening the penalty for the mistake. As a result, models under-learn from hard problems and over-exploit easy ones.
Methods
Instead of sampling $128$ rollouts per prompt to shrink this finite-sample bias—which is computationally prohibitive—the authors introduce a lightweight, plug-and-play fix called History-Aware Adaptive Difficulty Weighting (HA-DW). It works in two parts:
- Evolving Difficulty Anchor ($C_t$): A prompt isn't objectively "hard" forever; it's hard relative to the model right now. The authors track the model's overall solving capability across training batches as a latent belief state. Using a Kalman-filter-style update, $C_t$ blends historical batch accuracies with the current batch's accuracy, dynamically adjusting how fast it forgets old history based on recent training stability (variance).
- Adaptive Reweighting ($\Phi_{t,i}$): For each prompt in a retained group, HA-DW compares the group's empirical pass rate ($\hat{p}_t$) against the global capability anchor ($C_t^-$). Using the sign and magnitude of this gap, it applies a smooth exponential multiplier to the advantage estimates—amplifying updates when the model cracks a problem harder than its current anchor, and dampening updates on problems well below its skill level.
Datasets
The authors evaluate their method across seven established benchmarks (no new datasets are introduced; specific RL training corpora are deferred to the paper's appendix):
- Mathematical Reasoning: MATH500, AIME25, AMC23, Minerva, and OlympiadBench.
- Code Generation: HumanEval and MBPP.
Key Insights and Ideas
- Selection bias hides in plain sight: Unconditionally, a sample average is an unbiased estimator of the true mean. The "aha moment" here is realizing that ignoring zero-gradient groups acts as a selection filter (conditioning on $1 \le R \le G-1$), which mathematically warps the baseline everywhere except at a $50\%$ pass rate.
- Standard-deviation normalization doesn't save you: GRPO divides advantages by the within-group standard deviation. The authors prove (Theorem 4) that because this standard deviation is computed from the exact same filtered group samples, it rescales updates without fixing the directional bias.
- Not just a binary quirk: While math verifiers usually output $0$ or $1$, Theorem 3 proves this conditional bias persists even under continuous bounded rewards $[0, 1]$ whenever flat/low-variance groups are skipped.
Key Results
Tested across Qwen3-4B-Base, Qwen3-8B-Base, and LLaMA-3.2-3B-Instruct, plugging HA-DW into three group-relative algorithms (GRPO, GSPO, and DAPO) yields consistent gains across all models and benchmarks:
- Math & Coding Boosts: On Qwen3-4B-Base, GRPO's average math score rises from $46.5\%$ to $48.7\%$, and DAPO jumps from $46.8\%$ to $49.5\%$. On Qwen3-8B-Base, GRPO math accuracy climbs from $49.6\%$ to $52.5\%$, while DAPO coding accuracy improves from $72.9\%$ to $76.3\%$.
- Cracking the Hard Stuff: Stratifying MATH500 by difficulty reveals where the magic happens. On Qwen3-4B-Base, GRPO+HA-DW matches standard GRPO on Easy prompts ($+0.0\%$), edges ahead on Mid ($+1.5\%$), and surges by $+3.4\%$ ($62.2\% \to 65.6\%$) on Hard prompts.
- Deeper Reasoning: Training dynamics show HA-DW naturally encourages longer Chains-of-Thought and converges to higher reward plateaus. Furthermore, ablations confirm the dynamic anchor $C_t$ outperforms static difficulty thresholds (like fixing the anchor at $0.5$).
Limitations and Future Work
- Zero-gradient groups remain untouched: HA-DW reweights distorted advantages within retained (non-degenerate) groups, meaning if a prompt is so difficult that all $G$ rollouts fail, HA-DW still extracts zero gradient from it.
- Scope of RLVR modeling: The authors explicitly note that their goal is not to model every conceivable RLVR nuance, but rather to expose a fundamental statistical bias in group-relative estimation and show that lightweight corrections pay dividends. Future directions are not explicitly detailed in the main text.
Summary updated