arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.03199cs.LGstat.ML
收藏

Best-of-Majority:Pass@$k$推理扩展的极小极大最优策略

Best-of-Majority: Minimax-Optimal Strategy for Pass@$k$ Inference Scaling

Department of Computer Science, University of California, Los Angeles, CA 90095, USA(计算机科学系,加州大学洛杉矶分校)

Qiwei Di, Kaixuan Ji, Xuheng Li, Heyang Zhao, Quanquan Gu

AI总结:

针对Pass@$k$推理扩展,论文提出结合频率筛选与奖励排序的Best-of-Majority策略,证明其达到匹配上下界的极小极大最优 regret,并在数学推理实验中优于多数投票和BoN。

摘要:

LLM推理通常会为一个提示生成一批候选回答,并通过多数投票或Best-of-N(BoN)等策略选择其中一个。对于困难任务,这种单次选择往往表现不佳。因此,评估通常报告Pass@$k$:智能体最多可以提交$k$个响应,在计算遗憾时只使用其中最好的一个。受此启发,我们在更一般的Pass@$k$推理设置中研究推理扩展,并证明多数投票和BoN都不会随$k$和采样预算$N$呈现理想的扩展。结合多数投票与BoN的优势,我们提出一种名为Best-of-Majority(BoM)的新推理策略,其关键步骤是在选择奖励最高的前$k$个响应之前,将候选限制为在$N$个样本中出现频率较高的响应。我们证明,当采样预算为$N=\tildeΩ(C^*)$时,BoM的遗憾为$O(ε_{\mathrm{opt}}+\sqrt{ε_{\mathrm{RM}}^2C^*/k})$,其中$C^*$是覆盖系数,$ε_{\mathrm{RM}}$是奖励模型的估计误差,$ε_{\mathrm{opt}}$是最优响应处奖励的估计误差。我们进一步建立了匹配的下界,证明我们的算法是极小极大最优的。除最优性外,BoM还有一个关键优势:与多数投票和BoN不同,其性能不会随$N$增加而下降。数学问题推理的实验结果表明,BoM优于多数投票和BoN。

英文摘要:

LLM inference often generates a batch of candidates for a prompt and selects one via strategies like majority voting or Best-of- N (BoN). For difficult tasks, this single-shot selection often underperforms. Consequently, evaluations commonly report Pass@$k$: the agent may submit up to $k$ responses, and only the best of them is used when computing regret. Motivated by this, we study inference scaling in the more general Pass@$k$ inference setting, and prove that neither majority voting nor BoN exhibits the desirable scaling with $k$ and the sampling budget $N$. Combining the advantages of majority voting and BoN, we propose a new inference strategy called Best-of-Majority (BoM), with a pivotal step that restricts the candidates to the responses with high frequency in the $N$ samples before selecting the top-$k$ rewards. We prove that when the sampling budget is $N=\tildeΩ(C^*)$, the regret of BoM is $O(ε_{\mathrm{opt}}+\sqrt{ε_{\mathrm{RM}}^2C^*/k})$, where $C^*$ is the coverage coefficient, $ε_{\mathrm{RM}}$ is the estimation error of the reward model, and $ε_{\mathrm{opt}}$ is the estimation error of reward at the optimal response. We further establish a matching lower bound, certifying that our algorithm is minimax optimal. Beyond optimality, BoM has a key advantage: unlike majority voting and BoN, its performance does not degrade when increasing $N$. Experimental results of inference on math problems show BoM outperforming both majority voting and BoN.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑