Test-time Verification via Optimal Transport: Coverage, ROC, & Sub-optimality
Arpan Mukherjee, Marcello Bullo, Debabrota Basu, Deniz Gündüz
TL;DR
This work recasts test-time verification as an optimal-transport problem between a generator's proposal distribution and a verifier-defined target, illuminating how generator coverage, verifier ROC, and sampling strategy jointly shape sub-optimality. It introduces a formal framework with a coverage constraint and a closed-form optimal policy under binary verifier rewards, yielding three distinct regimes for sub-optimality as coverage increases. The authors develop and analyze sequential (AiC, SRS, SMC) and batched (BoN, BRS) sampling algorithms, deriving exact expressions for sub-optimality and computational cost, and validating predictions on Qwen, Llama, and Gemma models. The findings provide precise guidance on when rejection-based versus batch-based resampling is advantageous and how verifier accuracy critically mediates performance, with implications for robust, computation-aware test-time scaling of LLMs.
Abstract
While test-time scaling with verification has shown promise in improving the performance of large language models (LLMs), the role of the verifier and its imperfections remain underexplored. The effect of verification manifests through interactions of three quantities: (i) the generator's coverage, (ii) the verifier's region of convergence (ROC), and (iii) the sampling algorithm's sub-optimality. Though recent studies capture subsets of these factors, a unified framework quantifying the geometry of their interplay is missing. We frame verifiable test-time scaling as a transport problem. This characterizes the interaction of coverage, ROC, and sub-optimality, and uncovers that the sub-optimality--coverage curve exhibits three regimes. A transport regime -- where sub-optimality increases with coverage, a policy improvement regime -- where sub-optimality may decrease with coverage, depending on the verifier's ROC, and a saturation regime -- where sub-optimality plateaus, unaffected by coverage. We further propose and analyze two classes of sampling algorithms -- sequential and batched, and examine how their computational complexities shape these trade-offs. Empirical results with Qwen, Llama, and Gemma models corroborate our theoretical findings.
