Thread: speculative decoding speeds up inference without changing weights or sampling

cneuralnetwork · x · 2026-10-22

A thread explains the elegance of speculative decoding: it doesn't make the target model smarter or change its weights—it exploits the gap between sequential generation and parallel verification. The speedup depends on the draft model, acceptance rate, KV cache management, batch size, and verification overhead. Key formula: the expected acceptance probability at a prefix is α = Σₓ min(p(x), q(x)) = 1 − TV(p, q), so a draft distribution closer to the target accepts longer prefixes and yields more tokens per verification pass. Faster inference while preserving the exact sampling distribution is a beautiful systems optimization.

Original post →

More from Infra

Infra channel →