TL;DR
Reinforcement learning (RL) for large language models suffers from a "Matthew Effect," where easy problems receive a disproportionate amount of improvement while hard problems stagnate. To fix this, the authors introduce Never Give Up (NGU), an adaptive sampling method that dynamically reallocates compute away from already-solved tasks toward harder ones. By leveraging asynchronous RL, NGU significantly boosts performance on difficult math and coding benchmarks without sacrificing accuracy on easy problems.
What Problem Does This Paper Address?
When post-training Large Language Models (LLMs) using Reinforcement Learning (such as GRPO), practitioners generally assume that training on a mixed distribution of easy and hard problems will lift performance across the board. The authors reveal that this assumption is false. Instead, they document the Matthew Effect in RL for LLMs: RL improves performance on a task in direct proportion to the model's initial competence—the "rich get richer."
The core issue is compute allocation inefficiency. Standard RL methods assign equal compute (a fixed number of sampled completions, $K$) to all problems regardless of difficulty. For easy problems, this wastes generation tokens on redundant, already-correct answers. For hard problems, a fixed $K$ is often too small to successfully sample a correct solution, resulting in zero gradient signal and stalled learning.
Methods
The authors propose Never Give Up (NGU), a simple, online adaptive sampling method designed for asynchronous RL pipelines.
Instead of sampling a massive, fixed number of completions upfront, NGU operates iteratively:
- It samples a small number of completions per prompt (e.g., $K = 4$).
- If the model generates a correct answer, it quickly filters the prompt out as "solved."
- If all completions are incorrect, instead of giving up, NGU puts the prompt back into the generation queue to sample more completions.
- To prevent infinite loops on impossible prompts, it continues sampling with a probability $p_{NGU}$ and gives up with probability $1 - p_{NGU}$.
Because asynchronous RL allows the training batch to be replenished continuously, easy problems are filtered out rapidly, naturally concentrating compute on generating trajectories for harder problems.
To handle the stale, off-policy negative rollouts generated by this iterative process, the authors introduce "anchoring the positives." This technique rescales the advantages of remaining negative completions so that the total GRPO gradient baseline remains centered at zero, preventing training destabilization.
Datasets
The method was validated across three distinct environments:
- GSM8k Platinum: A cleaned and verified subset of the GSM8k grade-school math dataset, split into four difficulty quartiles.
- Deepscaler Math: A 10k subset of math reasoning problems, evaluated on challenging recent contests (AIME 2025 and BRUMO Nov 2025).
- Manufactoria: A challenging coding benchmark based on a classic automation game where models must construct logic circuits to pass a suite of 14 to 30 test cases per problem.
Key Insights and Ideas
- The $K$-Paradox: Counterintuitively, naively increasing the number of completions per prompt ($K$) in standard GRPO hurts performance on hard problems. As shown in Figure 3, a larger $K$ (like 32) means an easy prompt is highly likely to contain at least one accidental failure, keeping it in the training batch longer and diluting the gradient signal meant for hard problems.
- Signal Efficiency > Signal Loss: The primary bottleneck in RL training isn't just failing to find a correct answer for hard tasks (signal loss); it's the massive amount of compute wasted oversampling easy ones (poor signal efficiency).
- Plasticity vs. Primacy: While the Matthew Effect behaves like a primacy bias, LLMs do not suffer from permanent neural network "plasticity loss." Models trained for thousands of steps on a suboptimal objective can still fully recover if given an efficient, high-quality training signal later.
Key Results
- Math Reasoning (GSM8k): NGU drastically outperformed standard GRPO on the hardest problem subsets. On "extra hard" problems, NGU achieved an 87.9% pass@1 accuracy, compared to just 47.1% for the baseline GRPO.
- Scaling Up (Deepscaler): On the competitive AIME and BRUMO datasets, NGU delivered better performance-per-compute than standard baselines. Unlike static curriculum learning—which improves hard tasks at the expense of degrading on easy ones—NGU dynamically adapted, matching curriculum performance on hard tasks while preserving easy-task accuracy.
- Code Generation (Manufactoria): Standard GRPO with per-test rewards plateaus because it repeatedly revisits partially solved code and fails to pass the final, hardest test cases. NGU successfully drove progress on these edge cases, allowing the model to eventually pass 100% of the test suites.
Limitations and Future Work
- Distribution Assumptions: NGU relies on the training set having a reasonable mix of easy and hard problems. If a dataset consists entirely of impossible problems, NGU will stall, generating highly off-policy, stale rollouts that degrade the training signal.
- Hyperparameter Sensitivity: The authors note that setting the base $K=1$ leads to excessive off-policy training and destabilization; a baseline of at least $K=4$ is recommended.
- Future Directions: The authors plan to explore NGU's efficacy in more complex, multi-step agentic environments where rewards are sparse and intermediate states are highly variable.
Summary updated