arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.15240cs.LG
收藏

生成式验证器:将奖励建模视为下一词预测

Generative Verifiers: Reward Modeling as Next-Token Prediction

Google DeepMind(谷歌DeepMind);University of Toronto(多伦多大学);Carnegie Mellon University(卡内基梅隆大学)

Lunjun Zhang, Arian Hosseini, Hritik Bansal, Mehran Kazemi, Aviral Kumar, Rishabh Agarwal

AI总结:

提出生成式验证器(GenRM),用下一词预测目标联合训练验证与解生成,优于判别式验证器,在算法任务和GSM8K上显著提升Best-of-N性能。

摘要:

验证器或奖励模型常被用于提升大型语言模型(LLM)的推理性能。一种常见的方法是Best-of-N方法,即由LLM生成的N个候选解由验证器排序,并选择最佳解。尽管基于LLM的验证器通常被训练为判别式分类器来对解进行评分,但它们并未利用预训练LLM的文本生成能力。为克服此局限,我们转而提出使用普遍的下一词预测目标联合训练验证器,同时进行验证与解生成。与标准验证器相比,此类生成式验证器(GenRM)能受益于LLM的若干优势:它们能与指令微调无缝集成,支持思维链推理,并可通过多数投票利用额外的测试时计算以实现更好的验证。我们证明GenRM优于判别式验证器、DPO验证器以及LLM-as-a-Judge,在Best-of-N中带来显著性能提升,即在算法任务上从5%提升至45.3%,在GSM8K上从73%提升至93.4%。在易到难泛化设置中,我们观察到在MATH上从28%提升至44.6%,在MMLU抽象代数上从37.9%提升至53.5%。此外,我们发现使用合成验证理由训练GenRM足以识别数学问题中的细微错误。最后,我们证明GenRM在模型大小和测试时计算方面具有良好的可扩展性。

英文摘要:

Verifiers or reward models are often used to enhance the reasoning performance of large language models (LLMs). A common approach is the Best-of-N method, where N candidate solutions generated by the LLM are ranked by a verifier, and the best one is selected. While LLM-based verifiers are typically trained as discriminative classifiers to score solutions, they do not utilize the text generation capabilities of pretrained LLMs. To overcome this limitation, we instead propose training verifiers using the ubiquitous next-token prediction objective, jointly on verification and solution generation. Compared to standard verifiers, such generative verifiers (GenRM) can benefit from several advantages of LLMs: they integrate seamlessly with instruction tuning, enable chain-of-thought reasoning, and can utilize additional test-time compute via majority voting for better verification. We demonstrate that GenRM outperforms discriminative, DPO verifiers, and LLM-as-a-Judge, resulting in large performance gains with Best-of-N, namely 5% $\rightarrow$ 45.3% on algorithmic tasks and 73% $\rightarrow$ 93.4% on GSM8K. In easy-to-hard generalization settings, we observe improvements of 28% $\rightarrow$ 44.6% on MATH, and 37.9% $\rightarrow$ 53.5% on MMLU abstract algebra. Furthermore, we find that training GenRM with synthetic verification rationales is sufficient to pick out subtle errors on math problems. Finally, we demonstrate that GenRM scales favorably with model size and test-time compute.

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

↑