Gumbo: Gumbel Optimized High-Temperature Speculative Sampling
Jonah Yi ⋅ Dan Fu ⋅ Yu-Xiang Wang
Abstract
Speculative sampling is a widely used method for losslessly accelerating Large Language Model (LLM) inference. State-of-the-art speculative sampling methods (e.g. EAGLE series) use a dynamic draft tree where the draft tree structure is adjusted based on context with drafter temperature implicitly set to $T=0$, i.e. greedy drafting. However, greedy drafting performs poorly as the temperature of the target model increases. Moreover, we show that naively instantiating the dynamic draft-tree with drafter temperature $T>0$ leads to an incorrect distribution. Exact fixes exist, but naively recovering the reranked draft distribution is computationally prohibitive, requiring $O(|\mathcal{V}|^k)$ computation, where $\mathcal{V}$ and $k$ denote vocabulary and number of child nodes. We address these limitations by introducing Gumbo, a new speculative sampling algorithm designed for high-temperature settings that uses only $O(|\mathcal{V}|)$ compute. Gumbo is drafter-invariant in that it does not require the draft distribution during verification. Additionally, Gumbo increases the average acceptance length and speedup by expanding and reranking the dynamic draft tree based on Gumbel scores rather than draft probabilities. At the heart of Gumbo is a multi-draft generalization of the communication-free coupling principles and Gumbel sampling of Daliri et al., which is of independent interest. Replacing EAGLE-3's speculative sampler with Gumbo results in up to a +20.5\% increase in speedup at a temperature of 1.0 across four models and five datasets, without altering the draft model.
Successful Page Load