Skip to main content
QUICK REVIEW

[论文解读] LLaMA-Berry: Pairwise Optimization for O1-like Olympiad-Level Mathematical Reasoning

Di Zhang, Jianbo Wu|arXiv (Cornell University)|Oct 3, 2024
Intelligent Tutoring Systems and Adaptive LearningComputer Science被引用 3
一句话总结

LLaMA-Berry 提出了一种新颖的框架,结合 Self-Refine 与蒙特卡洛树搜索(SR-MCTS),并引入成对偏好奖励模型(PPRM),以提升大语言模型在数学推理方面的能力。通过迭代重写与基于增强 Borda 计数的全局解题偏好排序,该方法在 AIME24 和 AMC23 等奥林匹克级别数学基准测试中实现了最先进性能,且无需进一步微调,优于 ToT 和 rStar。

ABSTRACT

This paper presents an advanced mathematical problem-solving framework, LLaMA-Berry, for enhancing the mathematical reasoning ability of Large Language Models (LLMs). The framework combines Monte Carlo Tree Search (MCTS) with iterative Self-Refine to optimize the reasoning path and utilizes a pairwise reward model to evaluate different paths globally. By leveraging the self-critic and rewriting capabilities of LLMs, Self-Refine applied to MCTS (SR-MCTS) overcomes the inefficiencies and limitations of conventional step-wise and greedy search algorithms by fostering a more efficient exploration of solution spaces. Pairwise Preference Reward Model~(PPRM), inspired by Reinforcement Learning from Human Feedback (RLHF), is then used to model pairwise preferences between solutions, utilizing an Enhanced Borda Count (EBC) method to synthesize these preferences into a global ranking score to find better answers. This approach addresses the challenges of scoring variability and non-independent distributions in mathematical reasoning tasks. The framework has been tested on general and advanced benchmarks, showing superior performance in terms of search efficiency and problem-solving capability compared to existing methods like ToT and rStar, particularly in complex Olympiad-level benchmarks, including GPQA, AIME24 and AMC23.

研究动机与目标

  • 为解决在复杂数学推理,尤其是奥林匹克级别下,贪婪策略与逐步搜索方法的局限性。
  • 通过将迭代式自我修正方法与 MCTS 结合,克服其效率低下与陷入局部最优的问题,实现对解空间的更广泛探索。
  • 采用成对偏好而非标量奖励来建模解题质量,以应对数学问题中非独立同分布及可变评分分布的问题。
  • 仅通过自我批判与重写,无需进一步微调,即在 LLaMA-3.1-8B 上实现高性能推理。
  • 利用增强 Borda 计数(EBC)开发一种可扩展且全局一致的数学解题排序系统。

提出的方法

  • 提出 SR-MCTS,一种马尔可夫决策过程,其中每个推理路径为一个状态,自我修正作为优化动作,使 MCTS 能够高效探索解题路径。
  • 采用受 RLHF 启发的成对偏好奖励模型(PPRM),用于比较解题对并建模局部偏好关系。
  • 使用增强 Borda 计数(EBC)方法,将成对偏好聚合为全局排名得分,确保解题顺序的传递性与一致性。
  • 通过加权 Q 值将全局 EBC 得分与局部 MCTS 节点值相结合:$ Q(s^{ackprime}) = \alpha Q_g(s^{ackprime}) + (1-\alpha)Q_l(s^{ackprime}) $。
  • 在 MCTS 中应用动态剪枝规则与基于 UCB1 的选择策略,以在探索与利用之间取得平衡。
  • 采用三阶段提示流水线:生成初始解题方案,通过自我反思进行批判,随后重写以实现改进。
Figure 1: The main pipeline of LLaMA-Berry , where $S_{i}$ stand for problem-solving solutions and $C_{i}$ stands for critiques. This Pipeline consists of four phases detailed in 2.2 , including Selection, Expansion, Evaluation and Backpropagation.
Figure 1: The main pipeline of LLaMA-Berry , where $S_{i}$ stand for problem-solving solutions and $C_{i}$ stands for critiques. This Pipeline consists of four phases detailed in 2.2 , including Selection, Expansion, Evaluation and Backpropagation.

实验结果

研究问题

  • RQ1迭代式自我修正能否有效整合进 MCTS,以提升数学推理中的搜索效率与解题质量?
  • RQ2在处理数学问题中非独立同分布及可变评分分布时,使用 EBC 的成对偏好建模是否优于标量奖励建模?
  • RQ3LLaMA-3.1-8B 是否仅通过自我批判与基于搜索的优化,即可在无需进一步微调的情况下实现奥林匹克级别推理性能?
  • RQ4SR-MCTS 搭配 PPRM 在先进基准测试中,与 ToT 和 rStar 相比,在搜索效率与解题准确率方面表现如何?
  • RQ5增强 Borda 计数方法在复杂推理任务中,对全局解题排序的稳定性和改进程度如何?

主要发现

  • LLaMA-Berry 在 AIME24 基准测试中实现了最先进性能,显著优于 ToT 和 rStar,且无需任何额外微调。
  • 在 AMC23 基准测试中,该方法展现出更优的解题质量与更高的搜索效率,优于现有基于搜索的方法。
  • 该框架将 LLaMA-3.1-8B 在研究生级 GPQA Diamond 基准测试中的表现提升至与专有模型相当的水平。
  • 采用 PPRM 与 EBC 能够降低评分变异性,并在非独立同分布奖励分布下实现一致的全局解题排序。
  • SR-MCTS 通过将自我修正作为优化动作,实现非贪婪的路径式探索,显著提升了搜索效率。
  • 案例研究显示,迭代式自我反思与重写能够纠正关键错误,例如错误地应用百分比增长,最终得出正确答案。
Figure 2: (Left) Self-Refine Process and (Right) Preference Prediction process of PPRM
Figure 2: (Left) Self-Refine Process and (Right) Preference Prediction process of PPRM

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。