Accelerating Large Language Model Reasoning via Speculative Search

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Zhihai, Wang, Jie, Pan, Jilai, Xia, Xilin, Zhen, Huiling, Yuan, Mingxuan, Hao, Jianye, Wu, Feng
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912391512457216
author Wang, Zhihai
Wang, Jie
Pan, Jilai
Xia, Xilin
Zhen, Huiling
Yuan, Mingxuan
Hao, Jianye
Wu, Feng
author_facet Wang, Zhihai
Wang, Jie
Pan, Jilai
Xia, Xilin
Zhen, Huiling
Yuan, Mingxuan
Hao, Jianye
Wu, Feng
contents Tree-search-based reasoning methods have significantly enhanced the reasoning capability of large language models (LLMs) by facilitating the exploration of multiple intermediate reasoning steps, i.e., thoughts. However, these methods suffer from substantial inference latency, as they have to generate numerous reasoning thoughts, severely limiting LLM applicability. To address this challenge, we propose a novel Speculative Search (SpecSearch) framework that significantly accelerates LLM reasoning by optimizing thought generation. Specifically, SpecSearch utilizes a small model to strategically collaborate with a large model at both thought and token levels, efficiently generating high-quality reasoning thoughts. The major pillar of SpecSearch is a novel quality-preserving rejection mechanism, which effectively filters out thoughts whose quality falls below that of the large model's outputs. Moreover, we show that SpecSearch preserves comparable reasoning quality to the large model. Experiments on both the Qwen and Llama models demonstrate that SpecSearch significantly outperforms state-of-the-art approaches, achieving up to 2.12$\times$ speedup with comparable reasoning quality.
format Preprint
id arxiv_https___arxiv_org_abs_2505_02865
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Accelerating Large Language Model Reasoning via Speculative Search
Wang, Zhihai
Wang, Jie
Pan, Jilai
Xia, Xilin
Zhen, Huiling
Yuan, Mingxuan
Hao, Jianye
Wu, Feng
Computation and Language
Artificial Intelligence
Tree-search-based reasoning methods have significantly enhanced the reasoning capability of large language models (LLMs) by facilitating the exploration of multiple intermediate reasoning steps, i.e., thoughts. However, these methods suffer from substantial inference latency, as they have to generate numerous reasoning thoughts, severely limiting LLM applicability. To address this challenge, we propose a novel Speculative Search (SpecSearch) framework that significantly accelerates LLM reasoning by optimizing thought generation. Specifically, SpecSearch utilizes a small model to strategically collaborate with a large model at both thought and token levels, efficiently generating high-quality reasoning thoughts. The major pillar of SpecSearch is a novel quality-preserving rejection mechanism, which effectively filters out thoughts whose quality falls below that of the large model's outputs. Moreover, we show that SpecSearch preserves comparable reasoning quality to the large model. Experiments on both the Qwen and Llama models demonstrate that SpecSearch significantly outperforms state-of-the-art approaches, achieving up to 2.12$\times$ speedup with comparable reasoning quality.
title Accelerating Large Language Model Reasoning via Speculative Search
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2505.02865