# Anytime-Valid PAC-Bayes Certificates for Adaptive Test-Time Scaling

*Xiaoyu Li, Jiangxuan Long*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153451) · [Open on the map](../papers.html#p153451)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Test-Time Scaling and Optimization](../pgroup/415.md) · Type: new method · Keywords: adaptive test-time scaling, PAC-Bayes certificates, risk reporting, compute allocation, margin analysis

## Summary
The paper introduces Anytime-Valid PAC-Bayes Certificates that provide time-uniform risk bounds for adaptive test-time scaling, enabling safe risk-cost reporting for inference pipelines.

## Explained to a 5-year-old
When a computer program decides how much work to do while answering a question, it can sometimes make mistakes. We give it a way to be safe by using math that works even after it changes its mind. This math tells us how sure we can be about its answers. It also shows that sometimes using more work can make things worse. We test the rule on simple puzzles and a math test to see how well it works.

## Explained to a 5-year-old, longer
A computer program can decide how much time to spend on a question when it is answering. It might choose to look at more examples, ask different questions, or trust different helpers. Because it changes its mind many times, the usual way to measure how good it is does not work. We create a new math idea that works even when the program keeps changing its plan. This math gives us a safe way to say how sure we are about the program's answers. It tells us that using more work only helps when the program already knows the right answer for sure. If the program is not sure, using more work can actually make the answer less reliable. The math also explains how to split the work wisely among different helpers. We test this idea on made-up examples that show how optimistic the usual methods can be. We also test it on a real math benchmark with many problems to see how it behaves in practice. The results show that the new rule can prevent over-confidence and give more honest risk estimates. This helps people who build computer systems to report how risky their answers might be.

## For a technical reader
The paper tackles the issue that adaptive test-time scaling (choosing compute, prompts, and verifiers) invalidates standard validation error bars. It provides a time-uniform PAC-Bayes bound that simultaneously covers all calibration steps, posterior mixtures over scaling recipes, and data-dependent stopping rules. The bound yields a familiar log M/n penalty for a finite grid of budgets and verifiers, with sharper guarantees when priors and posteriors are structured. Through a margin analysis, the authors show that majority voting only improves exponentially with compute when the correct answer is the generator's unique mode; otherwise more compute can amplify errors. The same analysis gives an oracle water-filling law for allocating compute efficiently.

## Problem
Adaptive test-time scaling systems select sampling, prompts, and verifiers based on calibration data, making standard validation error bars invalid. There is a need for statistically sound certificates that remain valid after such adaptive choices.

## Method
The approach models test-time scaling as a randomized predictor with random cost and derives a time-uniform PAC-Bayes bound covering all calibration times, posterior mixtures, and stopping rules. It yields a log M/n penalty for finite grids and sharper bounds via non-uniform priors and localized posteriors, plus a margin analysis for voting and compute allocation.

## Results
The synthetic audit shows substantial optimism in risk estimates, and the GSM8K audit demonstrates practical risk-cost reporting for a real inference pipeline.

## Contributions
Provides a time-uniform PAC-Bayes certificate for adaptive test-time scaling, a margin analysis revealing when compute helps or harms, and an empirical audit illustrating the impact on risk reporting.

## Limitations and assumptions
The analysis assumes a finite grid of budgets and verifiers and a randomized predictor formulation; empirical results are limited to synthetic and GSM8K audits.

## Practical relevance
Enables trustworthy reporting of risk and compute for adaptive inference systems, helping practitioners avoid over-optimistic performance claims.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153451)
