Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Cascade Speculative Drafting for Even Faster LLM Inference

About

Introduced to enhance the efficiency of large language model (LLM) inference, speculative decoding operates by having a smaller model generate a draft. A larger target model then reviews this draft to align with its output, and any acceptance by the target model results in a reduction of the number of the target model runs, ultimately improving efficiency. However, the drafting process in speculative decoding includes slow autoregressive generation and allocates equal time to generating tokens, irrespective of their importance. These inefficiencies collectively contribute to the suboptimal performance of speculative decoding. To further improve LLM inference, we introduce Cascade Speculative Drafting (CS Drafting), a speculative execution algorithm that incorporates two types of cascades. The Vertical Cascade eliminates autoregressive generation from neural models, while the Horizontal Cascade optimizes time allocation in drafting for improved efficiency. Combining both cascades, CS Drafting achieves greater speedup compared to the baselines in our experiments, while preserving the same output distribution as the target model.

Ziyi Chen, Xiaocong Yang, Jiacheng Lin, Chenkai Sun, Kevin Chen-Chuan Chang, Jie Huang• 2023

Related benchmarks

TaskDatasetResultRank
Question AnsweringWebQuestions
Accuracy36
66
Question AnsweringNaturalQA
Accuracy36
66
Question AnsweringTriviaQA
Accuracy60
42
Machine TranslationWMT'14
BLEU23
28
Text SummarizationCNNDM
ROUGE-2 Score12.9
28
Text SummarizationXsum
ROUGE-218.9
28
Question AnsweringTriviaQA
Accuracy60
24
Machine TranslationWMT14 T=0 (test)
BLEU22.95
8
SummarizationXSum T=1 (test)
ROUGE-218.9
8
SummarizationCNNDM T=1 (test)
ROUGE-212.9
8
Showing 10 of 10 rows

Other info

Follow for update