Accelerating Large Language Model Reasoning via Speculative Search

Zhihai Wang, Jie Wang, Jilai Pan, Xilin Xia, Huiling Zhen, Mingxuan Yuan, Jianye Hao, Feng Wu

Tree-search-based (TSB) reasoning methods like "Tree-of-Thoughts" have turned Large Language Models (LLMs) into formidable problem solvers. By exploring multiple intermediate reasoning steps—or "thoughts"—these models can navigate complex math and coding challenges that stymie standard autoregressive generation.

There is just one catch: they are incredibly slow. Generating dozens of potential reasoning paths creates a massive computational bottleneck, often increasing latency by several orders of magnitude.

A new paper from researchers at USTC and Huawei, titled "Accelerating Large Language Model Reasoning via Speculative Search," introduces a framework called SpecSearch that tackles this bottleneck head-on. By combining bi-level speculation with a clever rejection mechanism, they’ve managed to double reasoning speeds without sacrificing quality.

TL;DR

SpecSearch accelerates complex LLM reasoning by using a small model to "draft" intermediate reasoning steps (thoughts) while a large model verifies and corrects them. By operating at both the thought and token levels, it achieves up to a 2.12× speedup over state-of-the-art methods while maintaining the high reasoning accuracy of much larger models.

The Bottleneck of Reasoning

Current high-performance reasoning relies on "slow thinking" processes. Instead of predicting the next token, the model builds a search tree of intermediate steps. However, as illustrated below, the authors found that thought generation consumes over 91% of the total runtime in these frameworks.

Latency and bottleneck analysis of tree-search-based reasoning methods.

Standard acceleration techniques, like speculative decoding, usually work at the token level—the small model predicts the next few words, and the large model checks if they match exactly. This is poorly suited for reasoning because:

  1. Exact matches don't matter: A small model might produce a mathematically correct "thought" that uses slightly different wording than the large model. Standard speculative decoding would reject this, wasting time.
  2. Structural mismatch: Search algorithms think in "nodes" (entire sentences or steps), not individual tokens.

SpecSearch introduces a draft-evaluate-reject-correct paradigm that operates at two scales:

  1. Thought-Level Drafting: A small model (e.g., Qwen-7B) generates multiple potential reasoning thoughts in parallel.
  2. Contextual Evaluation: Instead of checking for exact token matches, SpecSearch uses a Process Reward Model (PRM) to score the quality of the drafted thoughts.
  3. Quality-Preserving Rejection: This is the "secret sauce." The system maintains a dynamic, step-wise threshold based on the large model's historical performance (using an Exponential Moving Average). If a small model's thought scores above this threshold, it’s accepted—even if the large model would have phrased it differently.
  4. Token-Level Correction: If a thought is rejected for being low-quality, the large model takes over. It regenerates the thought using standard, lossless speculative decoding to ensure the final output remains high-quality.

Key Insights: Small Models are "Smart Enough"

The authors observed that in multi-step reasoning, some steps are inherently easier than others. Their analysis showed that a significant portion of thoughts from a smaller 7B model actually outperformed the average score of a 72B model.

Distribution of small model reward values and accuracy relative to large model usage.

SpecSearch exploits this by letting the small model handle the "easy" parts. Furthermore, reasoning quality naturally tends to decline as a model gets deeper into a problem. By using a dynamic threshold rather than a fixed one, SpecSearch adapts to the difficulty of the current reasoning step. By moving the "verification" from exact token matching to PRM-based quality scoring, the system achieves much higher acceptance rates for the small model’s drafts.

Datasets and Key Results

The researchers evaluated SpecSearch on rigorous benchmarks including GSM8K, MATH, AIME, Olympiad Bench, and HumanEval, primarily using Qwen2.5 and Llama-3 model families.

The performance gains are substantial across the board:

  • Speed: SpecSearch achieved up to 3.35× speedup over standard autoregressive baselines and up to 2.12× speedup over Speculative Sampling (SpS) on the MATH dataset.
  • Accuracy: The framework preserved nearly identical accuracy to the full-sized large model. On the Llama-3 model specifically, SpecSearch actually improved reasoning accuracy on the MATH dataset (from 62% to 64%).
  • Versatility: The method proved compatible with various search strategies (Beam Search and MCTS) and different reward models, proving it isn't over-fitted to one specific setup.

Limitations and Future Work

While SpecSearch is a major step forward, the authors note a few areas for improvement. The system is only as good as its evaluator; if the Process Reward Model is "tricked" by a plausible-sounding but incorrect thought, the rejection mechanism might fail to catch an error. Additionally, the mathematical guarantees for "undegraded quality" rely on the assumption that thought qualities follow a normal distribution, which may not always hold in the wild. Finally, running a PRM for every drafted thought adds some computational overhead that needs to be carefully managed.

For engineers and researchers building the next generation of "thinking" LLMs, SpecSearch provides a clear blueprint: stop speculating on tokens, and start speculating on thoughts.

Summary updated

BibTeX
@inproceedings{wang2025accelerating,
  author = {Zhihai Wang and Jie Wang and Jilai Pan and Xilin Xia and Huiling Zhen and Mingxuan Yuan and Jianye HAO and Feng Wu},
  title = {{Accelerating Large Language Model Reasoning via Speculative Search}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=oq0t5BXilT},
}
Figure