A Drop-In Solution for On-the-Fly Adaptation of Speculative Decoding in Large Language Models

Large Language Models (LLMs) are cuttingedge generative AI models built on transformer architecture, which tend to be highly memoryintensive when performing real-time inference.Various strategies have been developed to enhance the end-to-end inference speed for LLMs, one of which is speculative decoding.This technique involves running a smaller LLM (draft model) for inference over a defined window size, denoted as , while simultaneously being validated by the larger LLM (target model).Choosing the optimal value and the draft model is essential for unlocking the potential of speculative decoding.But it is difficult to do due to the complicated influence from various factors, including the nature of the task, the hardware in use, and the combination of the large and small models.This paper introduces on-the-fly adaption of speculative decoding, a solution that dynamically adapts the choices to maximize the efficiency of speculative decoding for LLM inferences.As a drop-in solution, it needs no offline benchmarking or training.Experiments show that the solution can lead to 3.55-16.48%speed improvement over the standard speculative decoding, and 1.2-3.4over the default LLMs.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.482
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Drop-In Solution for On-the-Fly Adaptation of Speculative Decoding in Large Language Models

Jiesong Liu, Xipeng Shen, Brian Park
Topic Modeling
article

A Drop-In Solution for On-the-Fly Adaptation of Speculative Decoding in Large Language Models

Jiesong Liu, Xipeng Shen, Brian Park
article en

Abstract

Large Language Models (LLMs) are cuttingedge generative AI models built on transformer architecture, which tend to be highly memoryintensive when performing real-time inference.Various strategies have been developed to enhance the end-to-end inference speed for LLMs, one of which is speculative decoding.This technique involves running a smaller LLM (draft model) for inference over a defined window size, denoted as , while simultaneously being validated by the larger LLM (target model).Choosing the optimal value and the draft model is essential for unlocking the potential of speculative decoding.But it is difficult to do due to the complicated influence from various factors, including the nature of the task, the hardware in use, and the combination of the large and small models.This paper introduces on-the-fly adaption of speculative decoding, a solution that dynamically adapts the choices to maximize the efficiency of speculative decoding for LLM inferences.As a drop-in solution, it needs no offline benchmarking or training.Experiments show that the solution can lead to 3.55-16.48%speed improvement over the standard speculative decoding, and 1.2-3.4over the default LLMs.

North Carolina State University (US), North Carolina Agricultural and Technical State University (US)
National Science Foundation, National Institutes of Health
Openalex Percentile: Top 90%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Drop-In Solution for On-the-Fly Adaptation of Speculative Decoding in Large Language Models — Jiesong Liu, Xipeng Shen, et al. · (2025) | TGRS Research Map | TGRS