SpecReason: Fast and Accurate Inference-Time Compute via Speculative Reasoning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Pan, Rui, Dai, Yinwei, Zhang, Zhihao, Oliaro, Gabriele, Jia, Zhihao, Netravali, Ravi
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916741537333248
author Pan, Rui
Dai, Yinwei
Zhang, Zhihao
Oliaro, Gabriele
Jia, Zhihao
Netravali, Ravi
author_facet Pan, Rui
Dai, Yinwei
Zhang, Zhihao
Oliaro, Gabriele
Jia, Zhihao
Netravali, Ravi
contents Recent advances in inference-time compute have significantly improved performance on complex tasks by generating long chains of thought (CoTs) using Large Reasoning Models (LRMs). However, this improved accuracy comes at the cost of high inference latency due to the length of generated reasoning sequences and the autoregressive nature of decoding. Our key insight in tackling these overheads is that LRM inference, and the reasoning that it embeds, is highly tolerant of approximations: complex tasks are typically broken down into simpler steps, each of which brings utility based on the semantic insight it provides for downstream steps rather than the exact tokens it generates. Accordingly, we introduce SpecReason, a system that automatically accelerates LRM inference by using a lightweight model to (speculatively) carry out simpler intermediate reasoning steps and reserving the costly base model only to assess (and potentially correct) the speculated outputs. Importantly, SpecReason's focus on exploiting the semantic flexibility of thinking tokens in preserving final-answer accuracy is complementary to prior speculation techniques, most notably speculative decoding, which demands token-level equivalence at each step. Across a variety of reasoning benchmarks, SpecReason achieves $1.4-3.0\times$ speedup over vanilla LRM inference while improving accuracy by $0.4-9.0\%$. Compared to speculative decoding without SpecReason, their combination yields an additional $8.8-58.0\%$ latency reduction. We open-source SpecReason at https://github.com/ruipeterpan/specreason.
format Preprint
id arxiv_https___arxiv_org_abs_2504_07891
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SpecReason: Fast and Accurate Inference-Time Compute via Speculative Reasoning
Pan, Rui
Dai, Yinwei
Zhang, Zhihao
Oliaro, Gabriele
Jia, Zhihao
Netravali, Ravi
Machine Learning
Artificial Intelligence
Recent advances in inference-time compute have significantly improved performance on complex tasks by generating long chains of thought (CoTs) using Large Reasoning Models (LRMs). However, this improved accuracy comes at the cost of high inference latency due to the length of generated reasoning sequences and the autoregressive nature of decoding. Our key insight in tackling these overheads is that LRM inference, and the reasoning that it embeds, is highly tolerant of approximations: complex tasks are typically broken down into simpler steps, each of which brings utility based on the semantic insight it provides for downstream steps rather than the exact tokens it generates. Accordingly, we introduce SpecReason, a system that automatically accelerates LRM inference by using a lightweight model to (speculatively) carry out simpler intermediate reasoning steps and reserving the costly base model only to assess (and potentially correct) the speculated outputs. Importantly, SpecReason's focus on exploiting the semantic flexibility of thinking tokens in preserving final-answer accuracy is complementary to prior speculation techniques, most notably speculative decoding, which demands token-level equivalence at each step. Across a variety of reasoning benchmarks, SpecReason achieves $1.4-3.0\times$ speedup over vanilla LRM inference while improving accuracy by $0.4-9.0\%$. Compared to speculative decoding without SpecReason, their combination yields an additional $8.8-58.0\%$ latency reduction. We open-source SpecReason at https://github.com/ruipeterpan/specreason.
title SpecReason: Fast and Accurate Inference-Time Compute via Speculative Reasoning
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2504.07891