English

Guided Speculative Inference for Efficient Test-Time Alignment of LLMs

Machine Learning 2026-04-28 v3 Machine Learning

Abstract

We propose Guided Speculative Inference (GSI), a novel algorithm for efficient reward-guided decoding in large language models. GSI combines soft best-of-nn test-time scaling with a reward model r(x,y)r(x,y) and speculative samples from a small auxiliary model πS(yx)\pi_S(y\mid x). We provably approximate both the optimal tilted policy πβ,B(yx)πB(yx)exp(βr(x,y))\pi_{\beta,B}(y\mid x) \propto \pi_B(y\mid x)\exp(\beta\,r(x,y)) of soft best-of-nn under the base model πB\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-nn with πS\pi_S and reward-guided speculative decoding (Liao et al., 2025), and in certain settings even outperforms soft best-of-nn with πB\pi_B, while reducing end-to-end latency by up to 28%28\%. The code is available at https://github.com/j-geuter/GSI .

Keywords

Cite

@article{arxiv.2506.04118,
  title  = {Guided Speculative Inference for Efficient Test-Time Alignment of LLMs},
  author = {Jonathan Geuter and Youssef Mroueh and David Alvarez-Melis},
  journal= {arXiv preprint arXiv:2506.04118},
  year   = {2026}
}

Comments

41 pages, 11 figures. Published at ICLR 2026

R2 v1 2026-07-01T02:59:23.931Z