TL;DR
When training reasoning language models with Group Relative Policy Optimization (GRPO), the number of completions sampled per prompt ($G$) isn't just a compute knob—it dictates the exact difficulty threshold of problems the model can actually learn from. By dynamically growing $G$ over time to track the model's shifting "capability frontier," you can squeeze significantly better math and coding performance out of the exact same compute budget.
What Problem Does This Paper Address?
To teach LLMs how to reason (like DeepSeek-R1), we use Reinforcement Learning with Verifiable Rewards (RLVR). A go-to algorithm here is GRPO. Instead of maintaining a separate, memory-heavy value network to judge how good an answer is, GRPO samples a group of $G$ completions for a single prompt, checks them with a binary verifier (1 for right, 0 for wrong), and compares them against the group's average.
Traditionally, practitioners view group size $G$ purely through the lens of compute and variance reduction: larger $G$ gives a cleaner baseline, while smaller $G$ saves memory and wall-clock time.
The authors point out a hidden catch. Under binary rewards, if all $G$ attempts fail (all 0s) or all $G$ succeed (all 1s), every completion equals the group average. The relative advantage is zero, and the prompt supplies no verifier-derived learning signal. A group must be "mixed" (at least one right and one wrong answer) to teach the model anything. If a problem is so hard that the model only solves it 0.5% of the time, a group size of $G=16$ will almost exclusively produce all-failure batches, rendering that hard problem invisible to the optimizer. Furthermore, as the model gets smarter during training, the "sweet spot" of informative problems shifts—meaning any fixed $G$ eventually falls out of sync.
Methods
First, the authors formalize this signal-availability gate. Assuming independent rollouts for a prompt with success probability $p$, the probability of getting a mixed group is $\Phi(p, G) = 1 - p^G - (1-p)^G$. Looking at the hard-problem end of the spectrum, the probability of getting at least one success turns on sharply around the all-failure threshold: $p_c \approx \frac{\ln 2}{G}$ (the success rate where half of all groups are total wipeouts).
Instead of leaving $G$ fixed as standard GRPO does, the authors build a frontier-tracking controller that adjusts $G$ on the fly:
- It monitors sampled groups whose mean reward falls in an active, informative band between $(0.05, 0.95)$, tracking the smoothed median success rate $\hat{p}_f(t)$. As easy problems are mastered and exit the band, harder problems dominate, causing $\hat{p}_f(t)$ to drop even as overall accuracy climbs.
- It updates the group size using the one-line rule $G_t \approx \lceil \ln 2 / \hat{p}_f(t) \rceil_2$, rounding up to power-of-two tiers bounded between $G_{\min}=8$ and $G_{\max}=128$ (in practice starting at $16$ and stepping up through $\{16, 32, 64, 128\}$) while keeping the global sequence batch size constant.
Datasets
No new benchmarks were introduced. The authors used:
- Training: 8,192 math problems sampled from OpenMathInstruct-2 (using exact final-answer verification).
- Evaluation: MATH-500 and GSM8K (evaluated at pass@1), plus one directional unit-test coding experiment mentioned in the appendix.
Key Insights and Ideas
- $G$ is a difficulty microscope: Fixed-$G$ GRPO doesn't learn uniformly; it learns inside a localized difficulty band just above $\ln 2 / G$. Doubling $G$ reaches twice as deep into rare-success territory, shifting the onset of per-prompt improvement ($\Delta p$) cleanly to the left.
- Simple binomial math holds up in the wild: You might expect shared model weights and policy drift to ruin the textbook binomial assumption, yet empirical mixed-group rates in real LLM traces match $\Phi(p, G)$ within a couple of percentage points.
- Timing beats variety: Ablations shuffling when each group size is used—while spending the exact same compute at each tier—wipe out most of the gains. Starting small to cheaply clear out medium-difficulty problems and scaling $G$ up right when the frontier stalls is what drives efficiency.
- Depth vs. Selection: Existing curriculum methods (like DAPO, GRESO, and SPEED-RL) decide which prompts to sample at a fixed $G$. Frontier scheduling decides how deep to sample. Because they turn orthogonal knobs, combining them yields additive gains.
Key Results
Tested across Qwen3-1.7B, Qwen3-8B, and Llama-3.1-8B:
- Model Calibration: Empirical mixed-group rates matched binomial predictions with a mean absolute error of 1.40–1.88 percentage points across models.
- Predictive Frontier Shape: Fitting a single-parameter $\Phi$-curve on four group sizes predicted binned per-prompt improvement on the held-out fifth group size with a pooled $R^2 = 0.85$. The empirical learning onset scaled as $G^{-0.91}$, closely tracking the parameter-free theoretical prediction of $G^{-1}$.
- Downstream Gains (Matched 80k Rollout Budget): Frontier scheduling beat the best fixed-$G$ baseline ($G=128$) across every model—improving MATH-500 by +4.2 to +5.3 points (e.g., jumping from 56.7% to 62.0% on Qwen3-1.7B) and GSM8K by +2.4 to +3.4 points.
- Prompt Selection & Scaling: On Qwen3-1.7B, the controller edged out standalone SPEED-RL by +1.4 points, and stacking the frontier schedule on top of DAPO, GRESO, and SPEED-RL added another +2.2 to +2.7 points.
Limitations and Future Work
- Efficiency, not a higher ceiling: When extending training to $8\times$ the budget (640k completions), the lead over fixed $G=128$ narrowed from 5.3 to 3.1 points, and $G=128$ was still climbing. The schedule gets you there faster rather than changing the asymptotic limit.
- Scope constraints: Claims are restricted to binary verifiable rewards (mostly math), models between 1.7B–8B parameters, and group sizes up to $G=128$. Open-ended tasks or continuous reward models aren't covered, and the authors did not benchmark against AERO (a related per-prompt rollout adaptation method).
- Global vs. Per-Prompt $G$: Currently, $G_t$ is set globally for the whole batch. Assigning custom group sizes per prompt is a natural next step—though since prompts with $p \approx 10^{-3}$ mostly produce long strings of zeros, grouping prompts into a few coarse posterior difficulty buckets may be the most practical path forward.
Summary updated