arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.21091stat.MLcs.AIcs.LG
收藏

最佳的无穷大 -- 测试时LLM融合的渐近性能

Best-of-$\infty$ -- Asymptotic Performance of Test-Time LLM Ensembling

Mohamed bin Zayed University of Artificial Intelligence(莫莫德·宾·扎耶德人工智能大学);New York University(纽约大学);RIKEN AIP(理化学研究所AIP);Institute of Science Tokyo(东京科学研究所);NEC Corporation(日本电报电话株式会社)

Junpei Komiyama, Daisuke Oba, Masafumi Oyamada

AI总结:

本文提出了一种自适应生成方案,通过动态选择N和加权融合多个LLM,实现测试时LLM融合的渐近性能优化。

摘要:

我们研究了大型语言模型(LLM)中的best-of-N方法,其中选择基于多数投票。特别是,我们分析了极限N→∞的情况,我们称之为boinflower。虽然这种方法在极限下实现了出色的性能,但需要无限的测试时间预算。为了解决这个问题,我们提出了一种自适应生成方案,根据答案一致性选择N,从而高效地分配推理时间计算。除了自适应性外,我们还扩展了框架以实现多个LLM的加权融合,证明此类混合可以超越任何单一模型。最优的融合加权被公式化,并高效地计算为混合整数线性规划。广泛的实验展示了我们方法的有效性。

英文摘要:

We study best-of-$N$ for large language models (LLMs) where the selection is based on majority voting. In particular, we analyze the limit $N \to \infty$, which we denote as \boinflower. While this approach achieves impressive performance in the limit, it requires an infinite test-time budget. To address this, we propose an adaptive generation scheme that selects $N$ based on answer agreement, thereby efficiently allocating inference-time computation. Beyond adaptivity, we extend the framework to weighted ensembles of multiple LLMs, showing that such mixtures can outperform any individual model. The optimal ensemble weighting is formulated and efficiently computed as a mixed-integer linear program. Extensive experiments demonstrate the effectiveness of our approach.

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

↑