atlas

Research map / Large language models / Reasoning and chain of thought

A Theoretical Perspective for Speculative Decoding Algorithm

NeurIPS 2024 · Large language models › Reasoning and chain of thought · approach: Speculative decoding · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Gives a Markov-chain theory of speculative decoding: exact expected rejections (= TV distances, hence speedup T/E[rejections]), proves SD is optimal among unbiased rejection-based algorithms, analyzes batch SD, and derives a linear Pareto front between rejection probability and output distribution bias.

Problem

Speculative decoding accelerates LLM inference empirically, but there is no precise theory of how draft/target distribution mismatch determines its speedup, whether it can be improved, and how speed trades off against output quality.

Approach

Model decoding as a Markov chain, show expected rejections equal sums of TV distances between draft and target conditionals (so speedup = T/#rejections), prove unbiased rejection-based algorithms cannot beat SD's rejection count, analyze a batch DFS variant with a closed-form improvement term, and derive the optimal biased-decoding distribution yielding a linear rejection vs. TV-bias Pareto front.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Decoding-OPT's optimal rejection distribution instead of Decoding-UNO's target distribution, with RM-Mistral-7B evaluationDecoding-OPT versus Decoding-UNO · Alpaca-Farm-Eval, ε=0.1, 0.2, 0.4, and 0.8WinRate: 53% vs 47%; 53.5% vs 46.5%; 57.5% vs 42.5%; 52.5% vs 47.5%Helped
Use Decoding-OPT's optimal rejection distribution instead of Decoding-UNO's target distribution, with GPT-4 evaluationDecoding-OPT versus Decoding-UNO · Alpaca-Farm-Eval, ε=0.1, 0.2, 0.4, and 0.8WinRate: 54.5% vs 45.5%; 53% vs 47%; 53.5% vs 46.5%; 55% vs 45%Helped
Use multiple draft sequences in parallel with batch speculative decoding instead of non-batch speculative decodingBatch Speculative Decoding · Decoding under draft-target distribution mismatchExpected rejectionsHelped
Change the acceptance probability and rejection distribution while requiring distribution unbiasednessRejection-based decoding · Sequential decodingExpected rejectionsNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca-Farm-Eval

Benchmarks: Alpaca-Farm-Eval

Metrics: expected rejections TV distance win rate acceleration rate

Baselines: Speculative Decoding Decoding-UNO

Builds on: speculative decoding speculative sampling SpecInfer

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy