atlas

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

Break the Sequential Dependency of LLM Inference Using Lookahead Decoding

ICML 2024 · Large language models › Reasoning and chain of thought · approach: Speculative decoding · 3 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.

Proposes Lookahead decoding, an exact parallel decoding method that uses Jacobi iteration trajectories to generate and verify n-grams without a draft model, achieving up to 1.8x speedup on MT-Bench and up to 4x with multi-GPU lookahead parallelism.

Problem

Autoregressive LLM decoding is memory-bandwidth bound and sequential, leading to high latency; existing speedups like speculative decoding need a draft model whose acceptance rate limits gains and which does not generalize.

Approach

Track the Jacobi decoding trajectory in a fixed 2D lookahead window to generate disjoint n-grams in parallel, cache them in an n-gram pool, and verify candidates from the pool in a parallel verification branch within the same forward step, all without an auxiliary model; also introduces lookahead parallelism across GPUs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add Lookahead decoding to autoregressive decodingLLaMA-2-Chat-7B with FlashAttention · MT-Benchspeedup: 1.07x -> 1.9xHelped
Add FlashAttentionLookahead decoding · End-to-end inferencespeedup: 20%Helped
Use Lookahead Parallelism on 8 GPUsCode completion · Code completion tasksspeedup: 4xHelped
Use tensor or pipeline parallelism instead of single-GPU servingDistributed inference · Multiple-GPU settingsspeedup: 0.75x-0.82xHurt
Use Lookahead decoding with samplingLLaMA-2-7B-Chat · CNN/Daily Mail and XSumRouge scores: 36.55 -> 36.53; 19.15 -> 19.20No clear effect
Use a minimal lookahead branch (W=1) instead of balanced branches (ablation)Lookahead decoding · MT-Benchspeedup: 1.78x vs 1.36x; 1.04x; 1.46xHurt
Use a tiny verification branch (G=1) instead of balanced branches (ablation)Lookahead decoding · MT-Benchspeedup: 1.61x vs 1.78xHurt
Add prompt as reference to the balanced Lookahead configuration (ablation)Lookahead decoding (N=5, W=15, G=15) · MT-Benchspeedup: 1.78x -> 1.88xHelped
Use greedy sampling instead of temperature 1.0 samplingLookahead decoding · CNN/Daily Mail and XSumspeedup: 1.46x -> 1.57x; 1.50x -> 1.60xHelped

Surprising findings

Limitations

Experimental setup

Datasets: MT-Bench GSM8K HumanEval MBPP ClassEval XSum CNN/Daily Mail

Benchmarks: MT-Bench GSM8K HumanEval MBPP ClassEval XSum CNN/Daily Mail

Metrics: speedup step compression ratio ROUGE-1 ROUGE-2 ROUGE-L throughput

Baselines: HuggingFace greedy search FlashAttention autoregressive decoding prompt lookup decoding tensor parallelism (DeepSpeed) pipeline parallelism (Accelerate)

Builds on: speculative decoding Jacobi decoding SpecInfer FlashAttention prompt lookup decoding

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