TL;DR
The paper introduces LE-MCTS (Language model Ensemble with Monte Carlo Tree Search), a novel framework that ensembles Large Language Models (LLMs) at the process level rather than the token or output level. By treating step-by-step reasoning as a Markov Decision Process and guiding a tree search with a process-based reward model, LE-MCTS dynamically mixes and matches the best reasoning steps from different LLMs. This approach yields significant performance gains on complex mathematical reasoning benchmarks, outperforming both single-model decoding strategies and state-of-the-art ensemble methods.
What Problem Does This Paper Address?
While open-source LLMs have advanced significantly, individual models still exhibit distinct strengths and weaknesses. Ensembling multiple models is a natural solution, but traditional ensembling techniques hit major roadblocks when applied to complex reasoning:
- Token-level ensembling (e.g., averaging output probabilities) requires models to share the same vocabulary and architecture, or relies on complex vocabulary projection matrices.
- Output-level ensembling (e.g., ranking or fusing full answers) operates on an "all-or-nothing" basis; if every model generates a flawed reasoning chain somewhere in its response, the ensemble cannot produce a correct answer.
To bridge this gap, the authors propose ensembling at the process level (step-by-step). By breaking down a problem into individual sentences or steps, the system can catch and correct errors early, combining the unique expertise of different LLMs on a per-step basis.
Methods
LE-MCTS formulates step-by-step reasoning as a Markov Decision Process (MDP), where a state is the sequence of intermediate reasoning steps generated so far, and an action is the generation of the next step by a selected LLM.
The framework uses a modified Monte Carlo Tree Search (MCTS) consisting of four main phases per iteration:
- Selection: The algorithm navigates from the root node down to a leaf node using the Upper Confidence bounds applied to Trees (UCT) algorithm to balance exploration and exploitation.
- Expansion: A language model is randomly selected from a predefined pool (e.g., LLaMA-3, Gemma-2, Rho-Math) to greedily decode the next reasoning step until a newline character (
\n) is reached. - Evaluation: Instead of performing expensive rollouts to the end of the problem, a pre-trained Process-based Reward Model (PRM)—specifically Math Shepherd—directly evaluates and scores the correctness of the newly generated step.
- Optimistic Backpropagation: Traditional MCTS averages the rewards of child nodes. LE-MCTS introduces optimistic backpropagation, which updates a parent node's value based on the maximum value of its children. This design choice reflects the intuition that an intermediate reasoning path is highly valuable as long as at least one LLM in the pool knows how to successfully continue it.
Datasets
The authors evaluated LE-MCTS across five widely recognized mathematical reasoning benchmarks:
- GSM8K: Grade school math word problems.
- MATH (MATH500 subset): Highly challenging, competition-level math problems.
- SVAMP & ASDiv: Math word problems with simple variations to test robustness.
- MQA (MathQA): GRE- and GMAT-level multiple-choice math problems requiring formal operation programs.
Key Insights and Ideas
- The Power of Optimism: Switching from standard average-based backpropagation to optimistic (max-based) backpropagation consistently boosted accuracy across all datasets. It prevents a single bad model generation from penalizing an otherwise excellent reasoning path.
- Depth Over Breadth: LE-MCTS employs a custom full-expansion pruning criterion. If a node's value is already close to its best child's value, it stops expanding horizontally and forces the search to go deeper. This is critical for complex competition math where long, unbroken reasoning chains are required.
- Cheap Base Model Selection: Not all base models help an ensemble; weak models can actively degrade performance. To solve this without wasting compute on the target datasets, the authors used GPT-4o to generate 16 synthetic problems per dataset. Benchmarking the base LLMs on this tiny synthetic set successfully identified the optimal "Top-3" models for the final ensemble.
Key Results
LE-MCTS consistently outperformed single-model decoding baselines (Greedy, Self-Consistency, Beam Search, Best-of-N) and top-tier ensemble methods (LLM-Blender, Mixture-of-Agents, EVA).
- MATH Dataset: LE-MCTS achieved 45.2% accuracy, outperforming the second-best ensemble method (Best-of-Ensemble) by 3.6%.
- MQA Dataset: It achieved 71.1% accuracy, a 4.3% improvement over the runner-up.
- Overall Performance: Across all five benchmarks, LE-MCTS delivered an average accuracy improvement of 3.9% over the next-best ensembling approach, proving particularly potent on complex, multi-step reasoning tasks.
Limitations and Future Work
- PRM Dependency: The framework is entirely dependent on the quality of the process-based reward model. If the PRM fails to score steps accurately or encounters out-of-distribution math notation, LE-MCTS can be led down incorrect paths.
- Computational Overhead: Running 200 MCTS iterations is resource-intensive. While highly effective for hard problems (MATH, MQA), it introduces unnecessary latency and compute costs for simpler grade-school math (ASDiv, SVAMP) where simpler methods perform comparably.
- Static Pool Selection: While the synthetic data benchmarking trick works well, developing fully automated, dynamic algorithms to select the best base models on the fly remains an open challenge.
Summary updated