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

Ye Tian, Baolin Peng, Linfeng Song, Lifeng Jin, Dian Yu, Lei Han, Haitao Mi, Dong Yu

Executive Summary

AlphaLLM is a novel framework designed to enhance the reasoning capabilities of Large Language Models (LLMs) through a self-contained loop of "imagination" (prompt synthesis), "searching" (Monte Carlo Tree Search), and "criticizing" (multi-model feedback). By adapting AlphaGo-style search mechanisms to natural language tasks, AlphaLLM significantly boosts performance on complex mathematical benchmarks—such as GSM8K and MATH—without relying on additional human annotations.

The Challenge of Self-Improvement

While LLMs demonstrate impressive capabilities, they frequently struggle with tasks requiring multi-step reasoning and long-term planning. Traditionally, improving these models necessitates massive amounts of high-quality, human-annotated data, which is both expensive and finite.

The authors identify three major hurdles in enabling LLMs to self-improve:

  1. Data Scarcity: Training models becomes difficult when expert-labeled examples are exhausted.
  2. Search Efficiency: The "search space" of natural language is virtually infinite. Searching token-by-token is computationally intractable due to massive vocabulary sizes.
  3. Imperfect Feedback: Unlike games with clear win/loss states (e.g., Go), language tasks often involve subjective or nuanced correctness, making it difficult for a model to evaluate partial reasoning steps.

The AlphaLLM Framework

To overcome these challenges, AlphaLLM employs a three-part architecture: Imagination, Searching, and Criticizing.

The AlphaLLM framework loop: Imagination, Searching, and Criticizing.

1. Imagination (Data Synthesis)

The model generates its own new training prompts by transforming existing expert data. This ensures a diverse and challenging training set without requiring further human intervention.

2. $\eta$MCTS (Efficient Searching)

This is the core engine of the framework. To handle the vast search space of language, the authors introduce Option-level MCTS.

Comparison of search node levels, highlighting the Option-level approach used in AlphaLLM.

Instead of searching token-by-token, the model searches at the level of "options" (sequences of tokens representing a sub-task or a logical step). Key features of $\eta$MCTS include:

  • Adaptive Branching: Dynamically decides how many "child" paths to explore based on a node's importance, focusing compute on pivotal reasoning steps.
  • State Merging: Identifies and merges similar reasoning paths to avoid redundant computation.
  • Fast Rollout: Utilizes a smaller, specialized model (Abel-7B) to quickly simulate the end of a reasoning path and estimate its success.

3. Criticizing (The Trio of Critics)

To provide precise feedback during the search, AlphaLLM uses three distinct models:

  • Value Function: Estimates the expected reward from a current state.
  • Process Reward Model (PRM): Evaluates the correctness of individual reasoning steps.
  • Outcome Reward Model (ORM): Evaluates the final result. For complex math, the ORM is augmented with external tools (like Python/Sympy) to verify calculations.

Key Insights and Results

The core innovation of AlphaLLM is using search as a teacher. MCTS discovers reasoning trajectories that are significantly higher quality than standard model sampling. These discovered paths then serve as high-quality training data for the next iteration of the model. By treating text generation as "options" over a Markov Decision Process, the authors effectively reduce the depth of the search tree, making MCTS viable for language.

The researchers evaluated AlphaLLM on two primary mathematical reasoning benchmarks: GSM8K (grade school math) and MATH (high school competition-level problems). The models were bootstrapped using initial expert datasets to train the critics before entering the self-improvement loop.

AlphaLLM demonstrated dramatic improvements:

  • GSM8K: Starting with a Llama-2-70B base, performance jumped from 57.8% (greedy decoding) to 92.0% after self-improvement and $\eta$MCTS decoding.
  • MATH: Using WizardMath-70B as a base, the model improved from 20.7% to 51.0%, reaching performance levels comparable to GPT-4.
  • Efficiency: The $\eta$MCTS approach achieved better accuracy with significantly fewer rollouts compared to standard re-ranking or self-consistency methods.

Limitations and Future Work

While highly effective, the authors note several areas for future refinement:

  • Static Critics: The critic models currently remain static during the self-improvement phase. Ideally, they should learn and improve alongside the policy model.
  • Prompt Diversity: The method for "imagining" new prompts is relatively simple; advanced synthetic data generation could further boost results.
  • Domain Specificity: The framework is highly effective for math but remains untested on subjective domains like creative writing or open-ended coding.
  • Inference Cost: $\eta$MCTS is more computationally expensive than greedy decoding. Bridging this gap so the model performs equally well without search during inference is a key ongoing challenge.

Summary updated

BibTeX
@inproceedings{tian2024toward,
  author = {Ye Tian and Baolin Peng and Linfeng Song and Lifeng Jin and Dian Yu and Lei Han 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