Large Language Models (LLMs) are notoriously slow not because they lack raw compute power, but because they are "memory-bound." In standard autoregressive generation, a model must be loaded from memory to predict a single token, only to be loaded again for the next. This creates a massive imbalance: the GPU spends most of its time waiting for data to move rather than actually calculating.
Speculative decoding is the primary research direction aimed at breaking this bottleneck. The core intuition is simple: if we can't avoid the cost of loading the large model, we should make it do more work every time it wakes up.
The Draft and Verify Paradigm
The foundational mechanism of this field, popularized by Yaniv Leviathan and colleagues in Fast Inference from Transformers via Speculative Decoding, involves two models: a small, fast "drafter" and a large, powerful "target."
The drafter guesses a sequence of future tokens (a "draft"). Because the drafter is small, it can generate these guesses very quickly. The target model then checks all these guesses in a single parallel pass. If the target model agrees with the first three guesses but rejects the fourth, the system accepts those three and restarts the drafting process from the point of disagreement. As Heming Xia and Tao Ge demonstrate in Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generation, this can lead to speedups of up to 5× because the expensive target model processes multiple tokens per memory load.
The VRAM Tax
While the speed gains are impressive, they come with a significant "memory tax." To run speculative decoding, you must host both models in GPU memory (VRAM) simultaneously. Amir Gholami and Sehoon Kim highlight this in Speculative Decoding with Big Little Decoder, noting that maintaining dual models and their respective Key-Value (KV) caches can exceed the capacity of consumer-grade hardware.
This overhead becomes even more pronounced when researchers try to optimize the drafting process. For instance, Jerry Huang and Prasanna Parthasarathi proposed Context-Aware Assistant Selection, which picks the best drafter for a specific query. While this improves the "acceptance rate" of guesses, it further balloons the memory footprint by requiring multiple specialized assistant models to be resident in VRAM.
Self-Speculation: One Model, Two Speeds
To solve the memory crisis, a sub-direction called "Self-Speculative Decoding" has emerged. The idea is to treat a single model as its own drafter.
In Draft & Verify: Lossless Large Language Model Acceleration via Self-Speculative Decoding, Jun Zhang and Jue Wang show that you can generate draft tokens by simply skipping intermediate layers of the LLM. Similarly, Mostafa Elhoushi and the Meta AI team introduced LayerSkip, which uses a shared prediction head across layers. By exiting the model early to create a draft and then running the full depth to verify, these methods achieve 2× speedups without needing a second model or extra VRAM.
Expanding the Speculative Frontier
The logic of "guess then verify" is now being applied beyond simple token generation:
- Feature-Level Speculation: Yuhui Li and Fangyun Wei developed EAGLE, which speculates on the "features" (hidden states) of the next token rather than the token itself, making the guesses more robust to uncertainty.
- Hierarchical Pipelines: Bradley McDanel and Sai Qian Zhang proposed PipeSpec, which breaks the strict "lockstep" of draft-then-verify into an asynchronous pipeline, allowing multiple models to work on different parts of the sequence simultaneously.
- Reasoning and Search: Frameworks like SC-MCTS* by Boye Niu apply speculative principles to Monte Carlo Tree Search, accelerating the "thinking" process of reasoning models like Llama-3.1-70B.
Ultimately, this research direction transforms inference from a rigid, sequential process into a dynamic, collaborative one. Whether through auxiliary models or internal shortcuts, the goal remains the same: maximizing the utility of every memory access to make large-scale AI faster and more accessible.