arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.09014cs.CL
收藏

跨并行样本推理:面向大语言模型推理的样本集聚合器学习

Learning to Reason Across Parallel Samples for LLM Reasoning

CUNY Grad Center(纽约大学研究生中心);Princeton University(普林斯顿大学);BMCC(布鲁克林社区学院);CCNY(城市学院);New York University(纽约大学)

Jianing Qi, Xi Ye, Hao Tang, Zhigang Zhu, Eunsol Choi

AI总结:

本文提出训练紧凑的样本集聚合器(SSA),通过强化学习优化多样本拼接序列的答案准确性,在五个推理数据集上超越多数投票和更大规模的重排序模型,并展现出良好的泛化能力。

摘要:

扩展测试时计算为大型语言模型(LLMs)带来了显著的性能提升。通过采样多个答案并启发式地聚合这些答案(例如,通过多数投票或使用验证器对答案进行排序),可以在数学领域获得一致的性能提升。在本文中,我们提出了一种利用这种多样本集的新方法。我们训练了一个紧凑的LLM,称为样本集聚合器(SSA),它接收多个样本的拼接序列并输出最终答案,通过强化学习优化其答案准确性。在五个推理数据集上的实验证明了SSA的有效性和效率。值得注意的是,在MATH数据集上,SSA相比朴素多数投票在pass@5上提升了8%。此外,我们的3B规模的SSA超越了使用更大的72B过程奖励模型的基于模型的重新排序方法。我们的分析还显示了SSA在样本集大小、基础模型家族和规模以及任务上具有良好的泛化能力。通过将LLM分为生成答案的LLM和分析并聚合样本答案的LLM,我们的方法可以轻松高效地与顶级黑盒模型的输出协同工作。

英文摘要:

Scaling test-time compute brings substantial performance gains for large language models (LLMs). By sampling multiple answers and heuristically aggregate their answers (e.g., either through majority voting or using verifiers to rank the answers), one can achieve consistent performance gains in math domains. In this paper, we propose a new way to leverage such multiple sample set. We train a compact LLM, called Sample Set Aggregator (SSA), that takes a concatenated sequence of multiple samples and output the final answer, optimizing it for the answer accuracy with reinforcement learning. Experiments on five reasoning datasets demonstrate both the efficacy and efficiency of SSA. Notably, SSA improves over naive majority voting by 8% pass@5 on MATH. Furthermore, our 3B SSA surpasses model-based re-ranking with a much larger 72B process reward model. Our analysis also shows promising generalization ability of SSA, across sample set sizes, base model families and scales, and tasks. By separating LLMs to generate answers and LLMs to analyze and aggregate sampled answers, our approach can work with the outputs from premier black box models easily and efficiently.

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

↑