Judge Decoding: Faster Speculative Sampling Requires Going Beyond Model Alignment

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Bachmann, Gregor, Anagnostidis, Sotiris, Pumarola, Albert, Georgopoulos, Markos, Sanakoyeu, Artsiom, Du, Yuming, Schönfeld, Edgar, Thabet, Ali, Kohler, Jonas
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913673236185088
author Bachmann, Gregor
Anagnostidis, Sotiris
Pumarola, Albert
Georgopoulos, Markos
Sanakoyeu, Artsiom
Du, Yuming
Schönfeld, Edgar
Thabet, Ali
Kohler, Jonas
author_facet Bachmann, Gregor
Anagnostidis, Sotiris
Pumarola, Albert
Georgopoulos, Markos
Sanakoyeu, Artsiom
Du, Yuming
Schönfeld, Edgar
Thabet, Ali
Kohler, Jonas
contents The performance of large language models (LLMs) is closely linked to their underlying size, leading to ever-growing networks and hence slower inference. Speculative decoding has been proposed as a technique to accelerate autoregressive generation, leveraging a fast draft model to propose candidate tokens, which are then verified in parallel based on their likelihood under the target model. While this approach guarantees to reproduce the target output, it incurs a substantial penalty: many high-quality draft tokens are rejected, even when they represent objectively valid continuations. Indeed, we show that even powerful draft models such as GPT-4o, as well as human text cannot achieve high acceptance rates under the standard verification scheme. This severely limits the speedup potential of current speculative decoding methods, as an early rejection becomes overwhelmingly likely when solely relying on alignment of draft and target. We thus ask the following question: Can we adapt verification to recognize correct, but non-aligned replies? To this end, we draw inspiration from the LLM-as-a-judge framework, which demonstrated that LLMs are able to rate answers in a versatile way. We carefully design a dataset to elicit the same capability in the target model by training a compact module on top of the embeddings to produce ``judgements" of the current continuation. We showcase our strategy on the Llama-3.1 family, where our 8b/405B-Judge achieves a speedup of 9x over Llama-405B, while maintaining its quality on a large range of benchmarks. These benefits remain present even in optimized inference frameworks, where our method reaches up to 141 tokens/s for 8B/70B-Judge and 129 tokens/s for 8B/405B on 2 and 8 H100s respectively.
format Preprint
id arxiv_https___arxiv_org_abs_2501_19309
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Judge Decoding: Faster Speculative Sampling Requires Going Beyond Model Alignment
Bachmann, Gregor
Anagnostidis, Sotiris
Pumarola, Albert
Georgopoulos, Markos
Sanakoyeu, Artsiom
Du, Yuming
Schönfeld, Edgar
Thabet, Ali
Kohler, Jonas
Machine Learning
Computation and Language
The performance of large language models (LLMs) is closely linked to their underlying size, leading to ever-growing networks and hence slower inference. Speculative decoding has been proposed as a technique to accelerate autoregressive generation, leveraging a fast draft model to propose candidate tokens, which are then verified in parallel based on their likelihood under the target model. While this approach guarantees to reproduce the target output, it incurs a substantial penalty: many high-quality draft tokens are rejected, even when they represent objectively valid continuations. Indeed, we show that even powerful draft models such as GPT-4o, as well as human text cannot achieve high acceptance rates under the standard verification scheme. This severely limits the speedup potential of current speculative decoding methods, as an early rejection becomes overwhelmingly likely when solely relying on alignment of draft and target. We thus ask the following question: Can we adapt verification to recognize correct, but non-aligned replies? To this end, we draw inspiration from the LLM-as-a-judge framework, which demonstrated that LLMs are able to rate answers in a versatile way. We carefully design a dataset to elicit the same capability in the target model by training a compact module on top of the embeddings to produce ``judgements" of the current continuation. We showcase our strategy on the Llama-3.1 family, where our 8b/405B-Judge achieves a speedup of 9x over Llama-405B, while maintaining its quality on a large range of benchmarks. These benefits remain present even in optimized inference frameworks, where our method reaches up to 141 tokens/s for 8B/70B-Judge and 129 tokens/s for 8B/405B on 2 and 8 H100s respectively.
title Judge Decoding: Faster Speculative Sampling Requires Going Beyond Model Alignment
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2501.19309