Certified Self-Consistency: Statistical Guarantees and Test-Time Training for Reliable Reasoning in LLMs
Paula Cordero-Encinar, Andrew B. Duncan
TL;DR
This work presents a principled, statistically grounded framework for certifiable reasoning in large language models by treating multiple rollouts as a stochastic process and certifying that majority voting recovers the model’s mode of the terminal distribution. It introduces the Martingale Majority Certificate (MMC), an anytime-valid stopping rule based on $e$-values that adaptively determines when enough rollouts have been collected to guarantee a small error probability. The authors connect test-time reinforcement learning to exponential tilting of the terminal distribution, providing theoretical justification for why KL-regularised TTRL and entropy-based rewards sharpen the mode and reduce sample requirements, while also proposing two label-free post-training objectives to optimize this trade-off. Empirically, the framework demonstrates tighter reliability guarantees and reduced compute with test-time adaptation on math reasoning benchmarks, and identifies the SNR of the margin as a label-free proxy for problem difficulty. Overall, the work unifies concentration bounds, martingale-based stopping, and test-time adaptation into a cohesive, certifiable approach to reliable reasoning in LLMs with no external supervision.
Abstract
Recent advances such as self-consistency and test-time reinforcement learning (TTRL) improve the reliability of large language models (LLMs) without additional supervision, yet their underlying mechanisms and statistical guarantees remain poorly understood. We present a unified framework for certifiable inference in LLMs, showing that majority voting provides a statistical certificate of self-consistency: under mild assumptions, the aggregated answer coincides with the mode of the model's terminal distribution with high probability. We derive finite-sample and anytime-valid concentration bounds that quantify this confidence, and introduce the Martingale Majority Certificate (MMC), a sequential stopping rule that adaptively determines when sufficient samples have been drawn. We further prove that label-free post-training methods such as TTRL implicitly sharpen the answer distribution by exponentially tilting it toward its mode, thereby reducing the number of samples required for certification. Building on this insight, we propose new post-training objectives that explicitly optimise this trade-off between sharpness and bias. Together, these results explain and connect two central test-time scaling strategies, self-consistency and TTRL, within a single statistical framework for label-free, certifiable reliability in reasoning LLMs.
