arXiv(opens in a new tab)cs.LGOct 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2610.23255

Sample, Mix, or Verify? Allocating Test-Time Compute under Imperfect Verifiers

Srinivasan Iyengar

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

Abstract

A common way to make language models and agents more accurate is to spend more compute at inference time: generate many candidate solutions and submit the one a verifier prefers. Success then requires that some candidate is correct and that the verifier picks it. The first grows predictably with the number of samples; the second does not, because real verifiers (unit tests, majority votes, LLM judges, reward models) accept wrong answers, reject right ones, and make correlated mistakes. With a fixed budget, a practitioner must decide how many samples to draw, which models to draw them from, and how much to spend on verification, and today these choices are made by rules of thumb.

We introduce SPLIT, which makes them from a small labelled pilot. It rests on an exact formula for the probability of submitting a correct answer under accept/reject and top-score selection that accounts for varying task difficulty, blind spots shared across models, and correlated repeated verifier calls. SPLIT fits the formula by empirical Bayes and uses it to plan budgets on unseen tasks. Across seven benchmarks spanning math, science QA, code and software-engineering agents, 26 models, 175 agent systems and six kinds of real verifiers, all from public releases, SPLIT lands within 0.02–0.8 percentage points of the best allocation in hindsight, while every fixed rule we test loses at least 2.5 points in some setting. Regret depends only on how well SPLIT ranks configurations, and it stays near-optimal under compute, price and latency costs and online. The formula also explains when asking more LLM judges lowers precision. As a forecaster far beyond the pilot, SPLIT beats power-law fitting when the verifier caps success, and we report where it loses.

1 Introduction

Spending more compute at inference time, by sampling many candidate solutions and keeping one, is now a standard way to raise the accuracy of language models and agents (Cobbe et al., 2021; Wang et al., 2023; Brown et al., 2024; Snell et al., 2024). Coverage, the probability that at least one of N attempts is correct, grows smoothly with N, often as a power law over several orders of magnitude (Brown et al., 2024; Schaeffer et al., 2025). But a system is graded on the one answer it submits. That answer is chosen by a verifier: unit tests, a majority vote, an LLM judge or a reward model. Real verifiers accept some wrong answers and reject some right ones, and their mistakes are not independent. The same plausible wrong answer tends to fool every judge, and different generators tend to fail on the same hard problems. As a result, verified success can stall far below coverage. On MATH, majority voting over Llama-3-8B-Instruct samples stays near 43% while coverage reaches 98% (Figure 1), and Stroebl et al. (2024) show that imperfect unit tests cap what resampling can achieve.

Practitioners therefore face an allocation problem rather than a scaling problem. With a fixed budget, should they draw more samples, mix in a second model, spend calls on verification, or change how strictly the verifier accepts? Fixed rules of thumb answer these questions differently: “use the strongest model”, “scale solutions faster than verifications” (Singhi et al., 2025), “ask more judges”. We show that each of them is badly wrong in some realistic setting. We argue that the decision should be made from a small labelled pilot using a model of selection, not only of generation.

Three obstacles. Fixed rules fail for three reasons, and our method addresses each. (1) The verifier caps what is handed in. When a verifier sometimes accepts wrong answers, verified success saturates at the verifier's precision however many samples are drawn (Section 3), so the verifier's true- and false-accept rates must be modelled, not only how often the generator is right. (2) Tries are correlated. Llama-3-8B-Instruct solves an average MATH problem 27% of the time, which would give 96% coverage at 10 tries if every problem were equally hard; its measured per-problem solve rates give 61%, because 44 of the 128 problems are almost never solved. A second model gets stuck on the same problems (per-problem solve rates of Llama-3-8B-Instruct and Gemma-7B correlate at 0.80), and a third of wrong MATH-500 answers fool at least six of eight LLM judges, so asking again repeats the mistake. (3) No fixed split works everywhere. The best configuration changes with the budget, the models and the verifier (Section 6.1), so it has to be chosen per setting.

Approach. We write success as P(success)=P(a correct candidate exists)×P(it is selected∣it exists)\mathbb{P}(\text{success}) = \mathbb{P}(\text{a correct candidate exists}) \times \mathbb{P}(\text{it is selected} \mid \text{it exists}) and model the second factor explicitly. Section 3 derives an exact success formula for two selectors used in practice, uniform choice among accepted candidates and choice of the top-scoring candidate. The formula models the verifier's error rates (obstacle 1) and the three sources of correlation (obstacle 2): heterogeneous task difficulty, shared blind spots across generators (a Gaussian copula), and correlated repeated verifier calls (a candidate-level acceptance propensity). Section 4 estimates the formula's ingredients from a pilot by empirical Bayes, including variants for verifiers whose accuracy depends on the task. A planner then chooses the configuration that maximises predicted success under a cost budget (obstacle 3), and is evaluated on tasks not used for calibration. We call the whole method SPLIT, because it chooses how to split a fixed budget across generators, samples and verification.

References (34)