Gumbo: Gumbel Optimized High-Temperature Speculative Sampling
Jonah Yi, Dan Fu, Yu-Xiang Wang
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Speculative Decoding Optimization · Type: new method · Keywords: speculative sampling, high-temperature LLM inference, Gumbel sampling, communication-free coupling, speedup acceleration
Summary
Gumbo introduces a high-temperature speculative sampling algorithm that uses O(|V|) compute and achieves up to 26.7% speedup over existing methods.
Explained to a 5-year-old
Computers that write text, like chatbots, need to be fast. They use a trick called speculative sampling to guess words quickly. The usual guesser always picks the most likely word, which is fast but not fun. When we want the text to be more creative, we increase the guesser's randomness, but that makes it slower. The new idea makes a smarter guesser that can be random without slowing things down.
Explained to a 5-year-old, longer
Computers that write text, like chatbots, need to be fast. They use a trick called speculative sampling to guess words quickly. The usual guesser always picks the most likely word, which is fast but not fun. When we want the text to be more creative, we increase the guesser's randomness, but that makes it slower. The new idea makes a smarter guesser that can be random without slowing things down. It uses a special way of picking random numbers that helps it stay fast. The guesser can also change its guesses based on new information. This makes the text more interesting while keeping the speed high. It works like a game where you roll dice to decide the next word, but the dice are chosen carefully. The system can also adjust how many guesses it makes at once. All of this happens without needing to change the big language model or the helper. It just makes the guessing part better. This helps people get quicker, more creative answers from AI.
For a technical reader
The paper presents a speculative sampling algorithm that works efficiently at higher temperatures by leveraging Gumbel sampling and a multi-draft coupling scheme. It reduces computational cost from O(|V|k) to O(|V|) and removes the need for the draft distribution during verification. By reranking the draft tree with Gumbel scores, it increases acceptance length and overall speedup, achieving up to 26.7% faster generation when swapping in place of existing samplers.
Problem
Speculative sampling methods for LLM inference typically rely on greedy drafts at zero temperature, which perform poorly when higher temperatures are used. Extending these methods to higher temperatures leads to incorrect distributions and computationally expensive fixes.
Method
The approach uses a multi-draft generalization of communication-free coupling and Gumbel sampling to construct a dynamic draft tree that can be evaluated with O(|V|) computation, making it drafter-invariant and enabling high-temperature settings. It expands and reranks the draft tree based on Gumbel scores rather than draft probabilities, increasing acceptance length and speedup.
Results
The approach yields up to a 26.7% speedup at temperature 1.0 across four models and five datasets when replacing EAGLE-3's sampler, without any code changes.
Contributions
It provides a high-temperature speculative sampling algorithm that scales linearly with vocabulary size, is drafter-invariant, and improves acceptance length and speedup. It also offers a multi-draft generalization of communication-free coupling and Gumbel sampling that may be of independent interest.
Practical relevance
It enables faster LLM generation at higher temperatures on existing hardware, making high-quality sampling more practical for users.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction