It’s late, the coffee is cold, and you’re waiting for an LLM to finish generating a long response. You know the drill: Large Language Models (LLMs) are slow because they generate text one... single... token... at a time.
To speed things up, we use Speculative Decoding (SD). We let a tiny, fast "drafter" model guess a few tokens ahead, and then the big "target" model checks its homework in one parallel burst. If the drafter is right, we skip ahead. If it’s wrong, we throw away the guesses and try again.
The problem? Drafting is a gamble. You’re trying to predict two things: what the big model will think, and how the random "dice roll" of sampling will turn out. This paper, Speculative Decoding Is Less Speculative Than You Think, points out something blindingly obvious once you hear it: you can roll the dice before you start drafting.
TL;DR
DICE (Draw-Informed Candidate Selection) realizes that the "randomness" in LLM sampling can be pre-calculated. By peeking at these random draws before drafting, the system can focus its computational budget on the paths the target model is actually likely to take, leading to speedups of up to 24.6% without changing the final output or requiring any extra training.
What Problem Does This Paper Address?
Speculative decoding is essentially the art of anticipating the future. Its efficiency depends entirely on the "acceptance rate"—how often the big model agrees with the small model's guesses.
Currently, researchers spend huge amounts of effort making the small model "smarter" so it mimics the big model better. But even with a perfect drafter, sampling is still random. If you're sampling with a high "temperature" (making the model more creative), the randomness becomes a major source of uncertainty.
The authors argue that we’ve been treating this randomness as an unavoidable mystery, when in reality, the random numbers used for verification can be generated before the drafting phase even begins.
Methods
The authors introduce DICE (Draw-Informed Candidate Selection). The core idea is "seed awareness."
- Pre-sampling: Before the drafter even starts, DICE generates the random Gumbel noise (for Gumbel-max sampling) or uniform draws that the verifier will eventually use.
- Synchronized Randomness: It ensures the drafter and the verifier are looking at the exact same "random" values for the same token positions.
- Informed Drafting: DICE uses these known draws to score potential tokens.
Imagine the drafter is building a "tree" of possible continuations. Usually, it just follows the highest probabilities. With DICE, if the pre-sampled random draw for a certain position is very "difficult" (meaning a token needs a very high probability to be accepted), the drafter might decide to stop looking down that path and instead explore alternative branches.
DICE applies this logic to two main areas:
- Draft-Tree Construction: Deciding which tokens to add to the speculation tree.
- Asynchronous Prefetching: Predicting which future drafts to prepare while the current one is still being verified by the GPU.
Datasets
The authors evaluated DICE using standard, rigorous benchmarks for speculative decoding:
- Spec-Bench and SPEED-Bench: These cover a wide range of tasks including translation, summarization, math, and multi-turn conversation.
- Alpaca, GSM8K, HumanEval, and UltraFeedback: Used specifically to test the asynchronous prefetching capabilities.
They tested across various model families (Llama, Qwen, DeepSeek, Mixtral) and inference backends like SGLang and vLLM.
Key Insights and Ideas
- The Acceptance Threshold is Known: As shown in Figure 1, if you know the random draw $u$, you know exactly what target probability $p(x)$ is required to accept a draft. If $u$ is small, acceptance is easy; if $u$ is large, you should probably prepare a backup plan.
- Training-Free & Lossless: This is the "holy grail" of optimization. You don't need to fine-tune your models, and the final text generated is bit-for-bit identical to standard sampling. You're just getting there more efficiently.
- The "Aha!" Moment on Temperature: Usually, speculative decoding gets worse as you turn up the temperature (randomness). DICE actually gets better relative to baselines at higher temperatures because it’s the only method that knows which way the "random" wind is blowing.
Key Results
- Throughput Gains: DICE achieved state-of-the-art results, with speedups of up to 24.6% in tree-based decoding and 13.7% in asynchronous prefetching over strong baselines like EAGLE.
- Efficiency: In many cases, DICE with a small budget of 16 nodes outperformed standard methods using 64 nodes. It’s simply better at picking which nodes to spend its "compute coins" on.
- Real-World Ready: The gains were consistent across high-performance engines like vLLM and SGLang, even under high-concurrency workloads.
Limitations and Future Work
- Calibration: DICE relies on a simple "plug-in" rule to estimate target probabilities from draft probabilities. While they show this is robust, it does require a tiny bit of calibration (about 1-3 prompts' worth of data) to get the scaling right.
- Implementation Overhead: While the math is simple, the inference engine needs to support deterministic, counter-based random number generation to keep the draws synchronized across different parts of the system.
- Future Directions: The authors suggest this "seed-aware" principle could be applied to other areas of machine learning where we currently treat sampling as a "black box" of uncertainty.
In short: the next time you're waiting for an LLM, remember that the future isn't as random as it looks—if you know where to look for the dice.
Summary updated