paper-with-me

Papers

Optimizing Speculative Decoding for Serving Large Language Models Using Goodput

2024-06-20 · Xiaoxuan Liu, Cade Daniel, Langxiang Hu, Woosuk Kwon, Zhuohan Li, Xiangxi Mo, Alvin Cheung, Zhijie Deng, Ion Stoica, Hao Zhang

Reducing the inference latency of large language models (LLMs) is crucial, and speculative decoding (SD) stands out as one of the most effective techniques. Rather than letting the LLM generate all tokens directly, speculative decoding employs effective proxies to predict potential outputs, which are then verified by the LLM without compromising the generation quality. Yet, deploying SD in real online LLM serving systems (with continuous batching) does not always yield improvement -- under higher request rates or low speculation accuracy, it paradoxically increases latency. Furthermore, there is no best speculation length work for all workloads under different system loads. Based on the observations, we develop a dynamic framework SmartSpec. SmartSpec dynamically determines the best speculation length for each request (from 0, i.e., no speculation, to many tokens) -- hence the associated speculative execution costs -- based on a new metric called goodput, which characterizes the current observed load of the entire system and the speculation accuracy. We show that SmartSpec consistently reduces average request latency by up to 3.2x compared to non-speculative decoding baselines across different sizes of target models, draft models, request rates, and datasets. Moreover, SmartSpec can be applied to different styles of speculative decoding, including traditional, model-based approaches as well as model-free methods like prompt lookup and tree-style decoding.

📄 PDF Abstract BibTeX arXiv:2406.14066

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

ReSpec: Towards Optimizing Speculative Decoding in Reinforcement Learning Systems

2025-10-30 · Qiaoling Chen, Zijun Liu, Peng Sun, Shenggui Li 외 arxiv

Adapting large language models (LLMs) via reinforcement learning (RL) is often bottlenecked by the generation stage, which can consume over 75\% of the training time. Speculative decoding (SD) accelerates autoregressive …

Reinforcement LearningKnowledge Distillation

Collaborative Speculative Inference for Efficient LLM Inference Serving

2025-03-13 · Luyao Gao, Jianchun Liu, Hongli Xu, Xichong Zhang 외

Speculative inference is a promising paradigm employing small speculative models (SSMs) as drafters to generate draft tokens, which are subsequently verified in parallel by the target large language model (LLM). This app…

Large Language ModelScheduling

Accelerating LLM Inference with Staged Speculative Decoding

2023-08-08 · Benjamin Spector, Chris Re

Recent advances with large language models (LLM) illustrate their diverse capabilities. We propose a novel algorithm, staged speculative decoding, to accelerate LLM inference in small-batch, on-device scenarios. We addre…

Closer Look at Efficient Inference Methods: A Survey of Speculative Decoding

2024-11-20 · Hyun Ryu, Eric Kim

Efficient inference in large language models (LLMs) has become a critical focus as their scale and complexity grow. Traditional autoregressive decoding, while effective, suffers from computational inefficiencies due to i…

Survey

Nightjar: Dynamic Adaptive Speculative Decoding for Large Language Models Serving

2025-12-27 · Rui Li, Zhaoning Zhang, Libo Zhang, Huaimin Wang 외 arxiv

Speculative decoding (SD) accelerates LLM inference by verifying draft tokens in parallel. However, this method presents a critical trade-off: it improves throughput in low-load, memory-bound systems but degrades perform…