测试时大语言模型集成中的两个样本量:缓冲经验风险最小化(ERM)与极小极大理论
Two Sample Sizes in Test-Time LLM Ensembling: Buffered ERM and Minimax Theory
AI总结:
该研究针对测试时大语言模型集成的两个样本量,提出带缓冲的 ERM 方法,分析其极小极大风险,揭示三种学习状态,为集成权重学习提供理论支撑。
摘要:
测试时缩放可通过为问题生成多个答案并聚合来提升大语言模型性能,加权集成则通过从多个模型抽取答案并使用权重决定各模型使用频率扩展该思路。从训练数据集学习这些权重涉及两个样本量:$Q$ 个带标签问题,以及每个模型与问题的 $N$ 次生成。我们通过干净风险(集成无限生成投票规则的总体误差)研究二者的相互作用。在指数为 $\beta$ 的边际条件下,我们证明,对于固定数量的模型和候选答案,带校准边际缓冲的经验风险最小化(ERM)的超额风险阶为 $Q^{-1/2}+N^{-\beta/2}$(忽略对数因子)。为探究该对 $Q$ 和 $N$ 依赖关系的最优性,我们分析了含两个模型、每个问题两个可能答案的简化子模型,通过二项混合实验的赫尔利格模刻画其超额极小极大风险(忽略常数)。多项式近似与谱分析揭示了三种状态:当问题相对稀缺时,$Q^{-1/2}$ 项主导学习,通用缓冲 ERM 是最优的;在中间状态,跨问题池化生成计数比单独估计每个答案分布更优,额外问题仅带来对数级增益;当问题足够多时,超额极小极大风险达到 $N^{-\beta}$ 的识别下限,即使问题无限多也会持续存在。该子模型的下界也适用于通用集成,在问题稀缺时及中间状态的部分区域,与缓冲 ERM 的上界(忽略对数因子)匹配。关于状态间的过渡以及通用集成匹配池化估计器的构造仍存在疑问。
英文摘要:
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: $Q$ labeled questions and $N$ 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^{-β/2}$, up to logarithmic factors, for fixed numbers of models and candidate answers. To investigate the optimality of this dependence on $Q$ and $N$, 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/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^{-β}$ 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。