Skip to main content
QUICK REVIEW

[Paper 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 Science3 citations
TL;DR

LLaMA-Berry proposes a novel framework combining Self-Refine with Monte Carlo Tree Search (SR-MCTS) and a Pairwise Preference Reward Model (PPRM) to enhance mathematical reasoning in LLMs. By using iterative rewriting and Enhanced Borda Count-based global ranking of solution preferences, it achieves state-of-the-art performance on Olympiad-level math benchmarks like AIME24 and AMC23, outperforming ToT and rStar without further fine-tuning.

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.

Motivation & Objective

  • To address the limitations of greedy and step-wise search in complex mathematical reasoning, especially at Olympiad levels.
  • To overcome the inefficiency and local optima issues of iterative self-refine methods by integrating them with MCTS for broader solution space exploration.
  • To model solution quality using pairwise preferences rather than scalar rewards, addressing non-i.i.d. and variable scoring distributions in math problems.
  • To enable high-performance reasoning in LLaMA-3.1-8B without further fine-tuning, using only self-critique and rewriting.
  • To develop a scalable, globally consistent ranking system for mathematical solutions using Enhanced Borda Count (EBC).

Proposed method

  • Introduces SR-MCTS, a Markov Decision Process where each reasoning path is a state and self-refine is an optimization action, enabling MCTS to explore solution paths efficiently.
  • Employs a Pairwise Preference Reward Model (PPRM) inspired by RLHF to compare solution pairs and model local preference relations.
  • Uses the Enhanced Borda Count (EBC) method to aggregate pairwise preferences into a global ranking score, ensuring transitive and consistent solution ordering.
  • Combines global EBC scores with local MCTS node values via a weighted Q-value: $ Q(s^{ackprime}) = \alpha Q_g(s^{ackprime}) + (1-\alpha)Q_l(s^{ackprime}) $.
  • Applies a dynamic pruning rule and UCB1-based selection in MCTS to balance exploration and exploitation during search.
  • Uses a three-stage prompt pipeline: generate initial solution, critique it with self-reflection, then rewrite it for improvement.
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.

Experimental results

Research questions

  • RQ1Can iterative self-refine be effectively integrated into MCTS to improve search efficiency and solution quality in mathematical reasoning?
  • RQ2Does pairwise preference modeling with EBC outperform scalar reward modeling in handling non-i.i.d. and variable scoring distributions in math problems?
  • RQ3Can LLaMA-3.1-8B achieve Olympiad-level reasoning performance without further fine-tuning using only self-critique and search-based optimization?
  • RQ4How does SR-MCTS with PPRM compare to ToT and rStar in search efficiency and solution accuracy on advanced benchmarks?
  • RQ5To what extent does the Enhanced Borda Count method stabilize and improve global solution ranking in complex reasoning tasks?

Key findings

  • LLaMA-Berry achieves state-of-the-art performance on the AIME24 benchmark, significantly outperforming ToT and rStar without any additional fine-tuning.
  • On the AMC23 benchmark, the method demonstrates superior solution quality and search efficiency compared to existing search-based methods.
  • The framework improves the performance of LLaMA-3.1-8B on the Graduate-level GPQA Diamond benchmark to a level comparable to proprietary models.
  • The use of PPRM with EBC reduces scoring variability and enables consistent global ranking of solutions, even with non-i.i.d. reward distributions.
  • SR-MCTS achieves higher search efficiency than baseline methods by enabling non-greedy, path-wise exploration with self-refine as the optimization action.
  • The case study shows that iterative self-reflection and rewriting correct critical errors, such as misapplying percentage increases, leading to correct final answers.
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

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.