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

Dynamic Speculation Lookahead Accelerates Speculative Decoding of Large Language Models

About

Speculative decoding is commonly used for reducing the inference latency of large language models. Its effectiveness depends highly on the speculation lookahead (SL)-the number of tokens generated by the draft model at each iteration. In this work we show that the common practice of using the same SL for all iterations (static SL) is suboptimal. We introduce DISCO (DynamIc SpeCulation lookahead Optimization), a novel method for dynamically selecting the SL. Our experiments with four datasets show that DISCO reaches an average speedup of 10% compared to the best static SL baseline, while generating the exact same text.

Jonathan Mamou, Oren Pereg, Daniel Korat, Moshe Berchansky, Nadav Timor, Moshe Wasserblat, Roy Schwartz• 2024

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningGSM8K
Speed Up (x)3.67
246
Instruction FollowingAlpaca
Speedup (x)3.36
111
Question AnsweringQA
Speedup Factor2.88
47
Multi-turn conversationMT-Bench
Speedup4.48
25
Multi-turn Conversation EvaluationMT-Bench
Speedup3.48
25
Showing 5 of 5 rows

Other info

Follow for update