Group Relative Policy Optimization (GRPO) is the reinforcement learning recipe behind most recent math- and code-reasoning models. It skips the learned value estimator ("critic"). Instead, for each prompt it samples a group of answers, checks each one automatically, and scores every answer against the group average. A prompt teaches nothing when its group is all-correct or all-wrong, because every answer then gets zero credit. Current training still generates 16 to 64 full answers per prompt before discovering this, and generation is the dominant cost. Several papers already adapt rollout budgets with heuristics. None treats the question "is this prompt worth sampling right now?" as a statistical decision with a provable cost.
We propose to treat it that way. Classic reinforcement learning theory has gap-dependent bounds: when the right decision is separated from the wrong one by a margin, the cost of learning grows with the logarithm of time divided by that margin, not with the square root of time. Our claim is that GRPO's prompt allocation is exactly such a problem. Each prompt is an arm whose success rate drifts slowly during training. The gap is how far that success rate sits from the range where gradients are useful. Rollouts should be generated in small waves and stopped as soon as a confidence bound settles which side of that range the prompt is on. Two consequences follow. First, wasted generation scales with a sum of per-prompt inverse gaps rather than with the group size. Second, the trust region that GRPO already enforces bounds how fast success rates can drift, which lets past outcome counts be reused instead of reset.
Core Claim
Write $p_{q,t}$ for the probability that the current policy at training step $t$ answers prompt $q$ correctly. A group of size $G$ contributes useful gradient only when $p_{q,t}$ lies in an informative band $[a, 1-a]$. Below the band, almost every group is all-wrong. Above it, almost every group is all-right. This band is the gradient-weight shape $\sqrt{p(1-p)}$ identified by DisCO and the 50% sweet spot used by CurES.
Deciding whether a prompt is in the band is a thresholding bandit problem. Its gap is $\Delta_q = \mathrm{kl}(a, p_q)$, the Bernoulli relative entropy between the band edge and the prompt's true rate. We use relative entropy rather than squared difference because, for near-zero success rates, Chernoff bounds certify "hopeless" after about $\log(1/\delta)/a$ rollouts rather than $1/a^2$. The target theorem is that a sequential-wave allocator spends, on prompts outside the band, a number of rollouts bounded by
$$ \sum_{q} \frac{\log(T/\delta)}{\Delta_q} \;+\; C \sum_{t} \sqrt{\mathrm{KL}_t}, $$
where $T$ is the number of training steps, $\delta$ is the allowed failure probability, and $\mathrm{KL}_t$ is the measured divergence between the policies at steps $t$ and $t+1$. The second term is the price of drift. It comes from Pinsker's inequality: a policy change of divergence $\mathrm{KL}_t$ can move any success rate by at most $\sqrt{\mathrm{KL}_t/2}$. Fixed-$G$ GRPO, by contrast, wastes $G$ rollouts on every out-of-band prompt it touches.
The bound is the theoretical half of the contribution. It is the first instance-dependent sample-complexity statement for group-relative training, filling the gap noted for this literature. It imports the "stop once the confidence interval clears the gap" logic of Q-Learning with Fine-Grained Gap-Dependent Regret, whose upper-and-lower-confidence algorithm eliminates actions during interaction. It also borrows the "settle, then stop updating" idea behind Gap-Dependent Bounds for Q-Learning using Reference-Advantage Decomposition. Those results are tabular and say nothing about language-model training. We do not attempt token-level gaps. We apply the gap argument at the prompt level, where outcomes are verifiable Bernoulli draws and the theory transfers cleanly.
Research Program
The algorithm keeps, for every prompt, discounted counts of past successes and failures. Before each step, it converts those counts into a relative-entropy confidence interval on $p_{q,t}$. The interval is widened by the accumulated drift $\sqrt{\mathrm{KL}/2}$ measured on recent batches. This replaces the periodic Beta resets of CurES with a widening rule tied to how much the policy actually moved.
Prompts whose interval lies entirely outside the band are skipped without any generation. Prompts that are undecided receive rollouts in small waves of, say, four answers. Waves stop once the interval is decided, once a group with both correct and incorrect answers of target size is assembled, or once a cap is reached. This sequential rule is precisely what Train Less, Learn More (AERO) leaves open: AERO uses a fixed probe budget and a hand-tuned rescue threshold.
The second ingredient addresses a subtle problem that stopping creates. If rollouts stop based on what was observed, the group mean becomes a biased baseline. We argue this is the same mechanism that Learning from Hard Prompts (DA3PO) proves for dynamic sampling. When only non-degenerate groups are kept, rewards on correct answers stay flat while penalties on wrong answers explode for hard prompts. DA3PO corrects this with a fixed factor of 2 applied below 50% success.
Our fix is to compute advantages against the drift-corrected pooled estimate of $p_{q,t}$, not against the stopped group's own mean. This gives three properties. It removes the conditioning bias in principle. It still gives nonzero credit to an all-correct or all-wrong group, much as AERO's Beta-Binomial posterior does. And it offers a testable reconciliation of the apparent contradiction between DisCO (hard-prompt gradients vanish) and DA3PO (hard-prompt penalties explode). Both effects come from computing the baseline on the same samples that decided whether the group was kept. Fix the baseline, and both pathologies should shrink together.
The theory will be developed on a stylized model of the training run. The prompts are a finite bank. Each update changes success rates by at most the drift bound. The bound must hold for any adversarial drift within that budget. A synthetic simulator with known success-rate trajectories will check that wasted rollouts track the predicted sum of inverse gaps.
Baselines
The naive reference point is standard GRPO with fixed $G=16$ and no filtering. It is the configuration every paper in this space compares against. We run it with identical prompts, model, learning rate, KL setting, and total generated-token budget. Beating it means reaching its peak validation accuracy with substantially fewer generated tokens, and ending at least as accurate.
The second baseline is DAPO-style dynamic sampling: oversample, then discard degenerate groups. It is the most common practical fix and the setting where DA3PO's bias appears. We also run DA3PO itself at its reported $\lambda=2.0$ and $\tau=0.5$, with a small grid around those values at the same tuning budget we give our own method. DA3PO reports +5.02% average accuracy over its best baseline on Qwen3-4B with DAPO-Math-17K. We will check whether our pooled baseline matches that gain without any amplification constant.
The strongest competitor on compute is AERO. It is the closest method: it probes, reallocates, and fills degenerate groups with a prior. It reports roughly 48% lower total training compute, roughly 45% lower wall-clock time per step, and about 48% Avg@8 on Qwen2.5-7B (Train Less, Learn More).
The strongest competitor on speed of convergence is CurES. It reports reaching the GRPO baseline's peak on MATH500 5.5 times faster, and gains of +3.30 and +4.82 points over GRPO at 1.5B and 7B (CurES). Both will be re-run on our data and models with their probe sizes and prior hyperparameters tuned on the same validation split and budget as ours. Reported numbers will be used only as a sanity check. Beating them means at least a further 20% reduction in generated tokens to reach equal accuracy, or higher accuracy at equal tokens, with non-overlapping intervals across three seeds.
Three ablations isolate the key ingredients. The first resets counts every step, which removes drift carryover. The second replaces relative-entropy bounds with Hoeffding bounds, which tests whether the low-success-rate advantage of relative entropy matters. The third uses the stopped group's own mean as the baseline, which tests the bias-correction claim directly.
Why not just…?
Why not just tune AERO's probe budget or CurES's prior? This is the real threat. A well-tuned fixed probe may capture most of the savings, since many prompts are obviously hopeless or trivial. The theory predicts where a fixed probe must lose. It wastes its full budget on clearly out-of-band prompts, and it under-samples prompts near the band edge. Its advantage also erodes as success rates drift across training. We will report wasted rollouts stratified by estimated gap and by training phase. If tuned AERO matches us in every stratum, the practical claim fails and the contribution reduces to the theorem and the bias analysis, which we would state plainly.
Why not just filter degenerate groups as DAPO does? Filtering still pays to generate the full group before discarding it. DA3PO's theorem shows that filtering also skews the remaining gradient on hard prompts toward penalties. DisCO reports GRPO averaging 45.7% against 53.3% for its margin objective across six benchmarks (DisCO), evidence that this bias costs accuracy and not just compute.
Why not just raise the group size for every prompt? A larger group reduces variance, but cost grows linearly on exactly the prompts that teach nothing. CPPO shows that most completions in a group carry near-zero signal. It gains a 7.98x speedup on GSM8K and raises accuracy from 77.38% to 80.01% by pruning 87.5% of completions. CPPO prunes only after generation, though, so it leaves the generation bottleneck untouched. Our method saves at generation time. We include a $G=64$ uniform run to show the token-versus-accuracy curve directly.
Why not just bootstrap with a few demonstrations? Demonstrations help prompts that are never solved, as FEST shows: 42.38 against HPT's 38.75 with 128 shots. But they address a different failure, prompts permanently below the band, and they bring overfitting risk. The two approaches are complementary. We treat demonstrations as out of scope, apart from one combined run.
Proposed Experiments
Training uses DAPO-Math-17K and the OpenR1 math data, with Qwen2.5-1.5B and Qwen2.5-7B, the scales used by CPPO and AERO. Evaluation covers MATH-500, AIME24, AIME25, AMC23, OlympiadBench, and Minerva, reporting average accuracy over eight samples. A code replication on Prime-1.4K with APPS evaluation tests whether the method transfers beyond math.
The primary metric is generated tokens needed to reach fixed-GRPO's peak accuracy. Secondary metrics are final accuracy at matched tokens and the fraction of generated rollouts landing in degenerate groups.
The decisive checks are three. First, in the simulator and in real runs, measured wasted rollouts should scale with the predicted sum of per-prompt inverse gaps, and the drift term should stay small whenever the trust region is tight. A mismatch would falsify the model. Second, the pooled-baseline ablation should shrink both DA3PO's penalty-heavy gradients and DisCO's vanishing hard-prompt signal. If only one shrinks, our reconciliation is wrong. Third, against tuned AERO and CurES at equal generation budget, the gap-stratified waste analysis determines whether sequential stopping is a practical improvement or only a better-understood version of existing heuristics.
References
- DisCO: Reinforcing Large Reasoning Models with Discriminative Constrained Optimization
- CurES: From Gradient Analysis to Efficient Curriculum Learning for Reasoning LLMs
- Q-Learning with Fine-Grained Gap-Dependent Regret
- Gap-Dependent Bounds for Q-Learning using Reference-Advantage Decomposition
- Train Less, Learn More: Adaptive Efficient Rollout Optimization for Group-Based Reinforcement Learning
- Learning from Hard Prompts: Difficulty-aware Advantage Amplification in Dynamic Sampling
- CPPO: Accelerating the Training of Group Relative Policy Optimization-Based Reasoning Models
- Boosting Reinforcement Learning with Verifiable Rewards via Randomly Selected Few-Shot Guidance