WorksComputer Science
BARS: Budget-Aware Sequential Sampling with Refusal for Majority Identification under Unknown Distributions
Abstract
Repeated sampling with majority selection is an effective means of enforcing self-consistency in large language models. Recently, a variant has also been introduced that terminates early to save costs when the output distribution is favorable. But it still cannot yield a correct confidence estimate from the answer distribution. For this issue, we formalize this as majority identification under an unknown distribution with a budget and a target error rate, and propose BARS, a sequential rule certifying the top-two gap and returning an early stop, a budgeted majority vote, or a refusal when feasibility cannot be established. A refusal is a statement about the rule and its budget, not a claim that a question is unanswerable, and it tells practitioners when to widen the budget or switch models. A certified mode carries proven bounds on the joint answering error and on refusing an instance the budget could handle, while a practical mode, used in our experiments, replaces them with empirical calibration. On synthetic instances drawn from known distributions over thousands of seeds, the difficulty-driven behavior is recovered and the price of the certified mode is measured.On GSM8K the practical mode draws 22.3% fewer samples than fixed-8 sampling over the same pool, refused questions included, at the cost of declining 18.8% of the questions. On MATH, it greatly improves the accuracy of its output answers into 82.5% at the cost of honestly refusing to answer half of the difficult questions that the model itself is unable to solve.
Introduction
Large language models (LLMs) are increasingly embedded in expert and decision-support systems. In such systems a single answer is often produced by several stochastic decodes of the same prompt, and the majority of those decodes is taken as the consensus, a procedure known as self-consistency [1]. Self-consistency markedly improves reasoning accuracy on benchmarks such as GSM8K [2] and MATH [3], yet it applies the same number of decodes to every question. This paper addresses the deployment question that follows: how many samples are enough to trust an answer, and when should the system refuse to answer at all?
A fixed number of decodes fails in two opposite directions, and both failures are common in deployment. When the answer distribution is concentrated on one answer, a few samples already give the accuracy obtained with the full budget, so the remaining samples produce no additional evidence. When the distribution is spread over several answers, further samples still separate them only slowly, and the majority vote becomes a guess. A budget-aware system should therefore adapt its sampling strategy to each question and declare when a reliable answer cannot be produced within the budget.
We refer to the two decisions as the stopping decision (whether the current evidence is already sufficient) and the refusal decision (whether the budget can ever be sufficient for this question). Section 3 formalizes both, and the remainder of the paper is organized so that each result can be traced to the decision it supports.
We reduce the deployment problem to a statistical primitive with an unknown answer-space size and unknown answer probabilities: drawing balls from a bag with replacement, and identifying the most probable color. We call this the bag-of-balls abstraction (Figure 1): each decode draws one ball, and a color is the parsed answer. The abstraction assumes neither the number of colors nor the shape of the distribution, and two consequences follow. First, it applies to any question whose decodes can be mapped to a finite candidate set and to any model that can be sampled repeatedly. Second, classical probability tools cover the rest of the analysis, because the difficulty of the problem is captured by a single quantity: the top-two gap .
Figure 1. The bag-of-balls abstraction. (a) Answer distribution obtained by repeatedly decoding the same question at temperature ; the top-two gap measures the separation between the two most probable answers. (b) Each decode is viewed as drawing a ball, with replacement, from a bag whose size and composition are unknown; the color of the ball is the parsed answer.
Formally, we study the following problem.
Within a budget of at most samples, identify the majority of an unknown distribution with error probability at most , conditional on answering; when this target cannot be met, the system must report that it is infeasible.
The analysis assumes independent and identically distributed samples and a unique most probable answer (). It does not prescribe a distributional shape, but two further conditions bind at the boundaries of the results and are stated where they first matter: the certified width mode requires a known upper bound on the number of colors (Assumption 1), and every guarantee concerns the majority answer rather than the correct one. The second condition deserves emphasis: if the model’s most probable response is wrong, the rule identifies it with the same confidence it would apply to a correct answer, and nothing in the analysis detects the difference.
We propose BARS (Budget-Aware Refusal Sampling), a sequential stopping rule that maintains the empirical top-two gap and its plug-in variance and certifies distributional difficulty with time-uniform confidence sequences [4, 5, 6]. The rule returns one of three outputs. The fast branch stops after consecutive same-color samples, where the run length is the smallest admissible value for which the worst-case error rate is at most , computed by a Markov dynamic program. The naive branch spends the remaining budget and takes the majority, with a Hoeffding bound controlling its error. The refusal branch outputs “infeasible within budget” when the rule’s own criterion cannot establish feasibility; its rate of firing on instances the budget could have handled is bounded by plus an explicit, empirically calibrated plug-in bias term. We treat refusal as an informative third output rather than a failure, because it lets a deployed system escalate to a human, widen the budget or switch the underlying model.
Two width modes parameterize the same rule and are kept apart throughout the paper. The certified mode uses a time-uniform half-width whose constants are explicit, so that the trigger and the resulting error bounds hold with probability at least ; it is the mode covered by the theorems. The practical mode uses a variance-scaled half-width with a fixed multiplier that controls the deviation only at the current sample size; it carries no theorem-level guarantee and is calibrated empirically, and it is the mode used in our language-model experiments. Each of the three outputs is therefore tied to a declared configuration, and every claim in this paper is marked with the configuration under which it applies.
Our contributions are as follows.
A budget-aware stopping and refusal rule with explicit configuration. BARS drives its sampling cost by the certified difficulty of the instance and returns either an answer or a refusal, and it separates two width modes: the certified mode, for which the mis-trigger probability over the whole exploration process is bounded by , and the practical mode, which trades that bound for a higher answer rate.
Guarantees on answering and on refusing, together with the boundary of the analysis. For the certified mode with the pessimistic chooser, we prove a bound of on the joint event that the rule answers and answers wrongly, a bound of on the joint event that it refuses an instance the budget could have handled, an exact decomposition of the expected number of samples, and a lower bound showing that no rule can certify the majority of the two-point family with fewer than samples in expectation. We do not claim a matching upper bound, and we prove the lower bound only for the two-point family ().
An empirical account of when the budget buys what. Synthetic instances over thousands of seeds show the difficulty-driven behavior predicted by the certified-mode analysis, and real-LLM runs on GSM8K and MATH (Qwen2.5-7B, a pre-generated pool of sixteen decodes per question) show the same qualitative pattern at a deployment-scale budget, where the certified mode is provably unreachable and the practical mode is what a practitioner would actually run. A discussion of those runs separates what the two settings establish from what they do not.
What we do not claim is as important as what we do. Our guarantees concern the joint events of answering wrongly and of refusing a handleable instance, not the conditional error rate on answered questions alone, which is smaller only when the answer rate is close to one. The certified bounds hold for the certified width with the pessimistic chooser; the practical mode is calibrated empirically, and has no distribution-free upper bound, because none exists for a plug-in criterion of this kind. Finally, a refusal is a statement about this rule and this budget, not a proof that the question is unanswerable.
The remainder of the paper is organized as follows. § 2 compares BARS with the three lines of work it sits between. § 3 formalizes the decision problem, states the two width modes and gives the rule in pseudocode. § 4 states the guarantees, in the order in which they depend on one another. § 5 reports the experiments, in two settings that share one design and one competitor set, and then states what the two establish together and what neither establishes. § 8 concludes.
Related work
BARS sits between three lines of work: adaptive test-time sampling, selective prediction with abstention, and best-arm identification with abstention. We compare BARS with each line of work and close with a table that separates them along five dimensions, so that the boundary of this paper can be read off directly rather than assembled from the prose. The analysis itself builds on standard tools — Hoeffding’s inequality [7], the empirical Bernstein bound [8], time-uniform confidence sequences [4, 5, 6] and the classical theory of runs [9] — and we do not present any of them as a new idea. What the paper contributes is how they are assembled into a decision rule with an explicit refusal output, and what that assembly costs.
Test-time scaling and adaptive sampling
Self-consistency [1] is the fixed-budget baseline for LLM majority voting, and its error analysis typically assumes a finite, known answer space [1]. Adaptive variants include early-stopping self-consistency (ESC) [10], difficulty-adaptive self-consistency [11], CGES [12] and sequential-evidence DASE [13]. These methods stop on heuristics that yield empirical savings but carry no provable control of the error rate or of the mis-trigger rate, and none of them treats refusal as an output. Two further groups are close in method but not in objective: test-time scaling studies how accuracy grows with the number of samples when the answer space is known exactly [14, 15, 16], and pass- analyses score the sample set rather than selecting a single answer [16, 17]. The prior work closest to ours in problem setting is MARS [18], which stops on parallel test-time scaling checkpoints using a margin-adversarial criterion. MARS differs in three respects that matter for deployment: its guarantee is heuristic rather than derived under a stated confidence level; it has no “infeasible within budget” output; and it targets parallel traces, whereas we replay the pool as a stream and therefore allow a single sampler.
Selective prediction, abstention, and agreement-based selection
Selective prediction lets a model abstain when it is uncertain. The SelectiveNet family [19, 20] trades coverage against risk through a threshold or a training objective, and conformal abstention [21] with its successors, such as SConU [22] and conformal risk control (CRC) [23], controls the risk of the abstention decision itself. In all of these methods the input is a batch of responses that has already been drawn, and the decision is a single use-or-not choice; there is no sequential sampling decision, and hence no notion of a budget that the decision layer itself consumes. CRC makes this boundary sharp: its impossibility result [23] shows that whenever the base risk exceeds a threshold, any distribution-free method under a coverage constraint must abstain on a fixed fraction of the inputs. That result bounds how often a rule must abstain; it does not tell a deployment what to do with an individual question, because the sampling process that produced the batch is outside its scope. Our refusal output is aimed at exactly that gap: the refusal is justified by online evidence about the difficulty of the instance and by a finite budget, and it can therefore be acted on per question.
Closest in intuition is agreement-based selective prediction [24], which reads cross-head agreement through a Lipschitz version space to obtain a certified selective prediction. It shares our consensus-to-certificate move, but it certifies a fixed, one-shot decision, whereas we certify a stopping time under a budget and use time-uniform confidence sequences in place of version spaces. A second boundary is worth stating explicitly, because it is easy to overstate: certified self-consistency [25] also attaches concentration guarantees to majority voting, with bounds that hold uniformly over the sample size. The difference lies in what is certified and in how the budget enters: our rule is asked, for a fixed budget and target error, either to answer, to stop early, or to refuse with a bounded mis-refusal probability, and the certified analysis covers all three outputs jointly, with the budget entering as a feasibility criterion rather than as a stopping time that is free to grow. The boundary between the two formulations is the point at which we would expect the two lines of work to be compared directly, and we flag it as such rather than claiming a separation that our experiments cannot demonstrate.
Bandits with abstention and best-arm identification
Our work is theoretically adjacent to bandits with abstention and to best-arm identification (BAI). Bandits with abstention [26, 27, 28] and Bayesian BAI with abstention [29] optimize regret or budget allocation over an action space the learner chooses from, rather than certifying the output of a single decision layer over a fixed pool. Classical BAI [30, 31, 32, 33, 34] identifies the best arm in fixed-confidence or fixed-budget regimes with sample-complexity guarantees but no refusal output, since an arm must always be recommended. The distinction from our formulation is the output alphabet: BARS differs in treating refusal as a third output with a bounded mis-refusal probability, a formulation that fixed-confidence best-arm identification does not consider because it has no budget under which answering could be infeasible. The closest formulation on the impossibility side is the conformal impossibility result discussed above [23], which bounds abstention from outside the sampling process; we bound it from inside, conditionally on the observed evidence.
Positioning along five dimensions
Table 1 places the four nearest families and BARS on the same five axes. The axes are chosen so that each one corresponds to a place where a deployment decision is made: what the answer space is, what the rule is allowed to output, whether the budget is a hard constraint, what the guarantee is about, and whether the refusal rate is bounded.
| Family | Answer space | Outputs | Hard budget | Guarantee, and on what |
| Self-consistency and its adaptive variants [1, 10, 12, 13, 18] | discrete | answer | no (stop rule free to grow) | empirical savings; heuristic margin criteria |
| Conformal abstention [21, 22, 23] | fixed batch | answer, abstain | not applicable | distribution-free risk and abstention bounds for a one-shot decision |
| Agreement-based selective prediction [24] | fixed features | answer, abstain | not applicable | certified selective risk in a version space |
| Certified self-consistency [25] | discrete | answer, continue | no | concentration bound uniform over sample size |
| Best-arm identification [30, 31] | discrete arms | arm | fixed-confidence or fixed-budget | sample complexity; no refusal |
| BARS (this paper) | unknown discrete | early stop, answer, refuse | yes () | joint answering-error and mis-refusal bounds (certified mode), plus a two-point lower bound |
Table 1. Nearest families along five dimensions. “Hard budget” means that the total number of samples is bounded by a constant fixed before the run; “refusal bounded” means that the probability of refusing an instance the budget could have handled carries a stated bound.
Problem formulation and the BARS algorithm
The decision problem, its outputs and its error quantities
We formulate the deployment problem as identifying the most probable color of an unknown distribution under a sampling budget and an error-rate target.
Problem (budgeted majority identification with refusal). We are given an unknown distribution over an unknown set of colors, and we may draw iid samples from , each sample consuming one unit of a total budget . The rule must return one of three outputs: an answer (a color), an early stop with an answer that uses fewer than samples, or an explicit refusal. Conditional on answering, the probability of returning a color other than the true majority must be at most . When answering is in fact possible within the budget, the probability of refusing must be at most .
The budget is a per-path cap rather than an expected-value constraint: no single execution of the rule draws more than samples, and we report the expected sample count because the quantity of interest in deployment is the average cost over a batch of questions. The only assumptions are that a unique majority exists, that is , and that the samples are iid. The number of colors and the shape of are otherwise unrestricted, and we write for the number of distinct colors observed up to time .
Assumption 1 (Bounded number of colors). A known upper bound on the number of colors is available to the rule; the certified width (§ 3.4) and the feasibility criterion of the naive branch (§ 3.5) use in place of the unknown .
Two events recur throughout the analysis, and we fix their notation now. Let denote the remaining budget at the branch-entry time . The naive-feasibility event holds when the Hoeffding majority rule of the naive branch meets the target with the remaining budget:
evaluated with the true gap and the remaining budget at the branch entry; it is an analyst-level notion that the algorithm never observes. Because is defined through the Hoeffding rule, the mis-refusal guarantee is relative to that rule and not to the best possible rule. The certification event holds when the conservative evidence — the plug-in lower endpoint and, in the certified mode, the color-count bound — deems the target infeasible:
A mis-refusal is the joint event : refusing although the naive Hoeffding rule would have sufficed. The rule can refuse only through the naive branch, so that a refusal is the event (enter the naive branch) ; instances that enter the fast branch are answered. The label “infeasible within budget” printed by the rule is therefore a rule-specific statement, not a claim that no rule could answer. Keeping them apart is the reason the paper distinguishes the certified and practical modes throughout: the two modes do not differ in the rule, only in which of these three quantities is bounded.
Notation
All symbols are collected in Table 2. We distinguish the true number of colors , its online estimate and the bound required by the certified mode, and we use for the run length of the fast branch and for the confidence half-width of the exploration phase; the two are never interchanged.
| Symbol | Meaning | Notes |
| true distribution (desc.) | is the majority | |
| number of colors (unknown) | estimated online by | |
| known upper bound on | required by the certified mode only (Assumption 1) | |
| top-two gap, the difficulty of the instance | larger is easier | |
| per-sample variance of the gap | ||
| sampling budget | at most this many samples | |
| target conditional error rate | bound on the error of an answered question | |
| mis-trigger bound | nominal level of the certified width | |
| plug-in bias of the refusal decision | no distribution-free bound; calibrated empirically | |
| fast-branch trigger threshold | lower-bound claim on | |
| exploration cap | bounds the exploration phase | |
| minimum sample count before triggering | safeguard against degenerate triggers | |
| empirical frequencies and gap at | maintained online | |
| plug-in variance of the gap | see the formula above | |
| confidence half-width at | certified or practical mode | |
| samples used at branch entry | trigger time | |
| run length of the fast branch | chosen by the dynamic program | |
| remaining budget | shared by the fast and naive branches | |
| conservative lower endpoint of | , used in the feasibility criterion | |
| error of the branch rule under candidate | exact chain value; see Section 3.5 | |
| folding residual of the pessimistic chain | ||
| naive-feasibility and certification events | analyst level; defined in Section 3.1 |
Table 2. Notation. denotes the true distribution, with probabilities arranged in descending order; denotes the online estimate of the corresponding quantity, and a known bound used by the certified mode.
The rule
BARS alternates between exploration and one of three decision branches, and the pseudocode is given in Algorithm 1. Sections 3.4 and 3.5 state the two ingredients it relies on. We describe the rule as a sequence of decisions rather than as three phases, because the three outputs are mutually exclusive at the level of a single question: once the trigger fires, the naive and refusal branches are unreachable for that question.
Exploration and the two width modes
The validity of the trigger depends on whether is a valid time-uniform lower confidence half-width for the true gap . We provide two choices, and the choice is the only place in the rule where a guarantee is traded for a higher answer rate.
Certified mode. With as in Assumption 1 — in the LLM setting one may take the size of the parsed answer space — set
where is the plug-in variance, floored as described below. The leading factor 2 absorbs the Lipschitz constant of the top-two gap functional, and the term pays for a union bound over colors; both are made explicit so that is a time-uniform lower confidence half-width for the true : on the good event of probability at least , holds simultaneously over the exploration times (Corollary 1). Because the plug-in variance of a batch of identical draws is exactly zero, the variance used in is floored at a positive value that decays with ; without the floor the width would vanish on the first samples and the trigger would fire on no evidence (Section 4.1, Remark 1). The drawbacks are that its constants are conservative and that the certification time
the smallest at which the certified trigger can fire, scales roughly as ; small budgets are therefore pushed toward refusal. Section 5.2.4 reports its explicit values.
Algorithm 1 BARS: budget-aware adaptive majority voting with refusal
Require: budget $E^{*}$, error $p^{*}$, threshold $\Delta_{\mathrm{high}}$, confidence $\delta$, cap $T_{\mathrm{cap}}$, min_t, width mode (certified or practical)
Require: Choose-$w$ mode (pessimistic or optimistic)
1: Initialize counts $\leftarrow \{\}$, $t \leftarrow 0$, run $\leftarrow 0$, last $\leftarrow \emptyset$ ▷ $t$: samples used
2: repeat
3: $c \leftarrow \mathrm{SAMPLING}()$ ▷ drawing a ball from the bag (one LLM decode)
4: $t \leftarrow t + 1$; counts[$c$] $\leftarrow$ counts[$c$] $+ 1$ ▷ update counts
5: $(\hat{p}_{t}, \hat{\Delta}_{t}, \hat{\sigma}_{t}^{2}) \leftarrow \mathrm{TOP2STATS}(\mathrm{counts},t)$ ▷ online estimates
6: $w_{t} \leftarrow \mathrm{WIDTH}(\hat{\sigma}_{t}^{2},t)$ ▷ certified or practical
7: if $t \geq \mathrm{min\_t}$ and $\hat{\Delta}_{t} - w_{t} \geq \Delta_{\mathrm{high}}$ then
8: $\tau \leftarrow t$; goto FASTBRANCH ▷ enter the fast branch
9: end if
10: if $t = T_{\mathrm{cap}}$ then
11: $\tau \leftarrow t$; goto NAIVEBRANCH
12: end if
13: until false
14: function FASTBRANCH
15: $N \leftarrow E^{*} - \tau$ ▷ remaining budget
16: $w \leftarrow \mathrm{CHOOSEW}(\hat{p}_{\tau},N,p^{*},\mathrm{mode})$ ▷ dynamic program; mode is pessimistic or optimistic
17: if $w \neq \mathrm{NONE}$ then
18: repeat
19: $c \leftarrow \mathrm{SAMPLING}()$; $t \leftarrow t + 1$; counts[$c$] $\leftarrow$ counts[$c$] $+ 1$
20: run $\leftarrow (c = \mathrm{last})?$ run $+ 1 : 1$; last $\leftarrow c$
21: if run $\geq w$ then
22: break
23: end if
24: until $t \geq E^{*}$
25: return $\mathrm{MAJORITY}(\mathrm{counts})$ ▷ majority over the full trajectory
26: else
27: goto NAIVEBRANCH ▷ no admissible window within budget: fall back to the feasibility criterion
28: end if
29: end function
30: function NAIVEBRANCH
31: $N \leftarrow E^{*} - \tau$ ▷ remaining budget; set here as well, because the cap can route directly to this branch
32: $d_{\mathrm{use}} \leftarrow \max(0,\hat{\Delta}_{\tau} - w_{\tau})$ ▷ conservative lower endpoint of $\Delta$
33: $K_{\mathrm{crit}} \leftarrow \hat{K}_{\tau}$ ▷ observed distinct colors
34: if certified mode then
35: $K_{\mathrm{crit}} \leftarrow \bar{K}$ ▷ use the Assumption 1 bound, as the theorems do
36: end if
37: if $(K_{\mathrm{crit}} - 1)e^{-N d_{\mathrm{use}}^{2}/2} \leq p^{*}$ then
38: take $N$ more balls; return $\mathrm{MAJORITY}(\mathrm{counts})$
39: else
40: return $\mathrm{REFUSE}$ ▷ infeasible within budget
41: end if
42: end function
Practical mode.
This is a heuristic, variance-scaled width: it controls the deviation only at the current sample size and carries no time-uniform guarantee, so its safety is calibrated empirically rather than proved. Experiments indicate that substantially mitigates mis-triggers on hard instances; we recommend for interactive deployment, and when stricter mis-trigger control is required (quantified in § 6.3).
The certified mode is used when an auditable certificate is required; the practical mode is the configuration we expect an operator of a small sampling budget to run.
The algorithm stages
Exploration. As samples arrive, the rule updates the empirical frequencies , the top-two gap and the plug-in variance , tests the trigger and, if the trigger has not fired by , leaves the exploration phase. The trigger has two safeguards: min_t prevents it from firing before any evidence on the variance exists, and requires the certified lower endpoint to clear a strictly positive threshold.
The fast branch. For a fixed run length and a candidate distribution over the observed colors, the dynamic program evaluates the exact error probability of the branch’s answering rule,
where is the probability that the first -run is completed by a non-majority color (run part); the probability of that event with the majority still leading at the stop, in which case the trajectory-majority answer is correct; the probability that the majority completes the first -run but does not lead at the stop (count-gap part, which earlier analyses of run-based stopping omitted); the probability that the majority completes the run while still leading, so that stopping on a run has total probability ; and the probability that no color completes a run within samples and the fallback majority is wrong. Since , summing only gives a conservative upper bound, whereas the chain computes the exact value ; the construction of the chain, its state count and the residual that the pessimistic mode incurs are given in Appendix § 14. The chosen run length is the smallest admissible for which the worst-case error rate, residual included, is at most , and the branch stops at the first time the last samples share a color and answers with the majority of the full trajectory. The pessimistic mode evaluates at the distribution that pushes the majority probability down to its confidence-lower endpoint and merges the residual mass into a single filler color; the optimistic mode evaluates it at the plug-in distribution . The theorems of § 4 hold for the pessimistic mode; the optimistic mode is an empirically validated relaxation.
The naive branch and refusal. With as the conservative lower endpoint of (the certified width already absorbs the factor-2 and constants), the branch checks , where in the practical mode and in the certified mode. If the criterion holds, the branch spends the remaining budget and takes the majority, and its error is controlled by the Hoeffding bound of § 4.3; otherwise it refuses. The naive branch is retained even though our experiments never reach it, because the trigger and the criterion are logically independent: a question that fails the trigger can still be feasible, and a rule that dropped this branch would have no path for such questions.
Cost model
All decision logic runs on the CPU: Top2Stats sorts in , the width costs , and the dynamic program has states for the run part plus for the count-gap tracking (Appendix § 14). For language models the dominant cost is the number of forward passes, so the sample count is the cost metric throughout this paper.
Theory
The results are ordered as they depend on one another, so that each one uses only what precedes it. The chain is: simultaneous coverage of the estimated gap, which certifies the trigger; the transfer of the fast-branch analysis to the worst-case distribution inside the confidence set, which certifies the fast branch; the two bounds that constitute the main deliverable, on answering and on refusing; the cost decomposition, which is what makes the rule budget-aware; and a lower bound that says how much of that cost is unavoidable. Proofs are collected in Appendix § 13.
Simultaneous coverage and the certified trigger
We build on two classical tools. Hoeffding’s inequality controls the deviation of an empirical mean from its expectation [7], and an empirical-Bernstein time-uniform confidence sequence controls the deviation simultaneously over all times [4, 5, 8]; the second is the direct source of the certified width.
Lemma 1 (Time-uniform confidence sequence, with the additive term retained). Let be iid and bounded in , with mean and variance , let be the empirical variance, and let . For every exploration time , define
Then
Remark 1 (Why the additive term is not optional). The width has two terms and both are needed. The square-root term alone vanishes when the first draws coincide, because the plug-in variance of a constant batch is exactly zero; a rule that used it alone would certify a gap from no evidence at all. The additive term never vanishes, and it is the term that keeps the certified trigger valid on the first samples. Two conventions are in use in the literature and they differ here by a factor we quantify, because the difference matters for the reported budgets: the alternative convention absorbs the additive term into the multiplicative constant, which is safe only while the plug-in variance is bounded away from zero. The implementation and the figures of § 6.4 use that second convention. At the exploration times reached there, the additive term is 5.7%, 17.7% and 67.6% of the square-root term for , 0.4 and 0.8, so retaining it multiplies the certification time by about 1.1, 1.4 and 3.2 respectively, while leaving the scaling unchanged. We report both sets of values in § 6.4. The simulations confirm that the degenerate regime is not
a corner case: with the square-root-only width certifies a gap on instances with in 32.6–32.9% of runs, against 0 of 200,000 for the two-term width (§ 6.4).
The details of the variance endpoint, the constants and the union bound over colors are in Appendix § 13.§ 1. Because the order statistics are 1-Lipschitz in the sense, the same concentration bound transfers to the empirical top-two gap: . Combining the two with a union bound over the at most colors yields the certified trigger used by the rule.
Corollary 1 (Certified trigger). Let be the known upper bound on the number of colors (Assumption 1), and let
Then, on the event of probability at least ,
and consequently, on , the trigger certifies ; the factor 2 pays for the Lipschitz constant and for the union bound over colors.
The fast branch
Entering the fast branch does not give the rule the true distribution, only a confidence set of radius around the empirical distribution. Our analysis therefore evaluates the branch’s error at the most adversarial distribution inside that set, obtained by a pessimistic redistribution in which the majority probability is pushed to its minimum and the residual mass is merged into a single filler color. The next lemma states the dominance relation that makes this reduction legitimate, and it is why the dynamic program can be evaluated at a single distribution.
Lemma 2 (Pessimistic dominance). Fix the confidence configuration at branch-entry time , let be the conservative lower endpoint of the majority probability, let be the folded two-color distribution whose majority probability is and whose remaining mass sits on a single filler color, and let . Then for every distribution with — in particular every in the confidence set on — every run length and the same initial counts,
where is the exact chain value of § 3.5 and is the folding residual of Appendix § 13.§ 3.
The residual is the price of the folding and it is small for the same reason that the problem is easy: on the paths where the folded process is killed by a filler run while the majority still leads, the unfolded process continues, and it can err only if some minority color overtakes the majority against a negative drift. This is a large-deviation event: on the Hoeffding inequality combined with the reflection principle bounds its probability by , where is used. On the tested grid this residual is numerically below (§ 6.4).
Theorem 1 (Fast-branch error, certified mode and pessimistic chooser). Run the rule with the certified width of Corollary 1 and the pessimistic Choose-u. Conditioned on the good event , if the dynamic program returns a run length with , then
because the error event at the stop is the union of three disjoint events that the chain enumerates: a minority completes the first w-run and leads at the stop, the majority completes it without leading, or no run completes within samples and the branch falls back to the trajectory majority, the last being controlled by the majority Hoeffding bound of Theorem 2. The criterion charges the residual to the same budget; numerically , so the chooser’s output is unaffected.
The fast branch answers with the majority of the whole trajectory rather than with the color that completed the run, and the difference can be quantified exactly.
Proposition 1 (Trajectory-majority benefit). Consider the fast branch entered with run length under , and let be the chain quantities of § 3.5 evaluated at . Conditional on a run completing, the run-color rule errs on the mass and the trajectory-majority rule on the mass , so the two error probabilities differ by exactly
where w: has a minority completing the run and leading at the stop, has the majority completing the run without leading, and has the majority completing it while still leading. The sign of is not fixed by the identity: the trajectory majority is better exactly when , and § 6.4 reports that was non-negative at every point of the tested grid, with the gap growing in the remaining budget .
The naive branch, refusal, and the main guarantees
After iid samples the majority is not the true majority with probability at most , by Hoeffding’s inequality and a union bound over the at most colors. This bound is what the feasibility criterion of the naive branch evaluates at the conservative endpoint instead of at .
Theorem 2 (Joint answering and mis-refusal guarantees, certified mode and pessimistic chooser). Run the rule with the certified width of Corollary 1 and the pessimistic Choose-. Then, for any true distribution with ,
answering error (joint)
mis-refusal (joint)
where is the naive-feasibility event of § 3.1 and
is the plug-in bias: it is nonzero only when the conservative endpoint falls short of the true far enough that the criterion refuses an instance the budget would have handled.
Three remarks delimit what Theorem 2 guarantees and what does not. First, the joint form is the natural statement for guarantees that involve the observed events “answers” and “refuses”; conditioning them out gives and respectively, which reduce to the joint bounds when the answer rate, or the feasibility rate, is close to one. We therefore quote the joint form here and the conditional numbers in the experiments, and we never convert between them implicitly. Second, the sufficient condition for is together with ; when the conservatism introduced by the color-count bound is a further source of mis-refusal that the plug-in bias alone does not capture. Third, has no distribution-free upper bound, and we do not claim one: it is calibrated empirically in § 5, and the same statement is why the certified mode is not offered as a guarantee of the practical one. Finally, the guarantee of the practical width mode is empirical rather than a consequence of Theorem 2; the two modes differ in the width alone.
Expected sampling cost
For a Bernoulli sequence with success probability , the expected number of trials until the first run of consecutive successes is [9]. This identity is what makes the cost of the fast branch predictable in closed form.
Theorem 3 (Expected-samples decomposition). Let , and denote the fast, naive and refusal branch probabilities, and let and denote the fast-branch trigger time and the refusal decision time; here when the branch is entered from the main loop, and when the fast branch falls back. Write for the run waiting time with Bernoulli parameter equal to the plug-in majority probability at branch entry. Then
with ; the truncation accounts for the fact that the fast branch cannot run past the budget, and it is immaterial when exceeds the typical waiting time. The identity is exact when the two-color waiting time is used; with the true multi-color race the fast-branch term is an upper bound, and Monte Carlo verification matches the dynamic-programming output to .
Because the decomposition is closed-form, the amortized cost of a batch can be computed before the batch is run, and a budget can be chosen to match a latency target. We do not use this bound to explain the measured sample counts, because it is conservative by construction: it charges the exploration cap and ignores the samples saved by early refusal.
Why small budgets force refusal: a lower bound
The last result explains why refusal is not an implementation artefact but a consequence of the budget. We consider a two-point family of distributions whose majorities are two different colors and whose top-two gap is the same . Their single-sample KL divergence is . By Le Cam’s two-point method together with Stein’s lemma [35] we obtain the following bound.
Theorem 4 (Two-point lower bound). Let . Any sequential rule that outputs the correct majority with probability at least on each distribution of the two-point family satisfies, in expectation,
for an absolute constant .
Experiments
The experiments divide into two settings and: random-seed synthetic instances whose generating distributions are known, where the predictions of the rule can be checked exactly, and a real model at a deployment-scale budget. The two settings share one implementation of the rule and one set of competing rules.
Experiments design
Competing rules. We compare against two families of competitors in Table 1. The first family contains fixed-budget and fixed-confidence best-arm-identification (BAI) rules that are evaluated on the same sampled stream: the fixed-budget majority rule with the full budget (FIXED-N), Successive Rejects [30], Sequential Halving [32], LUCB [32], lil’UCB [33] and the Hoeffding race [36]. The second family contains the sequential early-stopping rules designed for LLM majority voting that we reviewed in § 2.1: early-stopping self-consistency (ESC) [10], its difficulty-adaptive offspring [11], confidence-guided early stopping (CGES) [12], the sequential-evidence rule DASE [13], the margin-adversarial rule MARS [18] and the martingale majority certificate of certified self-consistency [25]. Each competitor is implemented from its published stopping rule, at the parameters its authors report as default, and every rule consumes the same sampled stream, uses the same answer normalisation and is scored against the same reference; the implementations and their exact stopping criteria are listed in Appendix C. Two of the six LLM competitors need information the pool-replay protocol does not carry: CGES scores answers by their decoding confidence and MARS needs partial-trace states. We therefore evaluate CGES in its confidence-free form, where the posterior over candidate answers is the Dirichlet-multinomial posterior implied by the counts, and MARS in its answer-level form, where the margin is required to exceed a conservative bound on future vote movement; both reductions are stated so that they are not mistaken for the full methods.
The FIXED- rule and the BAI rules always return an answer, since a best arm is always recommended; BARS and the LLM early-stopping rules can refuse or fall back. A comparison must therefore separate two quantities that a single accuracy number would conflate: the error rate on the instances a rule answers, and the rate at which a rule correctly declines instances for which no budget-feasible answer exists. We define the second quantity against an oracle that knows : an instance is feasible when the oracle’s criterion holds at the full budget, and we report the mis-refusal rate (refusing a feasible instance) and the correct refusal rate (refusing an infeasible one) separately. This is the synthetic counterpart of the selective-prediction convention of § 2.2, and it is the only protocol under which a rule that declines to answer is not penalised for a decision that the fixed-budget baselines are structurally unable to make.
Reporting rules. An answer rate is the fraction of questions the rule answers, so that its complement is the refusal rate and the two sum to one, as in selective prediction. Accuracy on answered questions divides by the number of answered questions, whereas the mean sample count divides by all questions of the pool and therefore includes the questions that were refused early; the 22.3% figure below is of the second kind, and we state it with its denominator every time it is quoted. The synthetic cells report conditional error rates averaged over seeds, and the LLM cells report proportions with Wilson 95% intervals, because the latter are binomial proportions over 80 questions and a standard deviation would misstate their uncertainty; the synthetic figures are exact up to the Monte Carlo verification of the dynamic program () and the seed count. Competitor curves are drawn with the same seeds and the same instance batches as the BARS curves throughout, so every point in the synthetic figures is a paired comparison.
Random-seed synthetic experiments
Three properties make synthetic instances the right place to begin. First, they cover the situations a deployed system actually meets: a grid of difficulties in the top-two gap that runs from instances the budget settles easily to instances it cannot settle at all, crossed with budgets from tens to hundreds of samples, so that the rule is not tested only where it happens to be comfortable. Second, the generating distribution is known, because the oracle feasibility criterion , the true top-two gap and the true majority are all exactly computable, and none of the three is available on a real dataset. Third, and because of the second, the synthetic side is where the rule can be audited rather than merely scored: the certified mode’s predictions can be checked against the quantity they predict, and the rule can be priced separately where it is right and where it is wrong. § 7 can do none of this; it answers a different question, namely whether the behavior survives contact with a real model.
Instances and the synthetic parameter set
The instances are drawn from a -grid family: the two leading colors split 0.8 of the probability mass with a gap of exactly , and the remaining eight colors share the residual 0.2 equally, so that difficulty is the single axis along which the instances differ. Default parameters are , , , , and , with the practical width () and the optimistic chooser; the main cells use 2000 seeds and the tuning cells 600–1200.
Behavioral signature across difficulty
Figure 2 shows how the practical mode behaves as the difficulty of the instance varies, and places it against the competitors on the same instances.
Figure 2. Results across the sweep under the practical mode, with the competing rules on the same instances. Left: conditional error rate, that is the error over the instances each rule answers (the BAI rules and Fixed- answer every instance, so their conditional and total error coincide). Right: expected sample count. Every curve is averaged over 2000 seeds per cell; the fixed-budget baseline draws exactly 200 samples on every instance.
At the fast branch handles 97.3% of the seeds with a mean of 38.6 samples, which is 19% of the budget, and at every seed is answered with no error in 14 samples on average, a 93% reduction in sample count. The same two points cost the fixed-budget baseline its full 200 samples, and cost LUCB 199.8 and 96.7 samples respectively, so the saving is a property of stopping rather than of the answer rule: all four rules agree on the answer at , and the difference is entirely in how long they wait. For the answer rate of BARS falls to 13–47%, so most hard instances are refused rather than guessed, and a fixed-majority baseline that draws the full samples still leaves 21–33% error at . The elimination-style competitors do worse, not better, as the budget grows useless: Successive Rejects and Sequential Halving leave 35–44% error at , because a fixed-budget BAI rule must spend its budget eliminating arms it cannot distinguish and then recommend one of them. Exhausting the budget does not rescue these instances, which is the regime the refusal branch exists for.
The refusal decision itself is audited in Figure 3.
Figure 3. Branch composition and refusal quality as functions of . Left: the refusal region marks the instances for which the criterion cannot establish feasibility within the budget; the transition to the fast branch is consistent with the certification cost of § 3.4. Right: refusal correctness against the oracle feasibility criterion of § 5.1, that is the fraction of infeasible instances that are refused and of feasible ones that are not.
The composition in Figure 3 shows a single transition rather than a continuum: larger gaps are handled by the fast branch, smaller ones by refusal, and the boundary moves as the certification cost predicts. The detailed data sweep in numbers rule by rule, is shown in Table 7. On the right panel, the correct refusal rate is 0.53 at , 0.76 at and 0.87 at , while the mis-refusal rate is below 3% everywhere on the grid except at , where it is 18%: the rule errs towards answering, not towards refusing, which is the direction the error budget is stated in. The naïve branch is never reached in this sweep: every instance either triggers the fast branch or is refused at the exploration cap, so the answer rate is carried entirely by the fast branch and the refusal decision rather than by the fallback path, but the branch is retained for the logical completeness argued in § 3.5.
| Rule | Answer | Cond. err. | Total err. | Mean | Miss (feas.) | OK (infeas.) | |
| 0.02 | BARS (practical) | 0.134 | 0.3806 | 0.9170 | 134.0 | 0.0000 | 0.8660 |
| 0.02 | Fixed-N | 1.000 | 0.3345 | 0.3345 | 200.0 | — | — |
| 0.02 | SR | 1.000 | 0.4445 | 0.4445 | 200.0 | — | — |
| 0.02 | SH | 1.000 | 0.4160 | 0.4160 | 150.0 | — | — |
| 0.02 | LUCB | 1.000 | 0.3760 | 0.3760 | 200.0 | — | — |
| 0.02 | lil’UCB | 1.000 | 0.3850 | 0.3850 | 200.0 | — | — |
| 0.05 | BARS (practical) | 0.161 | 0.2617 | 0.8815 | 131.1 | 0.0000 | 0.8395 |
| 0.05 | Fixed-N | 1.000 | 0.2110 | 0.2110 | 200.0 | — | — |
| 0.05 | SR | 1.000 | 0.3720 | 0.3720 | 200.0 | — | — |
| 0.05 | SH | 1.000 | 0.3490 | 0.3490 | 150.0 | — | — |
| 0.05 | LUCB | 1.000 | 0.2185 | 0.2185 | 200.0 | — | — |
| 0.05 | lil’UCB | 1.000 | 0.3215 | 0.3215 | 200.0 | — | — |
| 0.1 | BARS (practical) | 0.240 | 0.1167 | 0.7880 | 124.4 | 0.0000 | 0.7600 |
| 0.1 | Fixed-N | 1.000 | 0.0570 | 0.0570 | 200.0 | — | — |
| 0.1 | SR | 1.000 | 0.2490 | 0.2490 | 200.0 | — | — |
| 0.1 | SH | 1.000 | 0.1580 | 0.1580 | 150.0 | — | — |
| 0.1 | LUCB | 1.000 | 0.0630 | 0.0630 | 200.0 | — | — |
| 0.1 | lil’UCB | 1.000 | 0.1975 | 0.1975 | 200.0 | — | — |
| 0.15 | BARS (practical) | 0.316 | 0.0380 | 0.6960 | 117.8 | 0.0000 | 0.6840 |
| 0.15 | Fixed-N | 1.000 | 0.0115 | 0.0115 | 200.0 | — | — |
| 0.15 | SR | 1.000 | 0.1865 | 0.1865 | 200.0 | — | — |
| 0.15 | SH | 1.000 | 0.0830 | 0.0830 | 150.0 | — | — |
| 0.15 | LUCB | 1.000 | 0.0130 | 0.0130 | 200.0 | — | — |
| 0.15 | lil’UCB | 1.000 | 0.1330 | 0.1330 | 200.0 | — | — |
| 0.2 | BARS (practical) | 0.472 | 0.0244 | 0.5395 | 102.9 | 0.0000 | 0.5280 |
| 0.2 | Fixed-N | 1.000 | 0.0000 | 0.0000 | 200.0 | — | — |
| 0.2 | SR | 1.000 | 0.1370 | 0.1370 | 200.0 | — | — |
| 0.2 | SH | 1.000 | 0.0360 | 0.0360 | 150.0 | — | — |
| 0.2 | LUCB | 1.000 | 0.0025 | 0.0025 | 200.0 | — | — |
| 0.2 | lil’UCB | 1.000 | 0.0730 | 0.0730 | 200.0 | — | — |
| 0.3 | BARS (practical) | 0.821 | 0.0043 | 0.1825 | 64.8 | 0.1790 | — |
| 0.3 | Fixed-N | 1.000 | 0.0000 | 0.0000 | 200.0 | — | — |
| 0.3 | SR | 1.000 | 0.0995 | 0.0995 | 200.0 | — | — |
| 0.3 | SH | 1.000 | 0.0040 | 0.0040 | 150.0 | — | — |
| 0.3 | LUCB | 1.000 | 0.0000 | 0.0000 | 200.0 | — | — |
| 0.3 | lil’UCB | 1.000 | 0.0150 | 0.0150 | 200.0 | — | — |
| 0.4 | BARS (practical) | 0.973 | 0.0005 | 0.0275 | 38.6 | 0.0270 | — |
| 0.4 | Fixed-N | 1.000 | 0.0000 | 0.0000 | 200.0 | — | — |
| 0.4 | SR | 1.000 | 0.0600 | 0.0600 | 200.0 | — | — |
| 0.4 | SH | 1.000 | 0.0000 | 0.0000 | 150.0 | — | — |
| 0.4 | LUCB | 1.000 | 0.0000 | 0.0000 | 199.8 | — | — |
| 0.4 | lil’UCB | 1.000 | 0.0015 | 0.0015 | 200.0 | — | — |
| 0.6 | BARS (practical) | 1.000 | 0.0000 | 0.0000 | 18.5 | 0.0000 | — |
| 0.6 | Fixed-N | 1.000 | 0.0000 | 0.0000 | 200.0 | — | — |
| 0.6 | SR | 1.000 | 0.0260 | 0.0260 | 200.0 | — | — |
| 0.6 | SH | 1.000 | 0.0000 | 0.0000 | 150.0 | — | — |
| 0.6 | LUCB | 1.000 | 0.0000 | 0.0000 | 166.9 | — | — |
| 0.6 | lil’UCB | 1.000 | 0.0000 | 0.0000 | 200.0 | — | — |
| 0.8 | BARS (practical) | 1.000 | 0.0000 | 0.0000 | 14.0 | 0.0000 | — |
| 0.8 | Fixed-N | 1.000 | 0.0000 | 0.0000 | 200.0 | — | — |
| 0.8 | SR | 1.000 | 0.0050 | 0.0050 | 200.0 | — | — |
| 0.8 | SH | 1.000 | 0.0000 | 0.0000 | 150.0 | — | — |
| 0.8 | LUCB | 1.000 | 0.0000 | 0.0000 | 96.7 | — | — |
| 0.8 | lil’UCB | 1.000 | 0.0000 | 0.0000 | 200.0 | — | — |
Table 7. Behavior across the difficulty sweep, 2000 seeds per cell, all rules on the same instances. “Answer” is the answer rate, “cond. err.” the error on answered instances (for the rules with no refusal output this equals the total error), “miss (feas.)” the rate at which a feasible instance is refused, and “OK (infeas.)” the rate at which an infeasible instance is correctly refused; the last two are defined only for BARS.
The decision map and the tuning of the practical width
The difficulty sweep varies one axis at a time. Crossing it with the budget gives a single decision map, and Figure 4 is that map: the answer rate and the conditional error on the plane, with the oracle feasibility criterion of § 5.1 overlaid as a dashed contour.
Figure 4. Decision map of the practical mode on the (, ) plane, 400 seeds per cell. Left: answer rate. Right: conditional error on the answered instances (a dash marks a cell in which the rule answered nothing). The dashed contour in both panels is the oracle feasibility boundary of § 5.1: cells above and to the right of it are instances a budget-feasible answer exists for.
Three features of the map matter. First, the answer region is monotone in both axes but with very different slopes:
along the answer rate moves only from 0.05 to 0.15 when the budget grows 40-times, whereas along it moves from 0.24 to 0.99, because on the first row no budget in the swept range makes the instance feasible while on the second the boundary sits at . Second, the rule’s answer region has the same shape as the oracle’s feasible region but not the same boundary: on the infeasible rows the rule still answers 5–24% of the instances, and on the feasible rows it still refuses part of them, so the two boundaries are within one grid step of each other without coinciding. Third, the errors are concentrated where the rule answers rarely: inside the feasible region the conditional error is at most 1.6% for and exactly zero for , whereas at , where the rule answers only a small fraction, the answers it does give carry errors of 19–37%. That asymmetry is the whole argument in one panel: the rule answers most where it is right and least where it is wrong.
Tuning the practical mode trades answer rate against mis-trigger control, and the trade-off is visible directly in the grid of Figure 5, whose numbers are listed in Table 3: on the easier instance the conditional error stays below 0.5% everywhere on the grid, and the answer rate falls monotonically as either or grows, from 98.5% at to 7.5% at .
Figure 5. Parameter-tuning heatmaps for the practical width mode, three panels per row (conditional error, answer rate, expected sample count). Top: an easier instance with . Bottom: a harder instance with . Axes are the width multiplier and the trigger threshold ; 600 seeds per cell. Cells in which fewer than five instances were answered are drawn but their conditional error is not interpretable.
| easy () | hard () | ||||||
| Cond. err. | Answer | Mean | Cond. err. | Answer | Mean | ||
| 1.5 | 0.05 | 0.0052 | 0.970 | 30.8 | 0.2930 | 0.427 | 101.8 |
| 1.5 | 0.1 | 0.0017 | 0.987 | 31.6 | 0.2976 | 0.342 | 110.8 |
| 1.5 | 0.15 | 0.0017 | 0.977 | 35.9 | 0.3025 | 0.198 | 126.6 |
| 1.5 | 0.2 | 0.0017 | 0.967 | 40.9 | 0.3061 | 0.163 | 130.5 |
| 1.5 | 0.3 | 0.0000 | 0.815 | 64.8 | 0.2157 | 0.085 | 139.0 |
| 2 | 0.05 | 0.0000 | 0.985 | 33.5 | 0.2647 | 0.227 | 123.8 |
| 2 | 0.1 | 0.0017 | 0.972 | 39.3 | 0.2273 | 0.147 | 132.3 |
| 2 | 0.15 | 0.0000 | 0.968 | 45.3 | 0.3387 | 0.103 | 137.9 |
| 2 | 0.2 | 0.0000 | 0.922 | 58.5 | 0.2895 | 0.063 | 142.1 |
| 2 | 0.3 | 0.0000 | 0.638 | 89.1 | 0.2222 | 0.015 | 148.1 |
| 2.5 | 0.05 | 0.0000 | 0.972 | 41.7 | 0.1875 | 0.107 | 137.4 |
| 2.5 | 0.1 | 0.0000 | 0.960 | 48.5 | 0.3600 | 0.083 | 140.3 |
| 2.5 | 0.15 | 0.0000 | 0.927 | 60.4 | 0.2083 | 0.040 | 145.1 |
| 2.5 | 0.2 | 0.0000 | 0.865 | 72.0 | 0.1905 | 0.035 | 145.5 |
| 2.5 | 0.3 | 0.0000 | 0.427 | 112.2 | 0.2500 | 0.007 | 149.1 |
| 3 | 0.05 | 0.0000 | 0.960 | 51.1 | 0.4000 | 0.050 | 144.4 |
| 3 | 0.1 | 0.0000 | 0.930 | 63.5 | 0.2222 | 0.030 | 146.5 |
| 3 | 0.15 | 0.0000 | 0.885 | 74.3 | 0.2105 | 0.032 | 146.0 |
| 3 | 0.2 | 0.0000 | 0.712 | 92.4 | 0.0000 | 0.005 | 149.4 |
| 3 | 0.3 | 0.0000 | 0.275 | 127.3 | 0.3333 | 0.005 | 149.3 |
| 4 | 0.05 | 0.0000 | 0.920 | 77.2 | 0.2143 | 0.023 | 147.2 |
| 4 | 0.1 | 0.0000 | 0.810 | 92.2 | 0.0000 | 0.005 | 149.4 |
| 4 | 0.15 | 0.0000 | 0.593 | 114.0 | 0.0000 | 0.002 | 149.8 |
| 4 | 0.2 | 0.0000 | 0.363 | 126.5 | 0.0000 | 0.003 | 149.6 |
| 4 | 0.3 | 0.0000 | 0.075 | 143.3 | — | 0.000 | 150.0 |
Table 3. Parameter-tuning grid for the practical width, 600 seeds per cell. “easy” is and “hard” is ; the conditional error in cells with few answered instances is not interpretable and is reported only for completeness.
On the harder instance the same trade-off is the only thing the grid records, because the rule refuses most instances throughout: the answer rate falls from 42.7% at to below 1% at , and the conditional error of
few answered cells is not stable enough to be read as a trend. We therefore recommend with for interactive deployment and when stricter mis-trigger control is required, which is the same recommendation as in § 3.4.
The one reading of the practical mode that moves against the rule is the mis-refusal rate at the largest budget: at and , by which point the instance is feasible, the rule answers 57.1% of the instances with a 1.1% conditional error and still mis-refuses 42.9% of the feasible ones. The practical width is the cause, not the criterion: the criterion is evaluated at with the heuristic width, so at moderate budgets the endpoint is conservative enough to move a borderline instance across the boundary. We report this as a measured cost of the practical mode rather than as a defect of the criterion, and raising is what trades it back against the answer rate, as the grid above shows.
The chooser is the second tuning axis, and it is the one with the larger effect. The pessimistic chooser is not usable at these budgets: it produces a formally valid certificate but judges almost every instance infeasible, collapsing the answer rate, whereas the optimistic chooser reaches a 97.2% answer rate with a 0.17% conditional error and 39.3 samples on average, 2.4 times the oracle cost. This is the empirical form of the trade-off stated in § 4: the pessimistic chooser is the configuration the theorems cover, and the optimistic chooser is the configuration that runs.
Ablation studies
In this part, we try to separate what each configuration contributes in the two experiments following: the first prices the certified mode by running the theorem configuration, and the second prices the fast branch by running it only.
The certified mode against the practical mode. Figure 6 examines the certified mode directly, and Table 4 gives the underlying closed-form inputs.
Figure 6. Budget sufficiency in the certified mode. Left: at a given budget the answer rate increases with ; no incorrect answer was observed in these runs, so no conditional-error panel is drawn. Right: the theoretical certification time , computed from under the two conventions of Lemma 1.
| square-root term | two-term (Lemma 1) | ratio | |
| 0.2 | 1.06 | ||
| 0.3 | 1.13 | ||
| 0.4 | 1.22 | ||
| 0.6 | 1.49 | ||
| 0.8 | 2.16 |
Table 4. Certification time under the square-root convention used by the implementation and the figures, and under the two-term convention of Lemma 1, with , , and . All values are closed-form and follow from Section 3.4; no experiment is involved, so there is no sampling uncertainty to report.
The certified mode answers only instances whose gap is large enough to certify within the budget: at the answer rate is zero for , 5% at and 100% at , and raising the budget to moves the point only to 13%. No incorrect answer was observed in any certified cell, which is the qualitative content of Corollary 1 on instances whose certified trigger fires. The asymmetry is the point: the certified width is not a heuristic that can be tightened by spending more samples on a hard instance, because the certification cost grows as and the instance is simply not certifiable at these budgets.
Solving with the certified width yields the smallest at which the trigger can fire, that is , and with the two-point-family variance the effective gap is rather than , which is why the scaling is not exactly . Concretely, the square-root convention gives , and samples for , 0.4 and 0.8, and retaining the additive term of Lemma 1 raises these to , and . Both sets of values quantify the same tension: a certified answer on a moderately hard instance costs two to three orders of magnitude more samples than a budgeted one, and the gap is a property of the guarantee rather than of the implementation. Finally, the search for a window in the fast branch has to be distinguished from the trigger: the trigger can fire only after , and the dynamic program is what decides whether a window then exists. We report both conventions because the choice is a modeling decision about which form of the empirical-Bernstein bound is used, not a numerical detail: the ratio between the two grows monotonically with the gap, from 1.06 at to 2.16 at , while the scaling in is common to both, and it is under the square-root-only convention that a constant batch of draws would certify a gap with zero width.
The configuration the theorems cover.
This second run closes the gap between the runs and the theorems by using the theorem configuration on the same grid as the practical one, with all four configurations sharing one batch of seeds. We use four configurations. C1 is the certified width with the pessimistic chooser and the square-root-only convention; C2 is the certified width with the pessimistic chooser and the two-term width of Lemma 1, which is exactly the configuration of the two theorems; C3 is the certified width with the optimistic chooser and the two-term width; and C4 is the practical width () with the optimistic chooser, the configuration already used in Sections 5.2.2 and 5.2.3.
Three readings of Table 5 matter. First, the configuration the theorems cover is feasible: C2 answers every seed at with zero conditional error, at about 997 samples. But it
| Config | Answer | Refusal | Mean samples | Mean trigger | Cond. err. | Deg. trig. | |
| C1 | 0.05 | 0.000 | 1.000 | 250.0 | 250.0 | 0.0000 | 0 |
| C1 | 0.1 | 0.000 | 1.000 | 250.0 | 250.0 | 0.0000 | 0 |
| C1 | 0.2 | 0.013 | 0.987 | 253.5 | 247.4 | 0.0000 | 2 |
| C1 | 0.4 | 0.743 | 0.257 | 784.5 | 156.6 | 0.0000 | 7 |
| C1 | 0.8 | 1.000 | 0.000 | 838.1 | 18.9 | 0.0000 | 45 |
| C2 | 0.05 | 0.000 | 1.000 | 250.0 | 250.0 | 0.0000 | 0 |
| C2 | 0.1 | 0.000 | 1.000 | 250.0 | 250.0 | 0.0000 | 0 |
| C2 | 0.2 | 0.000 | 1.000 | 250.0 | 250.0 | 0.0000 | 0 |
| C2 | 0.4 | 0.033 | 0.967 | 275.0 | 248.3 | 0.0000 | 0 |
| C2 | 0.8 | 1.000 | 0.000 | 997.2 | 85.0 | 0.0000 | 1 |
| C3 | 0.05 | 0.000 | 1.000 | 250.0 | 250.0 | 0.0000 | 0 |
| C3 | 0.1 | 0.000 | 1.000 | 250.0 | 250.0 | 0.0000 | 0 |
| C3 | 0.2 | 0.000 | 1.000 | 250.0 | 250.0 | 0.0000 | 0 |
| C3 | 0.4 | 0.033 | 0.967 | 248.6 | 248.3 | 0.0000 | 0 |
| C3 | 0.8 | 1.000 | 0.000 | 89.8 | 85.0 | 0.0000 | 1 |
| C4 | 0.05 | 0.183 | 0.817 | 215.2 | 210.5 | 0.3091 | 0 |
| C4 | 0.1 | 0.263 | 0.737 | 211.6 | 199.3 | 0.0886 | 0 |
| C4 | 0.2 | 0.733 | 0.267 | 151.7 | 116.5 | 0.0091 | 2 |
| C4 | 0.4 | 1.000 | 0.000 | 40.4 | 27.5 | 0.0000 | 7 |
| C4 | 0.8 | 1.000 | 0.000 | 13.8 | 8.9 | 0.0000 | 45 |
Table 5. The four configurations defined in this subsection, on a shared grid with 300 seeds per cell, , , , , , and ; the four share one seed batch. C1: certified width, pessimistic chooser, square-root-only convention. C2: certified width, pessimistic chooser, two-term width (the configuration the theorems cover). C3: certified width, optimistic chooser, two-term width. C4: practical width (), optimistic chooser. “Deg. trig.” counts the seeds whose trigger fired on a batch with zero plug-in variance.
refuses almost everything at , where its answer rate is at most 3.3%, so the certified width alone already makes the rule unusable at the budgets of Section 5.2.2. Second, what is expensive is the chooser rather than the width: at the same certified width and two-term width, replacing the pessimistic chooser by the optimistic one (C2→C3) lowers the mean sample count at from 997.2 to 89.8, a factor of about eleven, with the conditional error still zero. Third, the additive term is not optional in practice either: the degenerate-trigger counts logged during the sweep are 45, 7 and 2 at , 0.4 and 0.2 for C1, and 1, 0 and 0 for C2, so the additive term essentially clears the early degenerate triggers.
The fast branch in isolation.
Proposition 1 attributes the gain of answering with the trajectory majority, rather than with the color that completed the run, to the chain mass ; we verify the identity in a controlled version of the fast branch that involves no language model, and — because the same experiment compares BARS against the rule it would be if the run color were the answer — it also isolates the contribution of the answering rule from the contribution of the stopping rule. Figure 7 reports the result.
Figure 7. Trajectory-majority benefit in synthetic fast-branch experiments without a language model. Left: the exact gain against the remaining budget for , , and run lengths (solid) and (dashed); markers are Monte Carlo estimates over 40,000 seeds. Right: conditional error rates of the run-color and trajectory-majority rules, given that a run completes (, ); lines are exact chain values and markers are Monte Carlo estimates.
The gain grows with the remaining budget : at with the dynamic program’s typical run length it rises from $1.3 \times 10^{-3}$ at to at $N = 200 and at , and it was non-negative at every point of the tested grid, which is what Proposition 1 allows for without proving it for every distribution. Conditional on a run completing, the trajectory majority halves the error of the run-color rule: at , and the conditional error falls from to , and the improvement is the mass of the paths on which a minority completes the run while the majority still leads, an event that
becomes more likely as the lead is established over more samples. The same sweep provides a numerical check on Lemma 2: folding random distributions from the confidence set into a single filler color never produced a candidate that outperformed the folded pessimistic bag, with a maximum deficit below over the tested grid.
Real-dataset experiments
§ 6 measured quantities that only a known distribution supplies: the true gap, the oracle feasibility boundary and the mis-refusal rate, none of which can be computed on real questions. This subsection measures what only a real model supplies. The pool is produced by Qwen2.5-7B on GSM8K and MATH, sixteen decodes per question and eighty questions per dataset, and every rule listed in § 5.1 consumes the same pool. Two quantities change meaning across this boundary, and both are stated where they change: accuracy is now scored against a reference rather than against a known majority, and the mis-refusal rate is not reported at all, because its definition refers to the true gap; the refusals are instead priced ex post, by counting how many withheld questions the pool majority would have answered correctly.
Setup and parsing
In this part, each response is parsed by a priority-based extraction rule and the extracted final answer is normalized to a color key. MATH answers receive light normalization, and the few malformed multi-candidate responses are counted as errors rather than discarded, so that the error figures are not flattered by parsing. The mis-refusal rate cannot be computed on real questions, because its definition refers to the true gap (§ 5.1), so we report no value for it here and instead price the refusal ex post in the results below. This section runs under its own parameter set, namely , , , and the practical width (), so the certified-mode level is not a gate on the running system here, and the synthetic defaults of § 6 do not transfer to these runs.
Results
Figure 8 and Table 6 report the results.

Figure 8. Real-LLM results on GSM8K and MATH in the practical mode, with a pre-generated pool of decodes per question and 80 questions per dataset. (a) GSM8K and (b) MATH: accuracy on the answered questions against the mean number of samples, one marker per rule, with the fixed- majority joined by a dashed line as a reference and the rule under test drawn as a filled square.
| Rule | GSM8K | MATH | ||||
| ans. (%) | acc. (%) | ans. (%) | acc. (%) | |||
| Fixed-1 | 100.0 | 81.2 | 1.00 | 100.0 | 48.8 | 1.00 |
| Fixed-2 | 100.0 | 81.2 | 2.00 | 100.0 | 48.8 | 2.00 |
| Fixed-4 | 100.0 | 86.2 | 4.00 | 100.0 | 62.5 | 4.00 |
| Fixed-8 | 100.0 | 88.8 | 8.00 | 100.0 | 70.0 | 8.00 |
| Fixed-16 | 100.0 | 88.8 | 16.00 | 100.0 | 73.8 | 16.00 |
| ESC() | 100.0 | 88.8 | 2.77 | 100.0 | 70.0 | 3.67 |
| ESC() | 100.0 | 88.8 | 4.26 | 100.0 | 73.8 | 6.04 |
| ESC() | 100.0 | 88.8 | 6.34 | 100.0 | 73.8 | 8.66 |
| CGES() | 100.0 | 88.8 | 11.00 | 100.0 | 73.8 | 15.00 |
| CGES() | 100.0 | 88.8 | 16.00 | 100.0 | 73.8 | 16.00 |
| DSC | 100.0 | 88.8 | 2.83 | 100.0 | 72.5 | 4.01 |
| DASE | 100.0 | 88.8 | 2.91 | 100.0 | 72.5 | 4.14 |
| MMC | 100.0 | 88.8 | 15.81 | 100.0 | 73.8 | 15.82 |
| MARS | 100.0 | 88.8 | 4.26 | 100.0 | 73.8 | 7.66 |
| BARS-NoRefusal | 100.0 | 88.8 | 7.71 | 100.0 | 73.8 | 11.76 |
| BARS | 81.2 | 93.8 | 6.21 | 50.0 | 82.5 | 7.76 |
Table 6. Real-LLM results, Qwen2.5-7B, 80 questions per dataset, pre-generated pool , all rules on the same pool. “ans.” is the answer rate, “acc.” the accuracy on the answered questions, and the mean sample count over all questions of the dataset, refused questions included. Accuracy intervals are Wilson 95% intervals and are reported in the text.
On GSM8K the rule answers 81.2% of the questions after 6.21 samples on average, with an accuracy of 93.8% on those answers, against 88.8% for the fixed-16 majority from the same pool. Because the two rules do not spend the same amount, the matched-cost comparison is the informative one: at 6.21 samples the closest fixed baseline is , which reaches 88.8%, so at the same average cost the rule buys 5.1 points of accuracy on the answered questions, and the currency it pays is coverage. Over the dataset as a whole — the denominator that includes the refused questions — the rule draws 22.3% fewer samples than fixed-8. On MATH the same comparison is sharper: the rule answers 50.0% of the questions at 7.76 samples with 82.5%, where the matched-cost baseline reaches 70.0% and the full-budget baseline reaches 73.8% over the whole set. The full-coverage baselines report those numbers only because they answer everything, so their accuracy is a ceiling rather than a choice. The refusal is not free, and the pool lets us price it ex post rather than only in principle: of the 15 questions the rule refuses on GSM8K, 10 would have been answered correctly by the pool majority, and of the 40 it refuses on MATH, 26 would have been. So the rule gives up 18.8% of the GSM8K set and 50.0% of the MATH set, and we report that as the measured price of the output channel rather than as a success of it; the Wilson intervals of the rule and of the full-coverage baselines overlap on both datasets, so the accuracy gain is not statistically established at these sample sizes. Note that this ex post count is not the mis-refusal rate defined in § 5.1: the latter is stated against the analyst-level feasibility event , which is built from the true gap and therefore cannot be evaluated on real questions, whereas the count here only says that the answers the rule withheld would in hindsight have been right. Scoring each refusal as an error rather than as a withheld answer places the rule at 76.2% on GSM8K and 41.2% on MATH over the whole set, below every full-coverage baseline; we report the figure because it is the same trade-off seen from the other side, and a deployment that must answer every question should not use this rule. Finally, the competitor rows carry the same reading as the synthetic ones: the early-stopping rules match the full-budget accuracy at a fraction of the cost but cannot exceed it, because exceeding it would require declining some questions; on MATH, where the pool is genuinely fragmented, that ceiling is what separates them from the rule under test. The two datasets therefore differ in how much the refusal costs rather than in whether the rule behaves the same way, and we read that as the cross-domain content of the finding rather than as a per-dataset tuning artifact.
Reading the competitor rows rule by rule, each of them lands at or below the full-budget accuracy, because none of them can decline a question: The distinction is not that BARS is cheaper on every cell but that its cheapness and its accuracy are produced by one decision: on MATH the competitors spend their budget on questions whose answer distribution they cannot resolve, whereas BARS declines them and spends its budget on the rest.
Discussion
The synthetic and the deployed runs exhibit the same qualitative behavior: easy instances are answered quickly and hard ones are refused. The competitor comparison adds three findings that the internal audit alone could not produce. First, where no answer is budget-feasible the advantage of BARS is not a matter of degree but of kind: on the smallest gap of the sweep, which the oracle calls infeasible, the rule refuses 87% of the instances, whereas the five fixed-budget rules assert an answer that is wrong in 33–44% of them, and no parameter of theirs could have produced the honest output because none of them has a third output to produce it with. Second, on instances that are answerable, the saving comes from stopping rather than from answering: BARS matches the conditional error of the fixed-budget baseline and of LUCB on the easy cells at 14–39 samples against their 97–200, and the difference is entirely in how long the rules wait rather than in what they answer. Third, the elimination-based BAI rules are the wrong tool for this problem rather than a weak version of the right one: on the hard cells of the sweep their error (35–44% at ) exceeds that of the fixed-budget majority (21–33%), because a fixed-budget arm-identification rule must spend its budget eliminating arms it cannot separate and then recommend one of them.
The fixed-budget baseline cannot recover hard instances even when it spends the whole budget, whereas the adaptive rule gives up on a subset of questions in exchange for higher accuracy on the rest.
Conclusion and future work
This paper formalizes multiple-sampling majority voting as majority identification under an unknown distribution with a sampling budget and a target error rate, and proposes BARS (Budget-Aware Refusal Sampling), a sequential rule driven by the top-two gap and its plug-in variance. The rule returns one of three outputs — an early stop, a majority vote after the budget is spent, or an explicit refusal — and it can be run in two configurations: the certified mode, for which we prove bounds on the joint answering error and on the mis-refusal probability, and the practical mode, which is empirically calibrated and for which no theorem is claimed. Each certified-mode guarantee is backed by a proof; the practical mode is backed by measurement, and the distance between the two is reported by this paper.
The experiments divide into two settings and one discussion, and the findings follow that division. First, the synthetic sweeps over random seeds show the difficulty-driven behavior that the certified-mode analysis predicts: large gaps are settled far below the budget, small gaps are refused, and the boundary moves with the certification cost. Second, certification itself is expensive at these problem sizes: a certified answer costs two to three orders of magnitude more samples than a budgeted one, which is why the certified mode refuses at small budgets instead of answering badly, and why the two-point lower bound is a statement about budgets rather than about algorithms. Third, on a real deployment budget the rule behaves as the abstraction predicts: on GSM8K it draws 22.3% fewer samples over the pool than fixed-8 sampling (denominator: all 80 questions, refused questions included) at the cost of declining 18.8% of the questions, and on MATH it refuses half of the questions while lifting the answered accuracy from 70.0% to 82.5%, so that refusal converts questions the configuration cannot handle from silent errors into an actionable output.
The two theorems’ own configuration is also measured now: at the certified width with the pessimistic chooser is feasible but spends essentially the whole sampling budget, and changing only the chooser to the optimistic one reduces the mean sample count to 89.8 (§ 6.4).
Five directions follow from the limitations we report, ordered by how much of the remaining uncertainty each would remove. First, the certified mode needs tighter time-uniform widths, for instance self-normalised or betting-based confidence sequences [4, 5], since its current constant is what rules it out at deployment-scale budgets. Second, an independent reference direction, generated separately from the rollouts the rule consumes, would remove the reference dependence of every accuracy figure reported here. Third, a low-repetition or multi-peaked answer pool would test the abstraction where it is weakest, because the current pool’s concentration is partly repetition rather than semantic certainty. Fourth, decoupling from answer quality, for instance by weighting answers the model judges plausible, would address the structural boundary that no bound in this paper can detect: a model that is confidently and consistently wrong. Fifth, online batching would use the stopping-time distribution as a scheduling signal when many questions share a GPU, and larger models and budgets would test whether the deployed behavior we report survives at scale.
CRediT authorship contribution statement
Shenxi Liu: Conceptualization, Methodology, Software, Validation, Formal analysis, Writing – original draft. Yiwei Li: Methodology, Validation, Writing – review & editing. Mingyang Zhao: Software, Data curation, Visualization, Writing – review & editing. Yuhang Tian: Investigation, Writing – review & editing. Kan Li: Supervision, Funding acquisition, Project administration, Writing – review & editing.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Acknowledgements
This research was supported by the Beijing Natural Science Foundation (No. 4262065), and the National Natural Science Foundation of China (No. 62676029, 62171183).
Data availability
All experimental code related to this study can be accessed at https://github.com/LtColLiuPeiqiang/adaptive-stopping/.
Proofs
The proofs follow the order in which the results are used, so that no proof relies on a statement proved after it. Throughout, denotes the good event of Lemma 1 and Corollary 1, and constants absorbed into the width are flagged where they are used.
Proof of the confidence sequence with the additive term (Lemma 1)
At each time , the empirical-Bernstein inequality of [8] (Theorem 4, for variables bounded in ) gives, for any ,
Substituting turns the right-hand side into
and a union bound over , using , yields . This is the mechanism of time-uniformity: the per-test mass is a Cauchy sequence in , so the total over all times is exactly the nominal level. Both terms of are needed: the square-root term shrinks with the plug-in variance and would vanish on a constant batch of draws, whereas the additive term is a strictly decreasing positive function of and keeps the bound informative at every time (Remark 1).
Proof of the top-two gap control and of the certified trigger (Corollary 1)
The order statistics are 1-Lipschitz in the sense: for any pair of distributions and any rank ,
Applying this at ranks and and using the triangle inequality gives . To transfer Lemma 1 to the colors, a union bound over the at most of them allocates the per-test mass to each color, so the joint event has probability at most , where is the per-color half-width of Lemma 1 with inserted into . Multiplying by the Lipschitz factor 2 of the top-two gap gives the width of Corollary 1, and on the resulting event every trigger certifies .
Proof of the pessimistic dominance
We split the argument into a monotonicity step over the two-color family and a folding step.
Step 1 (two-color monotonicity). For a two-color bag with majority probability , the fast branch is a Markov chain on the state , where are the current run lengths of the majority color and the filler and is the count gap ; the chain is killed when either run reaches or steps elapse, and the payoff is “error at the kill”. Order the states by . Each transition is monotone in this order: a majority draw maps to or kills with payoff , whereas a filler draw maps to or kills with payoff . Hence, by the standard comparison theorem for monotone Markov chains (equivalently, by backward induction on the remaining horizon: the value function is non-decreasing in the order, and increasing shifts probability mass from filler draws to majority draws, which only raises the value), the error probability is non-increasing in . The hardest two-color bag with is therefore the one whose majority probability equals , namely .
Step 2 (folding). Fix a majority probability and couple any distribution with to the folded two-color bag on a common uniform sequence: every minority outcome of maps to the single filler color of . At every time the majority count and the total minority count coincide in both processes, so the gap process is identical; the majority run lengths coincide, and the folded filler run length is at least every individual minority run length. Consequently the unfolded error event at a fixed time, , is contained in the folded error event . The only remaining difference is the killing time: the folded process is killed by a filler -run no later than the unfolded one. On the paths where the folded process is killed by a majority run the two processes agree exactly; on the paths where it is killed by a filler run while the majority still leads , the unfolded process continues, and the folded error event no longer witnesses the unfolded one. On those paths the unfolded process can err only if some minority overtakes the majority against a negative drift . The overshoot time is an upcrossing of the negative-drift random walk ; by Hoeffding’s inequality on its increments (bounded in , drift ) combined with the reflection principle, for each minority color, and a union over the at most minority colors gives , where the last step uses and on . Combining with Step 1 gives the statement of the lemma.
Proof of the fast-branch error (Theorem 1)
The error event at the branch stop splits into three disjoint events (Section 3.5): (a) the first -run is completed by a minority color and the minority is the trajectory leader at the stop; (b) the first -run is completed by the majority color yet the majority is not the trajectory leader at the stop; and (c) no color completes a -run within the remaining samples, in which case the branch falls back to the majority of the whole trajectory. The absorbing chain of Appendix B computes (a) and (b) exactly, as and , for any candidate distribution ; evaluating it at and invoking Lemma 2 transfers the bound to in the confidence set on . For (c), the trajectory majority at budget exhaustion is the majority over iid samples; the Hoeffding bound of Section 4.3 with in place of (Assumption 1) and on bounds its probability by , exactly the bound the chooser includes as its third term. Summing the three parts bounds by , which the criterion of Theorem 1 charges to the budget.
Proof of the majority Hoeffding bound (Section 4.3)
Fix and define ; then and . The majority is wrong if and only if there exists with , that is , and Hoeffding’s inequality on gives . A union over gives at most , and replacing by its upper bound gives the bound used in the text.
Proof of the answering-error and mis-refusal bounds (Theorem 2)
Define the good event with (Lemma 1 and Corollary 1); on , for all , hence .
Answering error (joint). The rule answers through the fast branch or through the naive branch. On both paths are safe: Theorem 1 bounds the fast-path error by , and in the naive branch the criterion together with and implies , so the true error is at most as well. Hence , and off only the mass remains, so
Mis-refusal. A mis-refusal is the joint event refuse , with the naive-feasibility event of Section 3.1. Any mis-refusal either lies outside —probability at most —or lies inside , where by definition it is counted by the plug-in bias : on , a refusal means , which is compatible with only if the conservative endpoint underestimates enough to flip the criterion, or if the replacement of by does so. Hence . The sufficient condition for is therefore and ; the color-count bound contributes a mis-refusal channel of its own when , which no distribution-free argument can remove and which we therefore report rather than bound.
Proof of the expected-samples decomposition
(Theorem 3)
The three terms correspond to the three branches. The fast branch spends in exploration and then an expected in the run phase, truncated by the remaining budget; the naive branch always spends in total; the refusal branch spends . Weighting by the branch probabilities and applying linearity of expectation gives the decomposition. Because the majority’s run typically completes first in the multi-color race, the true expectation is slightly below , so the stated fast-branch term is an upper bound.
Proof of the two-point lower bound
(Theorem 4)
We use the Neyman–Pearson log-likelihood-ratio test. Let
a random walk with mean under and under ; decide if and only if . By Stein’s lemma the sum of the two error probabilities of the optimal test decays as , so requiring per-side error at most gives . Substituting the two-point family’s divergence yields for an absolute constant . The sequential version follows by applying the same argument at every time step, a standard technique in bandit lower bounds; the expected stopping time has the same order.
The Choose- dynamic program, and the oracle comparison
The chain behind
The run part is computed by an absorbing Markov chain over states : the last draws are all of color and no -run has been completed. Let be the probability that, starting from , the first completed -run is completed by a non-majority color, with absorption . Then for ,
This system has states and a rank-one coupling, and it can be solved in time by exploiting its near-triangular structure. The count-gap terms and require, in addition, the count gap between
the majority color and the strongest minority color; the augmented chain over the run configuration and , with , has states in the worst case, which for the folded two-color distributions used by the pessimistic mode reduces to . The fallback term is bounded by the majority Hoeffding bound of Section 4.3, which the chooser adds as its third term. One modelling remark is in order, because it delimits what the dynamic program proves: the count gap is treated as a sufficient state together with the run configuration, which is exact for the two-color folds the pessimistic mode evaluates and is an approximation for a general multi-color empirical distribution. All of this runs on the CPU and is negligible relative to the sampling cost (Section 3.6).
Comparison with an omniscient oracle
We record the oracle comparison here because it is a supporting computation rather than part of the guarantee chain. Let and denote the expected sample counts of the rule and of an oracle that knows and therefore skips exploration, and let and be the smallest windows satisfying and respectively.
Theorem 5 (Oracle gap, achievable instances). For instances on which both rules take the fast branch,
The three components are the exploration cap, which the oracle does not pay, the additional waiting time induced by the conservative window, and the expected cost of mis-triggers. The proof proceeds in three steps: the pessimistic feasible set is contained in the true one, so ; on achievable instances the two rules differ term by term along the branch decomposition; and outside , of probability at most , each path costs at most .
Step 1 (). On , Lemma 2 gives for every and every in the confidence set, so any window accepted by the pessimistic criterion is feasible for ; the pessimistic feasible set is therefore a subset of the true one.
Step 2 (branch-conditional comparison). Conditional on branch entry at time with remaining budget , Theorem 3 and the run-waiting formula give
where bounds the exploration cost, the truncation of the waiting time by only lowers the adaptive term, and the expectations use the plug-in majority probability at entry.
Step 3 (mis-triggers). Off the plug-in estimates may be uninformative and each such path spends at most , contributing .
Competing rules: exact stopping criteria
Every competitor is implemented from its published stopping rule and consumes the same sampled stream as BARS: one sample is one draw from the underlying distribution (synthetic setting) or one parsed decode (LLM setting). For a stream we write for the count of value up to time , , and for the top two empirical frequencies.
Fixed-budget and fixed-confidence best-arm identification
FIXED-. Stop at and return ; the rule never refuses and always spends the whole budget.
Successive Rejects [30]. With budget and arms, set , and in round draw times from each surviving arm, then eliminate the arm with the smallest empirical mean.
Sequential Halving [32]. Split the budget uniformly over rounds and, in each round, draw equally from the survivors and keep the better half by empirical mean.
lil’UCB [33]. Round-robin sampling with the radius ; stop when for the leader .
LUCB [32]. In each round sample the empirical leader and runner-up once, and stop when with the Hoeffding radius .
Hoeffding race [36]. In each round draw once from every surviving arm and eliminate any arm with , where .
All five rules are run under the same per-path budget and return their leader at expiry; FIXED- and the elimination rules have no refusal output, which is why § 5.1 reports their conditional and total error as one number.
Sequential early-stopping rules for LLM majority voting
ESC [10]. Given a window and a cap , stop at the first with (a window in which all answers coincide), and answer with the plurality over the prefix; if no such window occurs, answer with the plurality over samples. The paper’s control scheme fixes from a warmup window of size ; we report , which brackets the values its figures use.
CGES [12]. The posterior score of candidate after samples is , normalised over candidates; the rule stops at the first with . The score depends on a per-sample decoding confidence , which the pool-replay protocol does not carry, so we evaluate the confidence-free reduction (the Dirichlet-multinomial posterior mean under a uniform prior, with an explicit unseen-answer bucket so that from the first round, as the paper’s online implementation does) and stop on with . This reduction is stated in § 5.1 and is the reason the CGES numbers here are a lower bound on its advantage rather than an evaluation of its confidence weighting.
DASE [13]. DASE commits when the evidence is concentrated and otherwise falls back to the global frequency; on a pool without deliberation rounds we instantiate it as committing at the first with and , and falling back to the plurality at .
MARS [18]. The margin between the leader and the runner-up must remain safe under a conservative bound on future vote movement; at the answer level we use with and the plug-in variance of § 3.2, stopping at the first where this holds. MARS’s real rule also learns per-trace switch probabilities, which need partial-trace states that the pool does not carry.
MMC, the certificate of certified self-consistency [25]. The Martingale Majority Certificate is an anytime-valid stopping rule built on -processes; at the answer level it is the certified width of § 3.4 applied without the budget or refusal logic, , with a stop at the first where . The distinction from BARS is not the width but the absence of a refusal output and of a budget argument: MMC answers at whatever the width says, which is why its conditional error is reported on the full pool.
References
- [1]X. Wang, J. Wei, D. Schuurmans, Q. Le, E. Chi, S. Narang, A. Chowdhery, D. Zhou, Self-consistency improves chain of thought reasoning in language models, in: International Conference on Learning Representations (ICLR), 2023. arXiv:2203.11171.arxiv.org/abs/2203.11171
- [2]K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, C. Hesse, J. Schulman, Training verifiers to solve math word problems, in: International Conference on Learning Representations (ICLR), 2022. arXiv:2110.14168.arxiv.org/abs/2110.14168
- [3]D. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song, J. Steinhardt, Measuring mathematical problem solving with the MATH dataset, in: Advances in Neural Information Processing Systems (NeurIPS), 2021. arXiv:2103.03874.
- [4]S. R. Howard, A. Ramdas, J. McAuliffe, J. Sekhon, Time-uniform, nonparametric, nonasymptotic confidence sequences, The Annals of Statistics 49 (2) (2021) 1055–1080. arXiv:1810.08240.DOI
- [5]I. Waudby-Smith, A. Ramdas, Estimating means of bounded random variables by betting, Journal of the Royal Statistical Society: Series B 85 (1) (2023) 1–27. arXiv:2010.09686.
- [6]D. A. Darling, H. Robbins, Iterated logarithm inequalities, The Annals of Mathematical Statistics 38 (1) (1967) 139–148.
- [7]W. Hoeffding, Probability inequalities for sums of bounded random variables, Journal of the American Statistical Association 58 (301) (1963) 13–30.
- [8]A. Maurer, M. Pontil, Empirical bernstein bounds and sample variance penalization, in: Proceedings of the 22nd Conference on Learning Theory (COLT), 2009. arXiv:0907.3740.arxiv.org/abs/0907.3740
- [9]W. Feller, An Introduction to Probability Theory and Its Applications, 3rd Edition, Vol. I, Wiley, 1968.
- [10]Y. Li, P. Yuan, S. Feng, B. Pan, X. Wang, B. Sun, H. Wang, K. Li, Escape sky-high cost: Early-stopping self-consistency for multi-step reasoning, in: International Conference on Learning Representations (ICLR), 2024. arXiv:2401.10480.arxiv.org/abs/2401.10480
- [11]X. Wang, S. Feng, Y. Li, P. Yuan, Y. Zhang, C. Tan, B. Pan, Y. Hu, K. Li, Make every penny count: Difficulty-adaptive self-consistency for cost-efficient reasoning, in: Findings of the Association for Computational Linguistics: NAACL, 2025. arXiv:2408.13457.arxiv.org/abs/2408.13457
- [12]E. Aghazadeh, A. Ghasemi, H. Beyhaghi, H. Pishro-Nik, CGES: Confidence-guided early stopping for efficient and accurate self-consistency, arXiv preprintExtended version; preliminary version at the Efficient Reasoning Workshop, NeurIPS 2025 (2025). arXiv:2511.02603.arxiv.org/abs/2511.02603
- [13]R. E. Medina, Adaptive consensus in LLM ensembles via sequential evidence accumulation (DASE), arXiv preprint (2026). arXiv:2605.04236.
- [14]B. Brown, J. Juravsky, R. Ehrlich, R. Clark, Q. V. Le, C. R’e, A. Minhoseini, Large language models: Scaling inference compute with repeated sampling, arXiv preprint (2024). arXiv:2407.21787.arxiv.org/abs/2407.21787
- [15]C. Snell, J. Lee, K. Xu, A. Kumar, Scaling LLM test-time compute optimally can be more effective than scaling model parameters, arXiv preprint (2024). arXiv:2408.03314.arxiv.org/abs/2408.03314
- [16]M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. de Oliveira Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman, A. Ray, R. Puri, G. Krueger, M. Petrov, H. Khlaaf, G. Sastry, P. Mishkin, B. Chan, S. Gray, N. Ryder, M. Pavlov, A. Power, L. Kaiser, M. Bavarian, C. Winter, P. Tillet, F. P. Such, D. Cummings, M. Plappert, F. Chantzіs, E. Barnes, A. Herbert-Voss, W. H. Guss, A. Nichol, A. Paino, N. Tezak, J. Tang, I. Babuschkin, S. Balaji, S. Jain, W. Saunders, C. Hesse, A. N. Carr, J. Leike, J. Achiam, V. Misra, E. Morikawa, A. Radford, M. Knight, M. Brundage, M. Murati, K. Mayer, P. Welinder, B. McGrew, D. Amodei, S. McCandlish, I. Sutskever, W. Zaremba, Evaluating large language models trained on code, arXiv preprint (2021). arXiv:2107.03374.arxiv.org/abs/2107.03374
- [17]P. Singh, P. Singh, What fixed-rollouts pass@k evaluations can identify, arXiv preprint (2026). arXiv:2609.09245.arxiv.org/abs/2609.09245
- [18]W. Chen, P. Li, M. Liu, W. Su, T. Xie, MARS: Margin-adversarial risk-controlled stopping for parallel LLM test-time scaling, arXiv preprint (2026). arXiv:2606.12935.arxiv.org/abs/2606.12935
- [19]Y. Geifman, R. El-Yaniv, Selectivenet: A deep neural network with an integrated reject option, in: International Conference on Machine Learning (ICML), 2019, pp. 2151–2159. arXiv:1901.09192.arxiv.org/abs/1901.09192
- [20]S. Ranbansar, A. Thudi, K. Hamidieh, A. Dziedzic, I. Bahcei, A. B. Sediq, H. Sokun, N. Papernot, Selective prediction via training dynamics, Transactions on Machine Learning Research (TMLR) (2022). arXiv:2205.13532.
- [21]Y. A. Yadkori, I. Kuzborskij, D. Stutz, András György, A. Fisch, A. Doucet, I. Beloshapka, W.-H. Weng, Y.-Y. Yang, Csaba Szepesvári, A. T. Cemgil, N. Tomasev, Mitigating LLM hallucinations via conformal abstention, arXiv preprint (2024). arXiv:2405.01563.arxiv.org/abs/2405.01563
- [22]Z. Wang, Q. Wang, Y. Zhang, T. Chen, X. Zhu, X. Shi, K. Xu, SConU: Selective conformal uncertainty in large language models, in: Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL), 2025. arXiv:2504.14154.arxiv.org/abs/2504.14154
- [23]V. Kotte, When can conformal risk control certify LLM outputs? bounds, impossibility, and practical achievability, arXiv preprint (2026). arXiv:2606.29054.
- [24]M. Khosravani, Selective prediction from agreement: A Lipschitz-consistent version space approach, arXiv preprint (2026). arXiv:2605.02611.arxiv.org/abs/2605.02611
- [25]P. Cordero-Encinar, A. B. Duncan, Certified self-consistency: Statistical guarantees and test-time training for reliable reasoning in LLMs, arXiv preprint (2025). arXiv:2510.17472.
- [26]S. Pasteris, A. Rumi, M. Thiessen, S. Saito, A. Miyauchi, F. Vitale, M. Herbster, Bandits with abstention under expert advice, arXiv preprint (2024). arXiv:2402.14585.arxiv.org/abs/2402.14585
- [27]J. Yang, T. Jin, V. Y. F. Tan, Asymptotically and minimax optimal regret bounds for multi-armed bandits with abstention, arXiv preprint (2024). arXiv:2402.15127.arxiv.org/abs/2402.15127
- [28]S. Liaw, B. Plaut, Learning when not to learn: Risk-sensitive abstention in bandits with unbounded rewards, in: Proceedings of the 29th International Conference on Artificial Intelligence and Statistics (AISTATS), 2024. arXiv:2510.14884.arxiv.org/abs/2510.14884
- [29]Y. Huang, Y. Hou, V. Y. F. Tan, Bayesian best-arm identification with abstention: A polynomial-to-exponential phase transition, arXiv preprint (2026). arXiv:2606.29203.arxiv.org/abs/2606.29203
- [30]E. Kaufmann, O. Cappé, A. Garivier, On the complexity of best-arm identification in multi-armed bandit models, Journal of Machine Learning Research 17 (1) (2016) 1–42. arXiv:1407.4443.
- [31]A. Garivier, E. Kaufmann, Optimal best arm identification with fixed confidence, in: Proceedings of the 29th Conference on Learning Theory (COLT), 2016, pp. 998–1027. arXiv:1602.04589.arxiv.org/abs/1602.04589
- [32]S. Kalyanakrishnan, A. Tewari, P. Auer, P. Stone, Pac subset selection in stochastic multi-armed bandits, in: Proceedings of the 29th International Conference on Machine Learning (ICML), 2012.
- [33]K. Jamieson, M. Malloy, R. Nowak, S. Bubeck, ’l’ UCB: An optimal exploration algorithm for multi-armed bandits, in: Proceedings of the 27th Conference on Learning Theory (COLT), PMLR 35, 2014, pp. 423–439. arXiv:1312.7308.arxiv.org/abs/1312.7308
- [34]S. Bubeck, N. Cesa-Bianchi, Regret analysis of stochastic and non-stochastic multi-armed bandit problems, Foundations and Trends in Machine Learning 5 (1) (2012) 1–122. arXiv:1204.5721.arxiv.org/abs/1204.5721
- [35]A. B. Tsybakov, Introduction to Nonparametric Estimation, Springer, 2009.
- [36]O. Maron, A. W. Moore, Hoeffding races: Accelerating model selection search for classification and function approximation, Advances in Neural Information Processing Systems (NIPS) 6 (1993).
AI tools statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.






