cs.LGNov 19, 2026

Sequential Anytime Valid Tests for Efficient Inference-Time Alignment

Authors: Vishesh Kumar Singh, Sayak Ray Chowdhury

Organizations: Indian Institute of Technology Kanpur, India

Abstract

Inference-time alignment methods, such as Best-of-N (BoN), improve language model outputs by generating multiple candidates per prompt and selecting among them using a reward model. Much of this cost is wasted: a fixed budget is applied to every prompt, although the computation required by prompts varies widely. Adaptive methods halt once sampled answers appear settled, but their thresholds are tuned heuristics with no statistical control over early-stopping errors. We instead seek an anytime-valid stopping rule that takes an error tolerance αα as input and halts only once an answer is certified to hold a majority (θa>1/2θ_a > 1/2) under the generator's distribution. We aggregate candidates by final answer with a reward-weighted self-consistency (RWSC) score and treat stopping as a sequential test over the resulting clusters. Applying Wald's sequential probability ratio test to these clusters yields SPRT-RWSC, which performs well empirically, but its guarantee fails because the leading answer shifts during sampling, and the run is continuously monitored. Our main contribution, e-RWSC, replaces Wald's test with a betting supermartingale (an e-process) for every answer the policy produces, bounding the probability of ever certifying a non-dominant answer by αα, uniformly over time and across all answers. The RWSC scores drive the bets, so they affect only how quickly a dominant answer a⋆a^\star is certified, not validity; certification takes O(log⁡(1/α)/dKL(θa⋆∥1/2))O(\log(1/α)/d_{\mathrm{KL}}(θ_{a^\star}\|1/2)) samples. Experiments across several language models, datasets, and reward models confirm the predicted 1/dKL1/d_{\mathrm{KL}} scaling of cost and show that accuracy improves over baselines at substantially lower token cost.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Revisiting the (Sub)Optimality of Best-of-N for Inference-Time Alignment

    Mar 5, 2026Ved Sriraman, Adam BlockBest-of-N SamplingInference-Time Language Model Alignment

  2. Safe Inference-Time Alignment via Lagrangian Reward Augmentation

    Jul 2, 2026Yaswanth Chittepu, Ativ Joshi, Sohini Chintala +1LLM AlignmentLLM Safety Alignment

  3. Best-of-Tails: Bridging Optimism and Pessimism in Inference-Time Alignment

    Mar 6, 2026Hsiang Hsu, Eric Lei, Chun-Fu ChenReward Over-OptimizationInference-Time Language Model Alignment