AI architecture · Inference

Speculative decoding for private LLMs: faster tokens without changing the answers

Self-hosting a model gives you control over data and cost, and often a latency problem. Speculative decoding is one of the few optimisations that makes generation faster without changing what the model outputs. It also has a narrower sweet spot than its benchmarks suggest.

ExplainerSumanta Mukhopadhyay8 min read5 sources
#ai#llm#platform
EXPLAINER · AI ARCHITECTURE · INFERENCE27 Oct 2026 · 16:20 GST

A common moment in private LLM projects: the model runs on your own GPUs, quality is acceptable, and users complain that answers stream slowly. Buying more hardware raises throughput but barely changes how quickly each token appears for one user. Quantisation and smaller models change the outputs. Speculative decoding is attractive because it does neither.

How it works

Generating text one token at a time leaves a large model's GPU mostly waiting on memory, not compute. Speculative decoding uses that slack. A cheap proposer guesses the next few tokens; the large target model checks all of them in one parallel pass; accepted tokens are kept, and generation continues from the first rejection1.

The original Google Research paper showed this can sample from the target model's distribution exactly, so outputs are unchanged, and reported 2 to 3 times faster generation on T5-XXL with existing models and no retraining1. In practice, floating-point differences in batched GPU execution mean byte-identical outputs are likely rather than guaranteed.

Speculative decoding trades spare compute for latency. If your GPUs have no spare compute, there is nothing to trade.

The proposer options

MethodHow it proposesTrade-off
Draft modelA smaller model from the same familyGood acceptance; extra memory and a model to manage
EAGLE familyA light head trained on the target model's internal featuresStrong speedups; needs a head trained for your exact model
MTPMulti-token prediction layers built into some modelsNo separate model, where the base model supports it
N-gram / suffixCopies likely continuations from the prompt or earlier outputNo training; helps most when output repeats input

The current vLLM documentation summarises it this way: model-based methods such as EAGLE, MTP and draft models give the best latency reduction, while n-gram and suffix decoding give modest speedups without adding much work during peak traffic3. The EAGLE-3 paper reports speedups of up to 6.5 times in its experiments and argues its design lets the draft head benefit from more training data2. The vLLM project also maintains a Speculators library for training draft models that run in vLLM4.

When it helps, and when it doesn't

vLLM describes speculative decoding as aimed at reducing inter-token latency for memory-bound workloads at medium to low request rates3. That sentence is the whole story:

  • Interactive assistants with modest concurrency: good fit. Each user sees faster streaming.
  • Code editing, document revision, extraction: often good for n-gram methods, because the output repeats large parts of the input.
  • High-throughput batch jobs: weak fit. The GPU is already saturated, and verification work competes with real requests.
  • Peak hours on shared clusters: gains can fall as load rises, which is why the cheaper methods appeal.

Older vLLM releases also carried caveats, such as incompatibility with pipeline parallelism and inconsistent latency gains across datasets5. Check the documentation for your exact version rather than relying on a blog post's configuration.

How I'd evaluate it

  1. Replay real traffic, not a benchmark prompt set. Acceptance rate depends heavily on what your users ask and how your prompts are built.
  2. Measure the right latencies: time to first token, inter-token latency and end-to-end time, at your real concurrency, using the telemetry in LLM observability.
  3. Track acceptance rate and tune the number of speculative tokens; low acceptance means wasted verification.
  4. Check outputs on your evaluation set to confirm nothing changed that matters.
  5. Compare with alternatives. Prompt caching and routing easy requests to smaller models may deliver more for less effort.
  6. Decide per workload. Enable it for interactive endpoints and leave batch endpoints alone, using the serving patterns in vLLM inference serving.

How I can help

I design private LLM platforms that meet latency and cost targets on hardware you control, from model choice to serving configuration. See my AI architecture work, or analyse your challenge and bring the result to a call.

References
  1. 1
    Fast Inference from Transformers via Speculative DecodingLeviathan, Kalman and Matias (arXiv; ICML 2023) · 2022
  2. 2
  3. 3
    Speculative decodingvLLM documentation
  4. 4
  5. 5
FAQ

Common questions

What is speculative decoding?

A technique where a cheap proposer guesses several next tokens and the large target model verifies them in a single parallel pass. Accepted tokens are kept and the rest regenerated. The original method was shown to sample from the target model's distribution exactly, so outputs are unchanged.

When does speculative decoding help?

The vLLM documentation describes it as reducing inter-token latency for memory-bound workloads at medium to low request rates. At high load the GPU is already busy, so the extra verification work can reduce or remove the gain.

Which speculative decoding method should I use?

According to vLLM's documentation, model-based methods such as EAGLE, MTP and draft models give the best latency reduction, while n-gram and suffix decoding give modest speedups without adding much load at peak. Measure acceptance rate and latency on your own traffic before choosing.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.