paper-with-me

홈 › Papers

Guided Speculative Inference for Efficient Test-Time Alignment of LLMs

2025-06-04 · Jonathan Geuter, Youssef Mroueh, David Alvarez-Melis

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 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 primary model $\pi_B$. We derive a theoretical bound on the KL divergence between our induced distribution and the optimal policy. In experiments on reasoning benchmarks (MATH500, OlympiadBench, Minerva Math), 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$. The code is available at https://github.com/j-geuter/GSI .

📄 PDF Abstract BibTeX arXiv:2506.04118

Code (1)

j-geuter/gsi 공식 구현

Tasks

Math

Similar Papers 제목 키워드 기반

Reward-Shifted Speculative Sampling Is An Efficient Test-Time Weak-to-Strong Aligner

2025-08-20 · Bolian Li, Yanran Wu, Xinyu Luo, Ruqi Zhang arxiv

Aligning large language models (LLMs) with human preferences has become a critical step in their development. Recent research has increasingly focused on test-time alignment, where additional compute is allocated during …

Fast Best-of-N Decoding via Speculative Rejection

2024-10-26 · Hanshi Sun, Momin Haider, Ruiqi Zhang, Huitao Yang 외

The safe and effective deployment of Large Language Models (LLMs) involves a critical step called alignment, which ensures that the model's responses are in accordance with human preferences. Prevalent alignment techniqu…

Vegas: Self-Speculative Decoding with Verification-Guided Sparse Attention

2026-02-06 · Yikang Yue, Yuqi Xue, Jian Huang arxiv

Long-context large language model (LLM) inference has become the norm for today's AI applications. However, it is severely bottlenecked by the increasing memory demands of its KV cache. Previous works have shown that sel…

CORAL: Learning Consistent Representations across Multi-step Training with Lighter Speculative Drafter

2025-02-24 · Yepeng Weng, Dianwen Mei, Huishi Qiu, Xujie Chen 외

Speculative decoding is a powerful technique that accelerates Large Language Model (LLM) inference by leveraging a lightweight speculative draft model. However, existing designs suffers in performance due to misalignment…

Large Language Model

SafeSpec: Fast and Safe LLM via Dynamic Reflective Sampling

2026-06-18 · Haotian Xu, Zeyang Zhang, Linbao Li, Huadi Zheng 외 arxiv

Speculative inference accelerates large language model (LLM) decoding but provides no inherent safety guarantees. Existing safety defenses are largely incompatible with speculative inference: they either introduce additi…