What should post-training optimize? A test-time scaling law perspective

Muheng Li, Jian Qian, Wenlong Mou

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.

  1. 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).
  2. 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).
  3. 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 (core250 with 250 prompts for full baseline sweeps, and core500 for larger-scale confirmation).
  • Anthropic HH-rlhf: An HH-helpful split used to test out-of-distribution dataset robustness.
  • MATH-500: Used to check mathematical reasoning transfer via pass@k performance.

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.

Figure 1. UltraFeedback performance and scaling. (a) TEA improves the best-of-N frontier over GRPO and all test-time-aware baselines on UltraFeedback core250. (b) TEA also improves over matched GRPO across training rollout budgets m ∈{16, 32, 64} and evaluation budgets N ∈{128, 256, 512}.
  • 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 bo128 outputs over GRPO’s in 152 out of 250 comparisons. Gains also hold across a different reward model (Skywork-Reward-V2-Qwen3-8B), the HH-helpful dataset (+1.817 at bo128), and larger/different model families:
Figure 2. Policy-backbone robustness. We compare TEA with matched GRPO on two non-default policy backbones. Left: meta-llama/Meta-Llama-3.1-8B-Instruct, a larger Llama backbone trained with LoRA and evaluated after merging adapters. Right: Qwen/Qwen3-4B-Instruct-2507, a different policy family. TEA improves the full best-of-N frontier in both settings.

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

Abstract

Large language models are increasingly deployed with test-time strategies: sample $N$ responses, score them with a reward model or verifier, and return the best. This deployment rule exposes a mismatch in post-training: standard objectives optimize the mean reward of a single response, whereas best-of-$N$ performance is governed by the upper tail of the reward distribution. Recent test-time-aware objectives partly address this mismatch, but typically assume that training can use the same per-prompt rollout budget as deployment, which is impractical when post-training must cover many prompts while deployment can allocate much larger per-prompt test-time compute. We study this budget-mismatch regime, where only $m\ll N$ per-prompt rollouts are available during training but the target objective is best-of-$N$ deployment. Under structural assumptions on the reward tails, we show that the policy gradient of the best-of-$N$ objective can be approximated from a much smaller rollout group by extrapolating upper-tail statistics. This yields a family of Tail-Extrapolated estimators for best-of-$N$-oriented post-training: a simple direct estimator, Tail-Extrapolated Advantage (TEA), and a fixed-order debiased Prefix-TEA estimator based on moment cancellation. Experiments on instruction-following tasks show that TEA and Prefix-TEA improve best-of-$N$ performance across different language models, reward models and datasets under various training and test-time budget settings.
BibTeX
@inproceedings{li2026what,
  author = {Muheng Li and Jian Qian and Wenlong Mou},
  title = {{What should post-training optimize? A test-time scaling law perspective}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=u0f6gRsMJ0},
}
Figure