Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Guided Speculative Inference for Efficient Test-Time Alignment of LLMs

About

We propose Guided Speculative Inference (GSI), a novel algorithm for efficient reward-guided decoding in large language models. GSI combines soft best-of-$n$ test-time scaling with a reward model $r(x,y)$ and speculative samples from a small auxiliary model $\pi_S(y\mid x)$. We provably approximate both the optimal tilted policy $\pi_{\beta,B}(y\mid x) \propto \pi_B(y\mid x)\exp(\beta\,r(x,y))$ of soft best-of-$n$ under the base model $\pi_B$, as well as the expected reward under the optimal policy. In experiments on reasoning benchmarks (MATH500, OlympiadBench, Minerva Math, MMLU-STEM, GSM8K) and across different model families, our method achieves higher accuracy than standard soft best-of-$n$ with $\pi_S$ and reward-guided speculative decoding (Liao et al., 2025), and in certain settings even outperforms soft best-of-$n$ with $\pi_B$, while reducing end-to-end latency by up to $28\%$. The code is available at https://github.com/j-geuter/GSI .

Jonathan Geuter, Youssef Mroueh, David Alvarez-Melis• 2025

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningMATH 500
Accuracy (Acc)84.1
543
Multi-task Language UnderstandingMMLU
MMLU Accuracy78.3
442
Multitask Language UnderstandingMMLU
Accuracy54.1
263
Mathematical ReasoningOlympiadBench
Accuracy42
213
Grade School Math ReasoningGSM8K
Accuracy (GSM8K)94.3
138
Mathematical ReasoningOlympiadBench
Accuracy40.8
82
General ReasoningAverage (MATH500, OlympiadBench, Minerva, MMLU, GSM8K)
Average Accuracy67.2
20
Showing 7 of 7 rows

Other info

Follow for update