math.STOct 15, 2026

Two Sample Sizes in Test-Time LLM Ensembling: Buffered ERM and Minimax Theory

Authors: Zhi Zhang, Arash A. Amini

Organizations: Department of Statistics and Data Science, UCLA

Abstract

Test-time scaling can improve the performance of large language models by generating multiple answers to a question and aggregating them. Weighted ensembles extend this idea by drawing answers from several models, with the weights determining how often each model is used. Learning these weights from a training dataset involves two sample sizes: QQ labeled questions and NN generations per model and question. We study their interplay through the clean risk, the population error of the ensemble's infinite-generation voting rule. Under a margin condition with exponent ββ, we show that empirical risk minimization (ERM) with a calibrated margin buffer achieves excess risk of order Q−1/2+N−β/2Q^{-1/2}+N^{-β/2}, up to logarithmic factors, for fixed numbers of models and candidate answers. To investigate the optimality of this dependence on QQ and NN, we analyze a simplified submodel with two models and two possible answers per question. We characterize its minimax excess risk up to constants by a Hellinger modulus for a binomial-mixture experiment. Polynomial approximation and spectral analysis reveal three regimes. When questions are relatively scarce, the Q−1/2Q^{-1/2} term governs learning and the general buffered ERM is optimal. In an intermediate regime, pooling generation counts across questions improves upon estimating each answer distribution separately, with only logarithmic gains from additional questions. With sufficiently many questions, the minimax excess risk reaches an N−βN^{-β} identification floor that persists even with infinitely many questions. The submodel's lower bounds also apply to general ensembles, matching the buffered-ERM upper bound up to logarithmic factors when questions are scarce and in parts of the intermediate regime. Questions remain about the transitions between regimes and the construction of matching pooled estimators for general ensembles.

Figures & tables

Explore similar work

CardsList
  1. Test-Time Scaling Makes Overtraining Compute-Optimal

    Apr 1, 2026Nicholas Roberts, Sungjun Cho, Zhiqi Gao +7Scaling LawsLanguage Model Scaling Laws

  2. Sample Count Is Not Enough: Candidate-Generation Strategy Shapes the Energy and Performance of LLM Test-Time Scaling

    Sep 16, 2026Mobina Kashaniyan, Ali JannesariLLM Inference EfficiencyLLM Inference

  3. Interpretable Adaptive Sampling for LLM Test-Time Scaling

    Aug 4, 2026Mobina Kashaniyan, Ali JannesariLLM Inference EfficiencyTest-Time Scaling