CLJan 12, 2024

Multi-Candidate Speculative Decoding

arXiv:2401.06706v137 citationsh-index: 35NLPCC
Originality Incremental advance
AI Analysis

This work addresses the problem of speeding up text generation for users of large language models, representing an incremental improvement over standard speculative decoding.

The paper tackles the slow autoregressive text generation of large language models by proposing multi-candidate speculative decoding, which samples multiple candidates from a draft model and verifies them in batches, resulting in significant improvements in acceptance rates across multiple datasets and models.

Large language models have shown impressive capabilities across a variety of NLP tasks, yet their generating text autoregressively is time-consuming. One way to speed them up is speculative decoding, which generates candidate segments (a sequence of tokens) from a fast draft model that is then verified in parallel by the target model. However, the acceptance rate of candidate tokens receives limitations from several factors, such as the model, the dataset, and the decoding setup. This paper proposes sampling multiple candidates from a draft model and then organising them in batches for verification. We design algorithms for efficient multi-candidate verification while maintaining the distribution of the target model. Our approach shows significant improvements in acceptance rates on multiple datasets and models, consistently outperforming standard speculative decoding.

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