Accelerating Large Language Model Decoding with Speculative Sampling
Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste, Lespiau, Laurent Sifre, John Jumper

TL;DR
This paper introduces speculative sampling, a novel decoding algorithm that significantly speeds up large language model generation by generating multiple tokens simultaneously, maintaining quality while reducing latency.
Contribution
The paper proposes speculative sampling, a new decoding method that accelerates transformer-based language models without altering the model or sacrificing output quality.
Findings
Achieves 2-2.5x speedup on Chinchilla 70B model
Maintains sample quality comparable to standard decoding
Operates effectively in distributed computing environments
Abstract
We present speculative sampling, an algorithm for accelerating transformer decoding by enabling the generation of multiple tokens from each transformer call. Our algorithm relies on the observation that the latency of parallel scoring of short continuations, generated by a faster but less powerful draft model, is comparable to that of sampling a single token from the larger target model. This is combined with a novel modified rejection sampling scheme which preserves the distribution of the target model within hardware numerics. We benchmark speculative sampling with Chinchilla, a 70 billion parameter language model, achieving a 2-2.5x decoding speedup in a distributed setup, without compromising the sample quality or making modifications to the model itself.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Speech Recognition and Synthesis
MethodsChinchilla
