A JOURNAL OF ARTIFICIAL INTELLIGENCE
my ai daily

What Is Speculative Decoding? How Draft-Verify Cuts Latency

Speculative decoding accelerates LLM generation without changing output quality by letting a fast drafter guess K tokens and having the target model verify them in parallel—now mature in llama.cpp 1.0’s NextN llama.h API and vLLM’s DFlash2.

AI-generated editorial illustration of a faceted brushed-brass prism on the left projecting glowing amber glass cubes into a slotted obsidian verifier array on the right, emitting parallel cyan beams while one misaligned amber cube arcs upward.
AI-generated illustration / my ai dailyIllustrative image.

THE STORY IN THREE POINTS

  • Core definition: speculative decoding is a mathematically lossless inference optimization where a cheap drafter proposes K candidate tokens and the large target model verifies all K tokens in one parallel forward pass—cutting decode latency without altering the model’s exact output distribution.
  • 2026 production inflection: llama.cpp v1.0.0 (November 13) promoted its NextN/speculative API into the stable SemVer public header llama.h, while vLLM’s Reflection Beam Day-0 release paired 2.71× agent-optimized decode kernels with DFlash2 block-diffusion drafting and adaptive verification hitting 708 tok/s on TP8.
  • It is not free at every workload: low acceptance rates on unpredictable creative text or strict JSON tool syntax waste draft work, and high-concurrency batching shifts GPUs from memory-bandwidth bound to compute bound unless adaptive verification scales K down.

The draft-and-verify loop: turning idle GPU compute into free token speed

Speculative decoding is a lossless LLM inference technique that accelerates text generation by pairing a fast guessing mechanism ("drafter") with the full target model ("verifier"). Instead of paying one expensive full-model weight read per output token, the drafter rapidly proposes a candidate sequence of K upcoming tokens, and the target LLM evaluates all K positions simultaneously in a single parallel forward pass.

This trick works because autoregressive decoding is overwhelmingly memory-bandwidth bound rather than compute bound. As explained in Parasail’s November 3 engineering explainer, moving multi-gigabyte model weights and KV cache from High Bandwidth Memory (HBM) onto GPU compute units takes almost the same wall-clock time whether evaluating one token or verifying six candidate tokens at once—making multi-token verification nearly free at low batch sizes.

Why output quality stays mathematically identical (unlike quantization)

Quantization shrinks weights at the cost of numeric precision and distillation trains a smaller, weaker student model—both alter model behavior. Standard speculative decoding is mathematically lossless: the target LLM still scores every single accepted token against its exact full-precision logits.

Under greedy decoding (temperature 0), the verifier accepts the longest prefix matching its own argmax token-for-token and immediately corrects the first mismatch. Under stochastic sampling, a modified rejection-sampling rule accepts high-probability drafts or resamples from the normalized difference between target and draft distributions—guaranteeing that every generated sequence follows the exact same probability distribution as unaccelerated decoding.

Main variants and 2026 maturity: NextN in llama.cpp 1.0, EAGLE-3, n-gram & vLLM DFlash2

Modern serving stacks support four main drafting designs: independent draft models (a tiny checkpoint sharing the target tokenizer), feature-space draft heads like EAGLE-3 (lightweight layers predicting from the target model’s intermediate hidden states), n-gram prompt lookup (zero extra parameters—reusing matching token spans directly from RAG documents or source code diffs), and native Multi-Token Prediction (MTP) / block-diffusion heads.

Two late-2026 releases cemented speculative decoding as production infrastructure. On November 13, 2026, llama.cpp v1.0.0 (ggml-org announcement) adopted SemVer and promoted its NextN / speculative decoding API out of experimental headers into the stable public header llama.h (via hooks like llama_set_embeddings_nextn). Meanwhile, on October 16, vLLM’s Day-0 Reflection Beam-1.0 report (501B total / 23B active MoE) combined autonomous agent-driven kernel tuning—cutting batch-1 decode latency 2.71× (and prefill 1.87×)—with a 5-layer DFlash2 block-diffusion drafter (building on vLLM Speculators parallel drafting) that predicts an entire block of tokens in one pass, reaching 708 tokens/s on TP8 with a 3.7 mean acceptance length and 10% higher peak throughput via logit-based adaptive verification.

Where speculative decoding fails: low acceptance rates and high concurrency

Speculation does not speed up every request. On high-entropy creative prose, dense multilingual switching, or brittle structured tool-calling outputs where the drafter frequently guesses wrong on parameter syntax, mean acceptance length collapses—meaning the server pays draft compute overhead only to accept one or two tokens per step.

High traffic creates the opposite ceiling: once continuous batching scales from single-stream requests to dozens of concurrent users, GPU tensor cores saturate and inference shifts from memory-bandwidth bound to compute bound. Verifying K extra speculative tokens per user competes directly with real batch throughput, which is why modern serving guides—see our SGLang vs vLLM engine comparison, Ollama vs vLLM concurrency guide, and Prompt Caching latency guide—pair speculative decoding with enable_adaptive_verification or disable it above traffic knees.

Sources: What is speculative decoding? How it speeds up LLMs|Parasail ↗ llama.cpp v1.0.0 Release Notes (NextN API in llama.h)|ggml-org/llama.cpp ↗ llama.cpp 1.0 Announcement|Hugging Face Blog (ggml-org) ↗ Serving Reflection Beam on vLLM from Day 0|vLLM Blog ↗ Parallel Drafting in Speculators|vLLM Blog ↗

THE BROADER CONTEXT · FRONTIER LABS DOSSIER

Explore full product specifications, pricing analysis, and continuous coverage in the Frontier Labs Desk Hub and Others Dossier. Independent benchmarks available on the AI Intelligence Index and Coding Agents Leaderboard.

02The next story

News

Best GPU for Local LLM: VRAM, Bandwidth & Consumer Picks

For single-user local LLM inference, memory bandwidth—not raw compute FLOPS—dictates token generation speed once weights fit in VRAM. Here is how NVIDIA RTX 5070 Ti (896 GB/s), RTX 4090 (24 GB), RTX 5090 (1,792 GB/s), and 128 GB+ unified systems rank.

Best Open-Source Embedding Models: MTEB, Context & RAG Picks

Stop defaulting RAG pipelines to 512-token legacy embedders like bge-large or mxbai-embed-large. Here are the top November 2026 open-weight embedding models—Qwen3-Embedding (32K, 70.58 MTEB), Microsoft’s MIT harrier-oss-v1 (up to 0.7427), BGE-M3 hybrid, and edge EmbeddingGemma-300M.

pgvector vs Qdrant: Scale Limits, Filtering & Ops Overhead

Under 5 million vectors, running pgvector inside PostgreSQL avoids dual-write sync bugs and extra ops overhead; past 10 million embeddings or heavy filtered concurrency, Rust-native Qdrant pulls ahead with payload-aware HNSW, quantization, and RRF/DBSF hybrid search.

Follow your curiosity.

EXPLORE THE ARCHIVESOURCES & CONTEXT INCLUDED