Tuning a test-time scaling pipeline by sweeping prompts, budgets, verifiers, and stopping rules on a single labeled calibration set invalidates fixed-recipe error bars for the winner. Across 25-recipe sweeps of gpt-4.1-mini on GSM8K, a nominal 95% Wilson upper bound for the selected recipe falls below its held-out risk in 22.5% of splits. Modeling each recipe as a stochastic predictor with random cost and a randomized recipe as a posterior $Q$ over recipes, we establish an anytime-valid PAC-Bayes-kl certificate from i.i.d. calibration data relative to an independently declared prior $P$. The bound holds simultaneously across all sample sizes, posteriors $Q \ll P$, and data-dependent stopping times at selection penalty $\mathrm{KL}(Q \Vert P)$, accommodating hierarchical recipe families and dyadic tail bounds for uncapped token costs. This penalty is fundamental: under independent Bernoulli losses, valid per-recipe certificates obey a Kraft inequality whose expected kl-radius is lower-bounded by the Shannon entropy of the reported recipe up to $O(\log n)$, while even unrestricted certificates pay $\log M - O(\log n)$ over $M$ exchangeable recipes. Because plurality voting concentrates exponentially on the generator's mode whether right or wrong, certifying accuracy requires ground-truth labels; the same large-deviation rate yields an oracle water-filling rule for compute allocation. On GSM8K, gpt-4.1-mini over budgets $\{1, 3, 5, 9\}$ achieves held-out risk 0.039 with a 95% certificate of 0.109, and empirical coverage holds across all 12,000 resplits of four sweeps.
翻译:暂无翻译