NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Selected-Tail Reliability in Verifier-Guided Best-of-$N$ Inference

Teresa ZhangNeurIPS 2026

TL;DR

Throwing more test-time compute at an AI model via "best-of-$N$" sampling is supposed to yield better answers, unless the verifier scoring those answers gets fooled by an impostor at the very top of the pile. This paper formalizes the reliability of the actual winning outputs—which average verifier metrics completely miss—and introduces a principled method to cap your compute budget before your verifier starts hallucinating winners.

What Problem Does This Paper Address?

Suppose you ask an AI to write a program. Instead of taking its first draft, you spend extra inference compute to generate $N$ candidates, grade them using a "verifier" (like a suite of public unit tests or a reward model), and return the highest-scoring one. This is best-of-$N$ inference, a workhorse of modern AI scaling.

Here is the catch: we usually evaluate verifiers by their average accuracy across all candidates. But in best-of-$N$, the user never sees the average candidate; they only see the extreme upper tail. If a verifier is 99% accurate on average, yet occasionally gives a glowing score to a subtly broken solution, cranking up $N$ virtually guarantees you will find that broken solution and hand it to the user. The author tackles this blind spot by formalizing selected-tail reliability: the expected real-world performance (e.g., passing hidden tests) of the candidate actually returned at a given budget $N$.

Figure 1: Selection probabilities across verifier-score ranks under uniform sampling with replace- ment. For a table of Kp = 64 candidates ranked from highest to lowest verifier score, the left panel shows the probability ewp,N(r) that the candidate at rank r is returned, while the right panel shows the probability that the returned candidate lies within a given top fraction of the ranking. Larger budgets shift selection probability toward higher-scoring candidates; whether this improves reliabil- ity depends on their evaluation outcomes.

Methods

Rather than treating best-of-$N$ as a black-box performance booster, the paper breaks down the mechanics of selection and builds a safety-First budgeting algorithm:

  • Exact Rank-Exposure Laws: First, the author derives exact closed-form probabilities for which candidate rank gets returned under uniform sampling (with or without replacement). By weighting each candidate's true hidden outcome by its exact probability of winning, we can calculate expected performance at any budget $N$.
  • Bounding "Public Optimism": Because verifiers rely on finite evidence (like $m$ public unit tests), scores contain noise. Picking the maximum score naturally selects for positive noise—a phenomenon known as the optimizer's curse. Modeling this noise as sub-Gaussian, the paper bounds this score inflation at order $\sqrt{\log N / m}$.
  • Tail-Certified Compute Caps (TCCC): Building on this math, the author introduces TCCC, a conservative budget-selection procedure. Given a grid of candidate budgets $N$ and strict risk limits (like a maximum acceptable failure rate), TCCC constructs simultaneous statistical confidence bounds that account for finite prompts, limited verifier evidence, and public-to-hidden mismatch allowances. It picks the budget that maximizes guaranteed utility while provably staying under the risk limit—or explicitly refuses certification if the evidence is too weak to guarantee safety.

Datasets

No new datasets are trained from scratch; instead, the framework is evaluated on existing code-generation and human-preference benchmarks:

  • Code Generation (Primary): Candidate programs are ranked by public test pass rates and evaluated on hidden test suites across four settings: CodeContests original, CodeContests-O generated, DeepMind generated, and a CodeContests high-$K$ stress-test setting.
  • Human Preferences (Complementary): To test beyond code, the paper evaluates natural-language responses on Arena55K (Chatbot Arena comparisons) and Stanford SHP, using proxy/verifier-style scores for selection and existing human annotations as ground truth.

Key Insights and Ideas

  • Average verifier metrics are a mirage at scale: Two verifiers can look identical on standard overall diagnostics (average accuracy, calibration) yet diverge wildly in best-of-$N$ deployment because selection concentrates nearly all probability mass onto the top few ranks.
  • Verifier evidence must scale logarithmically with $N$: Because selecting the best of $N$ amplifies scoring noise at a rate of $\sqrt{\log N / m}$, doubling your verifier evidence $m$ allows you to square your candidate budget $N$ without further inflating your winner's illusion of quality.
  • Overestimation $\neq$ Harm (until it does): An inflated public score isn't automatically disastrous if the winning answer is still genuinely good. Real harm happens when at least one "hidden-bad" candidate crosses a public-score threshold that no "hidden-good" candidate reaches—a condition where best-of-$N$ becomes strictly worse than picking a single candidate at random.

Key Results

  • Scaling Law Fit: Across the three main code-generation settings, the theoretical $\sqrt{\log N / m}$ predictor explains the gap between the winning program's public score and hidden-test score remarkably well, achieving a mean $R^2$ of 0.877 (0.86 to 0.91). However, in the high-$K$ stress setting, the fit drops to $R^2 = 0.115$, underscoring why formal certification is safer than blind extrapolation.
  • Pinpoint False-Positive Tracking: Using the exact rank-exposure weights to predict how often a returned program passes public tests but fails hidden ones yields Mean Absolute Errors (MAE) between 0.019 and 0.058 (1.9–5.8 percentage points), with identity $R^2$ values from 0.74 to 0.97.
Figure 3: Predicted versus observed false-positive exposure among returned programs. The dashed diagonal indicates exact agreement between prediction and observation. Both axes use the same scale, so deviations from the diagonal show the prediction error directly.
  • Risk-Aware Cap Policy: Across 1,600 held-out evaluations against four standard baselines (such as picking the max budget), a TCCC-motivated policy achieved statistically certified improvements in 606 comparisons (49.8% of favorable point estimates) and appropriately triggered refusal in 112 cases.
  • Beyond Code: On prompts with at least 16 candidates, best-of-$N$ selection boosted human-preference win rates over uniform selection by 0.070–0.077 on Arena55K and 0.113–0.145 on Stanford SHP.

Limitations and Future Work

The author is candid about where the boundaries lie:

  1. Reward Model Generalization: Most of the heavy lifting is tested on code with discrete unit tests. In the human-preference experiments, gains relied partly on model-prior scores and weakened at larger candidate pools ($K \ge 32$ on Arena55K), leaving open how well this transfers to independently trained neural reward models.
  2. Breakdown in Stress Regimes: The $\sqrt{\log N / m}$ scaling assumption relies on well-behaved scoring noise, which visibly breaks down in the high-$K$ code stress test.
  3. Conservatism of TCCC: TCCC only compares budgets within a pre-declared grid and relies on valid mismatch allowances. If TCCC refuses to certify a budget, it doesn't prove that budget is unsafe—only that you lack enough evidence to prove it is safe. Future work aims to test independent reward models and tighten certification math for correlated verifier errors.

Summary updated

BibTeX
@inproceedings{zhang2026selected,
  author = {Teresa Zhang},
  title = {{Selected-Tail Reliability in Verifier-Guided Best-of-$N$ Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=2A1ozLhi9p},
}
Figure