Dynamic Speculation Lookahead Accelerates Speculative Decoding of Large Language Models
Mamou, Jonathan, Pereg, Oren, Korat, Daniel, Berchansky, Moshe, Timor, Nadav, Wasserblat, Moshe, Schwartz, Roy
–arXiv.org Artificial Intelligence
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 Figure 1: An illustration of a single speculative decoding with four datasets show that DISCO reaches an iteration with Speculation Lookahead (SL) = 5. average speedup of 10% compared to the best Given a prompt t
arXiv.org Artificial Intelligence
Jun-23-2024
- Country:
- Asia > Middle East
- Israel (0.14)
- Europe > Germany (0.14)
- North America > United States (0.14)
- Asia > Middle East
- Genre:
- Research Report > New Finding (0.46)
- Technology: