arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.19477cs.CLcs.AIcs.LG
收藏

大语言模型测试时计算量的可证明缩放定律

Provable Scaling Laws for the Test-Time Compute of Large Language Models

Alibaba Group(阿里巴巴集团)

Yanxi Chen, Xuchen Pan, Yaliang Li, Bolin Ding, Jingren Zhou

AI总结:

本研究提出两种仅需黑盒大语言模型的两阶段算法,从理论上证明其失败概率随测试时计算量增长呈指数或幂律衰减,并通过实验验证了算法的缩放特性与实用价值。

摘要:

我们提出了两种简单、有理论依据且实用的算法,它们针对大语言模型(LLM)的测试时计算量具备可证明的缩放定律。第一种是两阶段淘汰赛式算法:给定输入问题,它首先生成多个候选解,随后通过淘汰赛对这些候选解进行聚合以得到最终输出。假设LLM能够以非零概率生成正确解,且在比较一对正确与错误解时表现优于随机猜测,我们从理论上证明,随着测试时计算量的增长,该算法的失败概率会以指数级或幂律形式(取决于具体的缩放方式)衰减至零。第二种是两阶段联赛式算法,其中每个候选解通过与多个对手对战的平均胜率来评估,而非因输给单个对手就被淘汰。在类似但更鲁棒的假设下,我们证明其失败概率同样会随着测试时计算量的增加以指数级衰减至零。两种算法都仅需黑盒LLM即可实现极简部署(无需验证器或奖励模型等额外组件),这使得它们在实际应用中颇具吸引力,且易于适配不同任务。通过在多种模型和数据集上开展的大量实验,我们验证了所提出的理论,并证明了两种算法出色的缩放特性。

英文摘要:

We propose two simple, principled and practical algorithms that enjoy provable scaling laws for the test-time compute of large language models (LLMs). The first one is a two-stage knockout-style algorithm: given an input problem, it first generates multiple candidate solutions, and then aggregate them via a knockout tournament for the final output. Assuming that the LLM can generate a correct solution with non-zero probability and do better than a random guess in comparing a pair of correct and incorrect solutions, we prove theoretically that the failure probability of this algorithm decays to zero exponentially or by a power law (depending on the specific way of scaling) as its test-time compute grows. The second one is a two-stage league-style algorithm, where each candidate is evaluated by its average win rate against multiple opponents, rather than eliminated upon loss to a single opponent. Under analogous but more robust assumptions, we prove that its failure probability also decays to zero exponentially with more test-time compute. Both algorithms require a black-box LLM and nothing else (e.g., no verifier or reward model) for a minimalistic implementation, which makes them appealing for practical applications and easy to adapt for different tasks. Through extensive experiments with diverse models and datasets, we validate the proposed theories and demonstrate the outstanding scaling properties of both algorithms.

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

↑