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

何时求解,何时验证:面向 LLM 推理的计算最优问题求解与生成式验证

When To Solve, When To Verify: Compute-Optimal Problem Solving and Generative Verification for LLM Reasoning

TU Darmstadt(图恩-达姆施塔特技术大学);UCLA(加州大学洛杉矶分校);Google Deepmind(谷歌DeepMind);Mila(蒙特利尔人工智能研究院)

Nishad Singhi, Hritik Bansal, Arian Hosseini, Aditya Grover, Kai-Wei Chang, Marcus Rohrbach, Anna Rohrbach

AI总结:

该研究在固定推理预算下比较 SC 与 GenRM,推导 GenRM 推理缩放定律,发现计算最优策略通常应更积极地扩展解生成而非验证。

摘要:

扩展测试时计算已成为提升大型语言模型(LLM)推理能力的关键策略,尤其是在数学问题求解等任务中。传统方法 Self-Consistency(SC,自洽性)会为一个问题生成多个解,并通过多数投票选择最常见的答案。另一种常见方法是使用奖励模型(验证器)为每个解打分,并选择最佳解。近期 Generative Reward Models(GenRM,生成式奖励模型)的进展将验证重新表述为下一个 token 预测任务,从而能够沿一个新的轴扩展推理。具体而言,GenRM 会生成多条验证思维链来为每个解打分。在有限推理预算下,这带来了一个根本权衡:应当把预算用于通过 SC 扩展解的数量,还是生成更少的解并将计算分配给通过 GenRM 进行验证?为解决该问题,我们在固定推理预算下评估 GenRM 与 SC。有趣的是,我们发现,在多种模型和数据集上,对于大多数实际推理预算,SC 比 GenRM 更具计算效率。例如,GenRM 最早也要在消耗多达 8 倍推理计算后才能追平 SC,并且要显著更多的计算才能超过它。此外,我们推导了 GenRM 范式的推理缩放定律,揭示计算最优推理更倾向于积极扩展解生成,而不是扩展验证次数。我们的工作为通过平衡解生成与验证来优化测试时缩放提供了实践指导。代码可在 https://github.com/nishadsinghi/sc-genrm-scaling 获取。

英文摘要:

Scaling test-time compute has emerged as a key strategy for enhancing the reasoning capabilities of large language models (LLMs), particularly in tasks like mathematical problem-solving. A traditional approach, Self-Consistency (SC), generates multiple solutions to a problem and selects the most common answer via majority voting. Another common method involves scoring each solution with a reward model (verifier) and choosing the best one. Recent advancements in Generative Reward Models (GenRM) reframe verification as a next-token prediction task, enabling inference-time scaling along a new axis. Specifically, GenRM generates multiple verification chains-of-thought to score each solution. Under a limited inference budget, this introduces a fundamental trade-off: should you spend the budget on scaling solutions via SC or generate fewer solutions and allocate compute to verification via GenRM? To address this, we evaluate GenRM against SC under a fixed inference budget. Interestingly, we find that SC is more compute-efficient than GenRM for most practical inference budgets across diverse models and datasets. For instance, GenRM first matches SC after consuming up to 8x the inference compute and requires significantly more compute to outperform it. Furthermore, we derive inference scaling laws for the GenRM paradigm, revealing that compute-optimal inference favors scaling solution generation more aggressively than scaling the number of verifications. Our work provides practical guidance on optimizing test-time scaling by balancing solution generation and verification. The code is available at https://github.com/nishadsinghi/sc-genrm-scaling.

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

↑