‹ All demos
21 Nov 2026 · AI

Stop asking the AI again once one answer has clearly won

A popular way to make a language model more accurate is to ask it the same question many times and pick the answer that wins, either by majority vote or by a "reward model" that scores each reply. The catch is that every question gets the same fixed number of tries, even easy ones the model answers the same way every time. This paper gives a stopping rule with a guarantee: keep sampling only until one answer is statistically certified to be the model's majority answer, with the chance of certifying a wrong one capped at a level α you choose. Below, the paper's betting maths runs live.

Vishesh Kumar Singh, Sayak Ray Chowdhury

Why it matters

Sampling a language model many times and keeping the best answer is one of the most common ways to make it more accurate, but a fixed budget wastes most of that compute on questions the model already answers consistently. This stopping rule lets each question spend only as many samples as it needs, with a promised cap on how often it stops on a non-majority answer, and in the paper's tests it matched or beat full-budget Best-of-N accuracy while using about 35% to 60% fewer samples.

The paper

Sequential Anytime Valid Tests for Efficient Inference-Time Alignment

Vishesh Kumar Singh and Sayak Ray Chowdhury (Indian Institute of Technology Kanpur, India). arXiv:2611.26413 [cs.LG], submitted 19 November 2026. Read on arXiv · PDF

In plain language: replies are grouped by their final answer (for example, "42"). Reward-weighted self-consistency (RWSC) gives each group a share of the vote. Each reply counts more when the reward model likes it, and a temperature τ slides the rule between a plain majority vote (large τ) and "take the single highest-scored reply" (Best-of-N, small τ):

S(a) = Σy with answer a er̄(y)/τ / Σall y er̄(y)/τ,    r̄ = (r − mean) / sd

To decide when to stop, the method runs a separate betting game for every answer that shows up. A gambler starts with 1 unit and bets that the next reply will agree with answer a, at odds that would be fair if a held at most p† = ½ of the model's replies. Wealth after each reply (X = 1 if it agrees, 0 if not) is

En(a) = Π (1 + λi(Xi − p†)),    λi = clip( (θ̂ − p†) / (p†(1 − p†)), 0, c/p† ),    θ̂ = (Z + m·S(a)) / (k + m)

θ̂ is the agreement rate so far (Z agreements in k replies since a first appeared), pulled towards the RWSC share with strength m = 4. This is how the reward model speeds things up. If a is not a majority answer, the wealth is a fair-or-worse game and, by Ville's inequality, reaches 1/(π·α) with probability at most π·α. Answer number J (in order of first appearance) gets weight πJ = 1/(J(J+1)), and these weights sum to 1, so sampling stops when

πJ(a) · En(a) ≥ 1/α   for some answer a,    or n = Nmax (then fall back to the RWSC winner)

The guarantee: the chance of ever certifying an answer the model gives at most half the time is at most α, however you peek and however bad the reward model is. With the best (Kelly) bet, wealth grows at rate dKL(θ‖½), so a dominant answer is certified after about log(1/α) / dKL(θ‖½) samples. Easy questions stop almost at once and near-ties take longer.

Try it 1: one question, one run

Pretend a model answers one question. Its favourite answer A comes up a share θ of the time and the rest is spread over other answers. Each reply gets a reward score: random noise, plus a boost (or penalty) for answer A. Press Play to watch the betting games reply by reply.

Examples:
Replies used before stopping
Answer returned
Saved vs a fixed budget of Nmax
Theory: log(1/(π1α)) / growth rate

Each answer's betting wealth, π·E (log scale)
Replies so far and the vote shares
Raw share of repliesRWSC share S(a), coloured by answer

Try it 2: many questions

This panel repeats the game 200 times for every θ, using the number of other answers, reward boost, τ, α and c from above. The left plot checks the cost formula. The right plot checks the safety promise: when no answer has a majority (θ ≤ 0.5), how often does each method still stop and declare a winner? It also shows the paper's simpler SPRT-RWSC rule, which uses Wald's classic test on the current leader. That test resets whenever the leader changes, and the paper notes its error guarantee does not hold under this kind of continuous peeking. (The paper finds SPRT-RWSC works well on real benchmarks, where most questions have a clear majority answer.)

Worst wrong-stop rate, e-RWSC (θ ≤ 0.5)
Worst wrong-stop rate, SPRT-RWSC
Average replies over θ = 0.6 to 0.95, e-RWSC
Replies needed vs how dominant answer A is
e-RWSC (simulated mean)Theory log(1/(π1α))/growthBudget Nmax
How often a non-majority answer is certified
e-RWSCSPRT-RWSC (α, β = 0.2, burn-in 4)Promised cap α

What the paper found

MATH500, Qwen2.5-3B with the ArmoRM reward model, budget Nmax = 24 (paper Table 1):

MethodAccuracyAverage replies used
One reply (no selection)63.6%1.00
Best-of-N71.0%24.00
RWSC, full budget74.2%24.00
AdaBoN (adaptive baseline)71.4%18.82
CITE (α = 0.1, anytime-valid baseline)75.4%21.68
SPRT-RWSC74.6%13.23
e-RWSC (α = 0.1)74.4%15.59

Across 5 language models, 4 reward models and 4 benchmarks (GSM8K, MATH500, MMLU, CruxEval), the realized wrong-certification rate stayed below α (at most 0.4%, and 0.0% for all α ≤ 0.40). The number of replies grew in line with 1/dKL, as the theory predicts. Answers certified early were correct 94.5% of the time, against 88.9% for the MMC certifier. With a budget of 512 on MATH500, e-RWSC gained 8.2 points of accuracy over Best-of-N while using a 61.7% smaller budget, and the bookkeeping takes about 14 µs per step. Note that certification means "the model's majority answer", not "the correct answer". A model that is confidently wrong gets certified quickly.

How to use it

Demo by Grok Bot for the Daily Research Explorer. The RWSC score (eq. 1), the per-answer betting e-process (eq. 7), the weights πJ = 1/(J(J+1)) and stopping rule (eq. 8), the clipped plug-in Kelly bet with m = 4 (eq. 10), the defaults p† = ½, c = 0.8, α = 0.1, Nmax = 24, the SPRT-RWSC rule (burn-in 4, β = 0.2, reset on leader change), and all table numbers come from the paper. Choices made by Grok Bot, not the paper: the simulated model (answer A with share θ, other answers sharing the rest in proportions 1, 0.6, 0.6², …), Gaussian reward scores with standard deviation 1 plus the chosen boost for answer A, the SPRT margin ε = 0.05, and the theory line, which uses the stopping threshold 1/(π1α) = 2/α and the growth rate of the capped Kelly bet (equal to dKL(θ‖½) whenever the cap does not bind). The paper's experiments use real language models and reward models.