atlas

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

EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty

ICML 2024 · Large language models › Reasoning and chain of thought · approach: Speculative decoding · 6 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 EAGLE, a speculative sampling framework that drafts autoregressively at the second-to-top-layer feature level and feeds in a one-step-advanced token sequence to resolve feature sampling uncertainty, giving lossless LLM speedups.

Problem

Autoregressive decoding of LLMs is slow; existing speculative sampling needs a good small draft model (none exists for LLaMA2-7B-sized models) or has low-accuracy drafts, and feature-level drafting is hampered by sampling uncertainty.

Approach

Autoregress over second-to-top-layer features (simpler than tokens) with a lightweight decoder-layer draft head, and feed in the token sequence advanced by one step so the draft sees the sampled outcome, removing feature ambiguity; tree attention and multi-round speculative sampling keep output distribution exact.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use feature-level autoregression instead of token-level autoregression (ablation)speculative draft model · MT-bench, Vicuna 7Bspeedup: 1.5x to 1.9xHelped
add a token sequence advanced by one time step to the feature inputs (ablation)EAGLE draft model · MT-bench, Vicuna 7Bspeedup: 1.9x to 2.8xHelped
use tree draft and verification instead of chain draft and verification (ablation)EAGLE · MT-bench, T=0average acceptance length: 3.20 to 3.94 (+0.74); 3.00 to 3.62 (+0.62); 3.23 to 3.98 (+0.75); 3.18 to 3.90 (+0.68); 2.97 to 3.68 (+0.71); 3.12 to 3.Helped
use fixed ShareGPT answers rather than answers generated by the target LLM for training (ablation)EAGLE · MT-bench, LLaMA2-Chat 7B, T=0speedup: 2.88x to 2.78xHurt
use feature inputs rather than token-only inputs (ablation)draft model · MT-bench, Vicuna 7Bdraft performanceHelped
combine feature and token inputs rather than use feature-only inputs (ablation)draft model · MT-bench, Vicuna 7Bacceptance rate with one imprecise featureHelped
use feature-and-shifted-token inputs rather than feature-and-unshifted-token inputs (ablation)EAGLE draft model · MT-bench, Vicuna 7Bdraft performanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: ShareGPT

Benchmarks: MT-bench HumanEval GSM8K Alpaca

Metrics: walltime speedup ratio average acceptance length acceptance rate n-alpha throughput

Baselines: Lookahead Medusa Speculative sampling (7B draft) DistillSpec vanilla autoregressive decoding gpt-fast

Builds on: speculative sampling Medusa SpecInfer DistillSpec

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