Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Timor, Nadav, Mamou, Jonathan, Korat, Daniel, Berchansky, Moshe, Jain, Gaurav, Pereg, Oren, Wasserblat, Moshe, Harel, David
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910999612751872
author Timor, Nadav
Mamou, Jonathan
Korat, Daniel
Berchansky, Moshe
Jain, Gaurav
Pereg, Oren
Wasserblat, Moshe
Harel, David
author_facet Timor, Nadav
Mamou, Jonathan
Korat, Daniel
Berchansky, Moshe
Jain, Gaurav
Pereg, Oren
Wasserblat, Moshe
Harel, David
contents Accelerating the inference of large language models (LLMs) is a critical challenge in generative AI. Speculative decoding (SD) methods offer substantial efficiency gains by generating multiple tokens using a single target forward pass. However, existing SD approaches require the drafter and target models to share the same vocabulary, thus limiting the pool of possible drafters, often necessitating the training of a drafter from scratch. We present three new SD methods that remove this shared-vocabulary constraint. All three methods preserve the target distribution (i.e., they are lossless) and work with off-the-shelf models without requiring additional training or modifications. Empirically, on summarization, programming, and long-context tasks, our algorithms demonstrate significant speedups of up to 2.8x over standard autoregressive decoding. By enabling any off-the-shelf model to serve as a drafter and requiring no retraining, this work substantially broadens the applicability of the SD framework in practice.
format Preprint
id arxiv_https___arxiv_org_abs_2502_05202
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies
Timor, Nadav
Mamou, Jonathan
Korat, Daniel
Berchansky, Moshe
Jain, Gaurav
Pereg, Oren
Wasserblat, Moshe
Harel, David
Computation and Language
Artificial Intelligence
Machine Learning
Accelerating the inference of large language models (LLMs) is a critical challenge in generative AI. Speculative decoding (SD) methods offer substantial efficiency gains by generating multiple tokens using a single target forward pass. However, existing SD approaches require the drafter and target models to share the same vocabulary, thus limiting the pool of possible drafters, often necessitating the training of a drafter from scratch. We present three new SD methods that remove this shared-vocabulary constraint. All three methods preserve the target distribution (i.e., they are lossless) and work with off-the-shelf models without requiring additional training or modifications. Empirically, on summarization, programming, and long-context tasks, our algorithms demonstrate significant speedups of up to 2.8x over standard autoregressive decoding. By enabling any off-the-shelf model to serve as a drafter and requiring no retraining, this work substantially broadens the applicability of the SD framework in practice.
title Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.05202