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.
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 τ):
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
θ̂ 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
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.
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.)
What the paper found
MATH500, Qwen2.5-3B with the ArmoRM reward model, budget Nmax = 24 (paper Table 1):
| Method | Accuracy | Average replies used |
|---|---|---|
| One reply (no selection) | 63.6% | 1.00 |
| Best-of-N | 71.0% | 24.00 |
| RWSC, full budget | 74.2% | 24.00 |
| AdaBoN (adaptive baseline) | 71.4% | 18.82 |
| CITE (α = 0.1, anytime-valid baseline) | 75.4% | 21.68 |
| SPRT-RWSC | 74.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
- Press "Easy question", then "Play": answer A's wealth line climbs to the stopping line within about ten replies, saving roughly half of a 24-reply budget. Press "New run" to see that the exact count varies from run to run.
- Press "Near a tie" and "New run" a few times: the wealth line climbs slowly and often runs out of budget, so the method falls back to an uncertified RWSC vote. Hard questions automatically get more samples.
- Press "No majority": no answer can be certified (except with probability below α), however long you watch. The bets shrink to zero once an answer's estimated share drops below ½.
- Press "Misleading reward model" or drag the boost negative: the reward model now dislikes answer A, so the early bets are timid and stopping takes longer. But it still never certifies a non-majority answer, because rewards only change the bet size, never the rules of the game.
- Lower α: the stopping line rises, but cost grows only with log(1/α). In Try it 2, compare the curves on the right. The e-RWSC curve stays under the α line. In this simulation, SPRT-RWSC, which keeps resetting and re-testing whichever answer leads, often ends up declaring a winner when there is none.
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.