Speculative Decoding Explained: How to Accelerate LLM Inference Without Losing Accuracy

NVIDIA's co-design approach maximizes speculative decoding to slash LLM inference latency without any accuracy loss.
Speculative decoding accelerates LLM inference by having a lightweight draft model quickly generate multiple candidate tokens, which the large target model then verifies in a single parallel pass — converting memory-bandwidth-bound serial generation into efficient parallel processing with mathematically identical outputs. NVIDIA's co-design philosophy takes this further by jointly optimizing the draft and target models from the training stage to boost token acceptance rates and achieve higher speedups. Backed by engineering support from frameworks like TensorRT-LLM, this approach delivers lower inference costs, higher concurrency, and better user experience for enterprise-scale LLM deployments.
Introduction: The LLM Inference Speed Problem
Large language models (LLMs) are becoming increasingly capable, but that power comes with a sharp rise in inference costs and latency. In production environments, users expect faster responses — yet as model sizes balloon, every generation step becomes more expensive. Accelerating LLM inference without sacrificing accuracy has become one of the most pressing challenges in the industry.
This is precisely the direction NVIDIA focuses on in its AI Model Co-Design series. As the third installment in that series, the spotlight falls on an increasingly mature technique — Speculative Decoding — and how a co-design philosophy can maximize its acceleration benefits.

What Is Speculative Decoding?
The Inherent Bottleneck of Autoregressive Generation
Traditional LLMs generate text autoregressively — predicting one token at a time, appending it to the context, then predicting the next. This serial process means generating N tokens requires N full forward passes through the model. For models with tens of billions of parameters, each forward pass is computationally expensive, keeping inference latency stubbornly high.
More critically, this process is often memory-bandwidth-bound rather than compute-bound. In other words, the GPU's massive compute capacity sits underutilized during token-by-token generation, with most time spent waiting for model weights to be loaded from GPU memory.
The Core Idea Behind Speculative Decoding
Speculative decoding cleverly addresses this efficiency bottleneck. The key idea is to introduce a lightweight draft model that quickly predicts several candidate tokens in one shot, which are then verified in a single parallel pass by the original target model.
The process unfolds in two stages:
- Draft stage: A small, fast, low-cost model "speculatively" guesses the next several tokens;
- Verification stage: The large model validates this sequence of candidate tokens in parallel — accepting the correct ones and rejecting and correcting any that are wrong.
Because verification is done in parallel, the large model can process multiple tokens in a single forward pass, making full use of compute capacity that would otherwise sit idle due to memory bandwidth constraints. The end result: significantly higher generation throughput while keeping outputs mathematically identical to the original model.
Co-Design: Why 1+1 Can Be Greater Than 2
From Post-Hoc Acceleration to Joint Optimization
Speculative decoding itself is not a new concept, but NVIDIA's emphasis on co-design introduces a qualitative leap. The traditional approach is to take an existing large model and pair it with any available small model as the draft. This ad-hoc approach depends heavily on alignment between the two models — if the draft model's predictions are frequently rejected by the target model, the speedup quickly erodes.
The co-design philosophy is fundamentally different: the draft model and target model are designed and trained together as a unified system from the start. By training the draft model to more closely mimic the output distribution of the target model, token acceptance rates improve dramatically, yielding higher speedup ratios.
Acceptance Rate: The Key Performance Metric
In speculative decoding, acceptance rate directly determines real-world speedup. A higher acceptance rate means the draft model's guesses are more accurate, and the large model needs to "redo" less work. Through customized training strategies, co-design allows the lightweight draft model to closely align with the target model's behavior on specific tasks or domains — achieving a genuine win-win of efficiency and accuracy.
This is also why NVIDIA has placed speculative decoding within its "AI Model Co-Design" series: inference acceleration is no longer an isolated step after model training, but a systems engineering effort woven throughout the entire model design lifecycle.
Practical Value and Ecosystem Support
The Unique Advantage of Lossless Acceleration
The greatest appeal of speculative decoding is that it is a lossless acceleration technique. Unlike quantization or pruning, which may degrade output quality, speculative decoding produces outputs that are mathematically equivalent to running the target model alone — because every token is ultimately verified by the large model. This means developers can confidently deploy it in accuracy-critical applications, such as medical text generation or legal document processing.
Deep Integration with NVIDIA's Inference Stack
NVIDIA's technology stack — including inference optimization frameworks like TensorRT-LLM — provides robust engineering support for speculative decoding, making it easier to deploy in production environments. Combined with GPU-level hardware optimizations, speculative decoding can achieve acceleration results on NVIDIA GPUs that approach theoretical peak performance.
For enterprises running LLM services at scale, this translates directly into three concrete benefits:
- Lower inference costs: Generate more tokens per unit of time, reducing per-request GPU overhead;
- Higher concurrency: Serve more users with the same hardware resources;
- Better user experience: Reduce wait times and improve interaction responsiveness.
Conclusion and Outlook
Speculative decoding represents an important direction for LLM inference optimization: trading a small model's speed for better utilization of a large model's compute capacity, without sacrificing any accuracy. NVIDIA's co-design philosophy further elevates it from an add-on acceleration trick to a systems-level methodology deeply integrated into the model design process.
As LLMs scale across industries, inference efficiency will only grow in importance. Speculative decoding, model co-design, and the joint optimization of software and hardware together form the technical foundation of efficient AI inference. For AI developers and engineering teams, understanding and mastering techniques like speculative decoding will be a critical capability for striking the optimal balance between inference cost and model performance.
Related articles

The Complete Guide to SQL Data Types: Categories, Selection, and Best Practices
A comprehensive guide to SQL data type categories and selection strategies, covering numeric, string, and datetime types, best practices, performance optimization, and common pitfalls.

How Do AI Agents Anticipate the Unexpected? A Deep Dive into World Model Technology
Researcher Danijar Hafner is building AI agents with world model capabilities that can plan ahead and handle the unexpected. Explore the technology behind DreamerV3 and its applications in autonomous driving and robotics.

OpenAI Claims to Have Cracked the Navier-Stokes Equations — Math World Pushes Back
OpenAI claims its AI solved the Navier-Stokes equations, a 90-year math puzzle — but mathematicians are skeptical. What does this mean for AI in science?