Distributed Speculative Inference (DSI): Speculation Parallelism for Provably Faster Lossless Language Model Inference
Nadav Timor, Jonathan Mamou, Daniel Korat, Moshe Berchansky, Oren Pereg, Moshe Wasserblat, Tomer Galanti, Michal Gordon, David Harel
TL;DR
This work tackles the latency of autoregressive language-model inference by introducing distributed speculative inference (DSI), which harnesses speculation parallelism (SP) to overlap drafting and verification across multiple target and drafter instances. The method provides provable lossless speedups over both speculative inference (SI) and non-SI, and it scales with hardware via a tunable SP degree ($SP$) and lookahead ($L$). Theoretical analysis under standard time-assumptions shows DSI is at least as fast as, and often strictly faster than, SI and non-SI in expectation, while empirical results on a single node with up to eight GPUs report speedups of about $1.29$–$1.92\times$ across several models and tasks. The work also demonstrates robustness through offline simulations and offers open-source code to facilitate broader adoption and further exploration of SP-based orchestration for lossless LM inference.
Abstract
This paper introduces distributed speculative inference (DSI), a novel inference algorithm that is provably faster than speculative inference (SI) [leviathan2023, chen2023, miao2024, sun2025, timor2025] and standard autoregressive inference (non-SI). Like other SI algorithms, DSI operates on frozen language models (LMs), requiring no training or architectural modifications, and it preserves the target distribution. Prior studies on SI have demonstrated empirical speedups over non-SI--but rely on sufficiently fast and accurate drafters, which are often unavailable in practice. We identify a gap where SI can be slower than non-SI if drafters are too slow or inaccurate. We close this gap by proving that DSI is faster than both SI and non-SI--given any drafters. DSI is therefore not only faster than SI, but also unlocks the acceleration of LMs for which SI fails. DSI leverages speculation parallelism (SP), a novel type of task parallelism, to orchestrate target and drafter instances that overlap in time, establishing a new foundational tradeoff between computational resources and latency. Our simulations show that DSI is 1.29-1.92x faster than SI in single-node setups for various off-the-shelf LMs and tasks. We open-source all our code.
