LGCLDec 18, 2023

Cascade Speculative Drafting for Even Faster LLM Inference

arXiv:2312.11462v593 citationsh-index: 15NIPS
Originality Incremental advance
AI Analysis

This work addresses faster inference for large language models, representing an incremental improvement over existing speculative decoding methods.

The paper tackles inefficiencies in speculative decoding for LLM inference, such as slow autoregressive generation and uniform time allocation, by introducing Cascade Speculative Drafting (CS Drafting), which achieves greater speedup compared to baselines while preserving output distribution.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes