2025-04-02 · 专家 · 机器学习 · 自然语言处理

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

这篇论文研究了在大型语言模型(LLM)推理中,如何通过平衡解决方案生成和验证来优化测试时的计算扩展。

更新于 2025-04-02。作者:Nishad Singhi、Hritik Bansal、Arian Hosseini、Aditya Grover、Kai-Wei Chang、Marcus Rohrbach、Anna Rohrbach。

中文摘要

大规模测试时计算扩展已成为增强大型语言模型(LLMs)推理能力的关键策略,尤其是在像数学问题解决这样的任务中。传统方法,即自洽性(SC),生成多个问题的解决方案,并通过多数投票选择最常见的答案。另一种常见的方法是使用奖励模型(验证器)为每个解决方案评分,并选择最好的一个。近年来,在生成奖励模型(GenRM)方面的最新进展将验证重新定义为下一个标记的预测任务,从而实现了沿新轴的推理时间扩展。具体来说,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.

解读

一句话总结

这篇论文研究了在大型语言模型(LLM)推理中,如何通过平衡解决方案生成和验证来优化测试时的计算扩展。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt