TL;DR
When we deploy large language models, we often give them extra "thinking" budget by generating $N$ candidate answers and picking the best one—yet during training, we usually optimize them to merely be good on average. This paper bridges that gap without blowing up training compute, showing how to mathematically extrapolate the upper tail of a model’s reward distribution from just a handful of training rollouts ($m \ll N$). The result is a plug-and-play training advantage that teaches models to excel at test-time search on a fraction of the budget.
What Problem Does This Paper Address?
Imagine training a high-jumper by measuring the average height of ten casual hops, when at the Olympics only their single highest jump out of a hundred attempts counts. That is the quiet contradiction in modern LLM post-training.
In standard Reinforcement Learning from Human Feedback (RLHF), we optimize a model to maximize the expected reward of a single response. Worse, this standard fine-tuning tends to collapse output diversity—killing the exact randomness that test-time strategies like best-of-$N$ (BoN) sampling rely on (where you sample $N$ responses, score them with a reward model, and return the winner).
Recent "test-time-aware" training methods try to fix this by directly optimizing the best-of-$N$ objective during training. The catch? To optimize for best-of-256 deployment, you typically have to generate 256 responses per prompt during training. Because post-training has to cover massive prompt datasets, generating hundreds of rollouts per prompt is computationally impractical. The authors ask: Can we train a model to shine at best-of-$N$ deployment when we can only afford $m \ll N$ rollouts per prompt during training?
Methods
Instead of brute-forcing $N$ samples during training, the authors lean on test-time scaling laws—specifically, the observation that while an LLM’s overall reward distribution might be skewed or messy, its upper tail behaves remarkably like a clean Gaussian bell curve.
- A Tail-Based Surrogate Objective: If the top $2\alpha$ fraction of rewards is locally Gaussian, the expected maximum of $N$ samples is governed almost entirely by the mean ($\mu$) and spread ($\sigma$) of a much more accessible upper-tail slice (say, the top $\alpha = 25\%$ of samples).
- Tail-Extrapolated Advantage (TEA): Standard grouped RL methods (like GRPO) sample $m$ responses per prompt and weight policy updates using normalized rewards. TEA keeps the exact same training pipeline—same rollout budget, optimizer, and KL penalty—and only swaps out the scalar advantage weight. It ignores the bottom $1 - \alpha$ responses and applies a quadratic "tail-shaped" bonus to the top $\alpha$ responses: a linear push for beating the tail threshold, plus a quadratic push that rewards healthy tail variance (keeping good diversity alive for large-$N$ search).
- Prefix-TEA: Plugging finite-sample estimates directly into a non-linear formula introduces a systematic $1/m$ statistical bias. Using a generalized jackknife / cross-fitting trick across smaller rollout prefixes, Prefix-TEA cancels out lower-order bias terms, shrinking the bias from $O(1/m)$ to $O(1/m^k)$ while keeping variance at $O(1/m)$.
Datasets
No brand-new datasets are introduced; instead, the authors construct clean disjoint splits from established benchmarks:
- UltraFeedback: Used for primary instruction-following training and evaluation, featuring two pre-specified held-out evaluation splits (
core250with 250 prompts for full baseline sweeps, andcore500for larger-scale confirmation). - Anthropic HH-rlhf: An
HH-helpfulsplit used to test out-of-distribution dataset robustness. - MATH-500: Used to check mathematical reasoning transfer via
pass@kperformance.
Key Insights and Ideas
- Variance in the upper tail is a feature, not a bug: Standard RLHF squeezes variance out of the model. TEA’s derived policy gradient naturally includes a quadratic term scaled by target $N$, mathematically rewarding the model for stretching out its upper tail rather than just nudging its average.
- Small budgets accurately point toward large-$N$ updates: In mechanistic diagnostics, TEA’s gradient direction using small rollout groups ($m \in \{16 \dots 96\}$) has much higher cosine similarity to the true empirical best-of-128 oracle gradient than GRPO or existing test-time-aware baselines.
- Broad rightward shift, not lucky outliers: Rather than gaming the reward model with isolated extreme outliers, TEA shifts the entire high-reward tail of the trained policy's distribution to the right, and actually produces slightly shorter responses than GRPO (311.4 vs. 321.9 tokens on
core250), ruling out verbosity hacking.
Key Results
Training Llama-3.2-1B-Instruct with $m = 64$ rollouts on UltraFeedback (core250), TEA and Prefix-TEA beat GRPO, normalized GRPO-Z, and five test-time-aware baselines across the entire $N = 1 \dots 256$ frontier.
- Headline Gains: At best-of-128 (
bo128), TEA improves reward scores over GRPO by +1.569 (and Prefix-TEA by +1.441), handily beating the best test-time-aware baseline (+0.361) and even a compute-unmatched baseline given $2\times$ the training rollouts ($m=128$, +0.043). - Budget Extrapolation ($m \ll N$): Even when trained with just $m = 16$ rollouts per prompt, TEA transfers cleanly to massive test-time budgets, beating matched GRPO by +1.12 at $N=128$ and +0.87 at $N=512$.
- Judge & Backbone Robustness: A position-randomized DeepSeek-v4 Pro judge prefers TEA’s
bo128outputs over GRPO’s in 152 out of 250 comparisons. Gains also hold across a different reward model (Skywork-Reward-V2-Qwen3-8B), theHH-helpfuldataset (+1.817 atbo128), and larger/different model families:
Limitations and Future Work
- Gaussian Tail Assumption: The theoretical guarantees rely on the upper $2\alpha$ reward tail being locally Gaussian with continuous scores. This breaks down on non-smooth, discrete rewards—most notably binary $0/1$ verifiers common in code and math tasks.
- Theory-Practice Tweaks: While the theory analyzes raw plug-in and cross-fitted estimators, the practical implementation adds positive-part clipping and group centering to keep training stable; moreover, Prefix-TEA's theoretical bias reduction comes with larger constant overheads, meaning simple TEA slightly edges it out at $m=64$.
- Future Directions: Relaxing the Gaussian tail assumption, handling binary $0/1$ rewards natively, and extending tail extrapolation beyond simple best-of-$N$ to richer test-time search strategies.
Summary updated