2024/02/03 by Cunxiao Du, Du, Cunxiao, Jing Jiang +19 · 13 citations
Biochemistry, Genetics and Molecular Biology · Computer Science · #Algorithms and Data Compression #Cellular Automata and Applications #Computation and Language (cs.CL) #DNA and Biological Computing #FOS: Computer and information sciences
paper · pdf · doi:10.48550/arxiv.2402.02082
openalex publication_date 2024/02/03 · openalex created_date 2024/02/07 · openalex updated_date 2026/07/28
Speculative decoding is a relatively new decoding framework that leverages small and efficient draft models to reduce the latency of LLMs. In this study, we introduce GliDe and CaPE, two low-hassle modifications to vanilla speculative decoding to further improve the decoding speed of a frozen LLM. Specifically, GliDe is a modified draft model architecture that reuses the cached keys and values from the target LLM, while CaPE is a proposal expansion method that uses the draft model's confidence scores to help select additional candidate tokens for verification. Extensive experiments on different benchmarks demonstrate that our proposed GliDe draft model significantly reduces the expected decoding latency. Additional evaluation using walltime reveals that GliDe can accelerate Vicuna models up to 2.17x and further extend the improvement to 2.61x with CaPE. We will release our code, data, and the trained draft models.