Two anytime-valid stopping rules for LLM reasoning give finite-sample Type I control via Ville's inequality. The Robbins-stitched rule matches the law-of-the-iterated-logarithm lower bound in rate; at practical sample sizes the simpler Beta-mixture is usually better.
| Method | Certifications | Type I | 95% CI |
|---|---|---|---|
| Beta-Mixture | |||
| Robbins-Stitched |
| Drift | Power (Beta) | Power (Rob) | (Beta) | (Rob) | Median (Beta/Rob) | Eff. gain |
|---|---|---|---|---|---|---|
| 0.05 | 0.996 | 0.996 | 4211 | 4315 | 3723 / 3924 | |
| 0.10 | 1.000 | 1.000 | 904 | 936 | 794 / 844 | |
| 0.15 | 1.000 | 1.000 | 382 | 388 | 323 / 321 | |
| 0.20 | 1.000 | 1.000 | 203 | 191 | 168 / 129 | |
| 0.30 | 1.000 | 1.000 | 79 | 69 | 63 / 53 |
Going deeper
| (# components) | |||
|---|---|---|---|
| (68) | |||
| (28) | |||
| (16) |
Imagine you ask a room of people the same question repeatedly. Each answer is a vote. You want to stop asking as soon as you are sure which answer is most popular—but if you stop too early, you might call the wrong winner, and every extra question costs money.
Classical statistics solved this decades ago for factory inspection: keep a running score, and stop the moment it crosses a carefully chosen line. The line is designed so that a false alarm almost never happens, no matter when you happen to look. This paper brings that idea to large language models, where each 'vote' is an independent response to the same prompt.
Two lines are proposed: a smooth one (Beta-mixture) and a sharper one (Robbins-stitched) that in theory needs fewer votes when the margin is tiny. In practice, the smooth line is simpler and often wins. On sixty maths problems, both lines called the majority answer after about seven to ten votes out of forty. One catch: calling the majority answer is not the same as calling the right answer—and the paper shows a real example where the model's favourite answer is wrong.
The abstract, word for word, with the six densest phrases unpacked.
Long-context reasoning in large language models (LLMs) is sequential evidence accumulation1: each added sample, token, or step contributes information, and when computation is costly, deciding when to stop is a statistical problem. Existing heuristics (fixed budgets, confidence thresholds, entropy-based early exit) lack formal guarantees. We develop a framework grounded in classical sequential analysis, testing whether accumulated evidence has positive drift, with Type I error controlled at any data-dependent stopping time via Ville’s inequality. We study two test supermartingales: a Beta-mixture e-process, with an O(sqrtnlogn) boundary2, and a Robbins-stitched betting e-process, attaining the law-of-the-iterated-logarithm rate O(sqrtnloglogn)3. Both give exact finite-sample control; the latter is rate-optimal (not constant-optimal), the lower bound imported from Wald (1945), Farrell (1964), and Lai (1976). We instantiate two settings: self-consistency certification4 (an i.i.d. ±1 vote process) and a cross-context content-sensitivity certificate for PaTH attention5 (a per-input certificate is precluded by within-context dependence and left open). Simulations of the actual constructions confirm validity; the cross-context PaTH certificate controls Type I with power 0.994; and on 60 GSM8K problems the method certifies 59/60, including one incorrect plurality, since self-consistency certifies the mode, not correctness6. The finite-sample efficiency gap is small and sign-varying, favouring the simpler Beta-mixture. MSC 2020 Subject Classifications: Primary 62L10, 62L15; secondary 60G42, 68T50. Keywords: sequential testing, anytime-valid inference, e-processes, test supermartingales, law of the iterated logarithm, self-consistency, large language models, PaTH attention.
Two lines of prior work converge here: sequential testing theory and LLM self-consistency.
Read five parts, in this order.
Skip Section 2 if you know Ville's inequality and the law of the iterated logarithm.
If the practical value is smaller than it looks, these places show why.
| Drift | Power (Beta) | Power (Rob) | (Beta) | (Rob) | Median (Beta/Rob) | Eff. gain |
|---|---|---|---|---|---|---|
| 0.05 | 0.996 | 0.996 | 4211 | 4315 | 3723 / 3924 | |
| 0.10 | 1.000 | 1.000 | 904 | 936 | 794 / 844 | |
| 0.15 | 1.000 | 1.000 | 382 | 388 | 323 / 321 | |
| 0.20 | 1.000 | 1.000 | 203 | 191 | 168 / 129 | |
| 0.30 | 1.000 | 1.000 | 79 | 69 | 63 / 53 |
We are explicit that GSM8K’s near-unanimous pluralities put this experiment in the large-drift, short-horizon regime (θ effectively near 1), where the sequential machinery barely engages: it is an end-to-end proof-of-life on a real model (and a live plurality-vs-correctness example), not a stress test of the small-drift regime where the stopping theory earns its keep. A run on genuinely ambiguous tasks (near-tie pluralities, large τ) would exercise the Beta/Robbins contrast directly; we leave it to future work and do not over-read the present result.
A per-trajectory certificate, accumulating along a single context—would require the conditional statement of a martingale difference, which Proposition 6.4 shows fails under the dependence. We therefore do not claim per-trajectory Type I control; §6.6 confirms empirically that a naive per-trajectory e-process does not control Type I here. Establishing a valid per-trajectory (single-input) PaTH certificate—e.g. via a dependence-aware e-process—is left as an open problem.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all