Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizing

Ye Tian, Baolin Peng, Linfeng Song, Lifeng Jin, Dian Yu, Haitao Mi, Dong Yu · DOI

Abstract

This paper introduces AlphaLLM, a novel framework designed to enable Large Language Models (LLMs) to improve their reasoning capabilities autonomously, bypassing the need for extensive human-annotated data. AlphaLLM integrates an efficient variant of Monte Carlo Tree Search ($\eta$MCTS) with a specialized ensemble of critic models to discover high-quality reasoning trajectories. By utilizing "option-level" search nodes and adaptive branching, the framework significantly enhances search efficiency. Experimental results on mathematical reasoning benchmarks, including GSM8K and MATH, demonstrate that AlphaLLM can elevate open-source models like Llama-2 and WizardMath to performance levels comparable to state-of-the-art proprietary models such as GPT-4.

1. Introduction

While Large Language Models (LLMs) have demonstrated remarkable capabilities, they often struggle with complex, multi-step reasoning tasks that require strategic planning. Improving these models typically necessitates massive volumes of high-quality, human-labeled data, which is both expensive and finite. This work addresses the challenge of "self-play" in language—a concept successful in games like Go but difficult to apply to text due to data scarcity, the astronomical search space of language, and the subjective nature of feedback. AlphaLLM is proposed as a solution to these hurdles, creating a self-improving loop through imagination, searching, and criticizing.

2. The AlphaLLM Framework

The AlphaLLM framework consists of three core components that work in tandem to generate high-quality training data from the model's own explorations.

The AlphaLLM framework integrates Imagination, Searching, and Criticizing components to enable an iterative self-improvement loop.

2.1 Imagination (Prompt Synthesis)

To overcome data scarcity, the "Imagination" component synthesizes new training prompts based on existing real-world data. This ensures the model has access to a diverse and continuous stream of learning examples, allowing it to explore a wider range of problem spaces than those covered by the initial dataset.

2.2 Searching ($\eta$MCTS)

The search process is governed by $\eta$MCTS, a specialized version of Monte Carlo Tree Search tailored for the linguistic domain. A key innovation is the use of option-level search nodes. While token-level search is computationally prohibitive and sentence-level search is often too rigid, option-level search treats logical reasoning steps as single actions, finding an optimal balance of granularity.

Comparison of search node granularities: token-level, sentence-level, and the proposed option-level search used in AlphaLLM.

Furthermore, $\eta$MCTS employs Importance-Based Adaptive Branching. This mechanism dynamically adjusts the number of paths explored based on the calculated "importance" or uncertainty of a node, preventing the search from wasting resources on unproductive trajectories. To further optimize the search tree, AlphaLLM uses heuristic functions to merge semantically similar nodes, preventing redundancy.

2.3 Criticizing (The Trio of Critics)

To provide the precise feedback necessary for reinforcement learning, AlphaLLM utilizes three distinct critic models:

  1. Value Function: Estimates the expected long-term reward from the current state.
  2. Process Reward Model (PRM): Evaluates the correctness of individual reasoning steps.
  3. Outcome Reward Model (ORM): Evaluates the final result. In mathematical domains, the ORM is augmented with external tools like Python and Sympy to verify calculations with absolute certainty.

3. Experimental Results

The researchers evaluated AlphaLLM using Llama-2-70B and WizardMath-70B across two major benchmarks: GSM8K (grade school math) and MATH (high-school competition math).

  • GSM8K: The Llama-2-70B model saw a dramatic improvement, rising from a base accuracy of 57.8% to 92.0% after two rounds of self-improvement.
  • MATH: On the more difficult MATH dataset, WizardMath-70B improved from 20.7% to 51.0%. This performance is particularly notable as it places the model on par with proprietary systems like GPT-4.
  • Efficiency: $\eta$MCTS proved more efficient than standard re-ranking or self-consistency methods, achieving superior results on the MATH dataset while requiring only half the number of rollouts.

4. Discussion and Future Work

AlphaLLM demonstrates that self-improvement in LLMs is a viable path toward achieving expert-level reasoning. However, several avenues for future research remain. Currently, the critic models are static; a co-evolutionary approach where critics improve alongside the policy model could yield even greater gains. Additionally, while the framework excels in mathematics where ground-truth signals are clear, extending these methods to more subjective domains like creative writing or general-purpose coding remains an open challenge. Future iterations may also focus on more sophisticated "capability-aware" prompt synthesis to target specific model weaknesses more effectively.

Summary updated

BibTeX
@inproceedings{tian2024toward,
  author = {Ye Tian and Baolin Peng and Linfeng Song and Lifeng Jin and Dian Yu and Haitao Mi and Dong Yu},
  title = {{Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=tPdJ2qHkOB},
}
Figure