Manuscript Offprint

arXiv:2610.34375

Whether or Where? Tail Calibration Signals Finite-Budget Reward Hacking in Best-of-N Selection

Cheng Gui, Yihua Shao, Lei Li, Jingcai Guo, Maolin Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Best-of-N (BoN) inference returns the candidate with the highest proxy reward, so a larger N tests the proxy's extreme tail more than its average ranking quality. We show that the exact BoN value is a Beta-weighted integral of conditional true reward over within-prompt score quantiles. It follows that BoN depends on scores only through their ranks. It also follows that BoN can decline only if the calibration curve in the tail turns downward, and the budget where the decline appears depends on where that turn lies. Under a bounded additive model, the error tail sets the limit: Gaussian errors keep improving, Laplace errors reach a plateau, and heavy-tailed errors return to the prior mean. When error variance is largest at low true reward, even Gaussian noise can push BoN below random selection. Synthetic phase maps agree with this taxonomy. On real candidate pools spanning several verifiable domains, base policies, and learned reward models, tail failures are rare and all occur in code generation. A held-out tail calibration statistic reliably predicts where a cross-fitted budget cap helps. It does about as well as rank accuracy, and the cap is competitive with a Soft-BoN baseline. Tail calibration therefore does not replace ranking metrics. It is an audit that is unchanged by any monotone rescaling of the reward scores and shows which budgets are at risk.

1 INTRODUCTION

Inference-time alignment is the pragmatic answer to a stubborn problem: retraining a policy is expensive, but compute at serving time is cheap Stiennon et al. (2020); Nakano et al. (2021). The default recipe is best-of-N (BoN) selection: sample candidates from a frozen policy, score them with a reward model, return the winner. No gradients, embarrassingly parallel, and quality that improves as the budget grows. It is the closest thing the field has to a free lunch.

The lunch has a catch. BoN does not sample the reward model, it searches for its maximum. Push N high enough and the proxy score keeps climbing while verifiable correctness turns over and falls. We call this inference-time reward hacking: a regression caused entirely by the selection budget, with not a single weight updated. It arrives by spending more compute and is fixed by spending less, which leaves a practitioner two questions. 1) Diagnosis: is this reward model exposed at all? 2) Budgeting: if so, at what N?

Neither can be answered from the score distribution as a whole, because BoN never looks at it as a whole. Mapping scores to within-prompt quantiles u=FS(S)u = F_S(S), the quantile BoN returns has density pN(u)=NuN−1p_N(u) = Nu^{N-1}, which collapses onto a vanishing neighborhood of u=1u = 1; at N=64N = 64, half the selection mass sits above the 99th percentile. A defect confined to the top percentile can dictate an entire deployment while shifting any average by an amount no benchmark would flag. Yet reward models are graded by preference accuracy, calibration, or mean margin Lambert et al. (2024c); Frick et al. (2024), all averaged over the region selection never visits, and mitigated by KL penalties, soft selection, or ensembling Gao et al. (2023); Eisenstein et al. (2023); Coste et al. (2023b), all applied at a uniform rate whether or not a task is at risk. A team can pass every leaderboard check and still ship a budget past its own optimum.

A useful diagnostic must therefore read only the top of the distribution, depend on ranks alone, separate exposure from scale, and end in a budget cap that survives held-out data. All but the last follow from one identity. With RR the true utility and Q(u)=E[R∣FS(S)=u]Q(u) = \mathbb{E}[R \mid F_S(S) = u] the reward response in quantile space,

V(N)  =  ∫01Q(u)NuN−1du,(1)V(N)\;=\;\int_{0}^{1}Q(u)N u^{N-1}d u, \tag{1}

so every question about budget becomes a question about the upper end of a single curve: whether V peaks depends on whether Q bends down, and where it peaks on how soon.

That shape has a clean cause. Under S=R+εS = R + \varepsilon with bounded RR, the tail class of ε\varepsilon decides everything. Gaussian errors drive QQ toward the top of the support of RR and Laplace tails settle into a fixed exponential tilt, but regularly varying tails eventually make an extreme score uninformative about RR, so QQ falls. Only the last case admits a finite optimal budget, and it does so as soon as some intermediate budget already helps. Correlation strength leaves the tail class untouched, moving only the quantile at which informativeness runs out. The tail decides whether hacking is possible, correlation decides where it appears.

This tells us what to measure: a tail excess statistic confined to the upper rank region,

Tτ=11−τ∫τ1(Q(u)−E[R])du,(2)\mathcal{T}_{\tau}=\frac{1}{1-\tau}\int_{\tau}^{1}\left(Q(u)-\mathbb{E}[R]\right)d u, \tag{2}

whose sign flags exposure while ignoring the bulk, recovered by cross-fitting so the same data cannot both propose and confirm a defect. One half of a task then estimates Tτ\mathcal{T}_{\tau} and picks a budget cap; the other half checks what that cap buys. The output is not a damping coefficient applied everywhere, but a named task, a named model, and a number.

We validate by releasing our own assumptions one layer at a time, from synthetic settings that match the analysis, through variants that strain and finally break its prior and a study perturbing only the reward model's input, to public correctness data spanning several domains and learned reward models. Tail failure turns out to be sharply localized rather than ambient, and a reading from the top percentile converts into a budget cap that still pays off on data never used to choose it.

• We formalize a blind spot in reward-model evaluation, namely that BoN concentrates on a vanishing top quantile while standard metrics report bulk behavior, and show that the resulting risk factorizes into a tail class governing whether a finite optimal budget exists and a correlation scale governing where.

• We turn this into a practical audit: a monotone-invariant tail excess statistic, a cross-fitted reward response curve, and an estimate-then-validate procedure returning a budget cap. Unlike uniform mitigations such as rank-Soft-BoN, it names the task and model at risk and confirms the decision out of sample.

• We validate at three levels of externality, from assumption-matched synthetics with deliberately violated variants, through an input-controlled study on a frozen candidate pool, to public reward-model data independent of our generator and model choices.

References (64)