paper-with-me

홈 › Papers

Online Speculative Decoding

2023-10-11 · Xiaoxuan Liu, Lanxiang Hu, Peter Bailis, Alvin Cheung, Zhijie Deng, Ion Stoica, Hao Zhang

Speculative decoding is a pivotal technique to accelerate the inference of large language models (LLMs) by employing a smaller draft model to predict the target model's outputs. However, its efficacy can be limited due to the low predictive accuracy of the draft model, particularly when faced with diverse text inputs and a significant capability gap between the draft and target models. We introduce online speculative decoding to address this challenge. The main idea is to continuously update the (multiple) draft model(s) on observed user query data. Adapting to query distribution mitigates the shifts between the training distribution of the draft model and the query distribution, enabling the draft model to more accurately predict the target model's outputs. We develop a prototype of online speculative decoding based on knowledge distillation and evaluate it using both synthetic and real query data. The results show a substantial increase in the token acceptance rate by 0.1 to 0.65, bringing 1.42x to 2.17x latency reduction. Our code is available at https://github.com/LiuXiaoxuanPKU/OSD.

📄 PDF Abstract BibTeX arXiv:2310.07177

Code (1)

liuxiaoxuanpku/osd 공식 구현 pytorch

Tasks

Knowledge Distillation

Methods 이 논문이 사용한 방법론

Knowledge Distillation A very simple way to improve the performance of almost any machine learning algorithm is to train many different models on the same data and then to average their predictions.…

Similar Papers 제목 키워드 기반

BanditSpec: Adaptive Speculative Decoding via Bandit Algorithms

2025-05-21 · Yunlong Hou, Fengzhuo Zhang, Cunxiao Du, Xuan Zhang 외

Speculative decoding has emerged as a popular method to accelerate the inference of Large Language Models (LLMs) while retaining their superior text generation performance. Previous methods either adopt a fixed speculati…

Text Generation

When Drafts Evolve: Speculative Decoding Meets Online Learning

2026-03-13 · Yu-Yang Qian, Hao-Cong Wu, Yichao Fu, Hao Zhang 외 arxiv

Speculative decoding has emerged as a widely adopted paradigm for accelerating large language model inference, where a lightweight draft model rapidly generates candidate tokens that are then verified in parallel by a la…

Ensemble Learning

Not-a-Bandit: Provably No-Regret Drafter Selection in Speculative Decoding for LLMs

2025-10-22 · Hongyi Liu, Jiaji Huang, Zhen Jia, Youngsuk Park 외 arxiv

Speculative decoding is widely used in accelerating large language model (LLM) inference. In this work, we focus on the online draft model selection problem in speculative decoding. We design an algorithm that provably c…

Optimizing Speculative Decoding for Serving Large Language Models Using Goodput

2024-06-20 · Xiaoxuan Liu, Cade Daniel, Langxiang Hu, Woosuk Kwon 외

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, specu…

Automatic Task Detection and Heterogeneous LLM Speculative Decoding

2025-05-13 · Danying Ge, Jianhua Gao, Qizhi Jiang, Yifei Feng 외

Speculative decoding, which combines a draft model with a target model, has emerged as an effective approach to accelerate large language model (LLM) inference. However, existing methods often face a trade-off between th…

Large Language Model