atlas

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

SWIFT: On-the-Fly Self-Speculative Decoding for LLM Inference Acceleration

ICLR 2025 · Large language models › Reasoning and chain of thought · approach: Speculative decoding · 0 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 SWIFT, a plug-and-play self-speculative decoding method that uses on-the-fly layer skipping, with context-based layer-set optimization and confidence-aware drafting, achieving 1.3-1.6x lossless speedups without auxiliary models or training.

Problem

Speculative decoding usually needs extra draft-model parameters or extensive training, and prior layer-skipping self-speculative methods (Self-SD) need hours of offline Bayesian optimization and are not task-generalizable; Jacobi-based plug-and-play methods give limited speedups.

Approach

Use the target LLM with a subset of intermediate layers skipped as the draft model, and adaptively optimize the skipped-layer set during inference using a step-level matchness score on LLM-generated context (random search plus periodic Bayesian optimization), combined with early-stopping drafting and confidence-based dynamic top-k verification.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use on-the-fly layer-skipping speculative decoding instead of LookaheadLLaMA-2-13B · CNN/DMspeedup: 1.16× -> 1.37×Helped
use on-the-fly layer-skipping speculative decoding instead of LookaheadLLaMA-2-13B · GSM8Kspeedup: 1.29× -> 1.31×Helped
use on-the-fly layer-skipping speculative decoding instead of LookaheadLLaMA-2-13B · TinyStoriesspeedup: 1.37× -> 1.53×Helped
add early-stopping drafting (ablation)Swift · CNN/DMspeedup: 0.896× -> 1.560×Helped
add early-stopping drafting (ablation)Swift · CNN/DMtoken acceptance rate: 0.43 -> 0.98Helped
add dynamic verification (ablation)Swift · CNN/DMspeedup: 1.342× -> 1.560×Helped
add dynamic verification (ablation)Swift · CNN/DMmean generated length: 4.39 -> 5.82Helped
add the layer-set optimization phase (ablation)Swift · CNN/DMspeedup: 1.224× -> 1.560×Helped
set context window γ to 16 instead of 32 (ablation)Swift · CNN/DMspeedup: 1.560× -> 1.341×Hurt
set context window γ to 64 instead of 32 (ablation)Swift · CNN/DMspeedup: 1.560× -> 1.552×No clear effect
set context window γ to 128 instead of 32 (ablation)Swift · CNN/DMspeedup: 1.560× -> 1.550×No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: CNN/Daily Mail GSM8K TinyStories HumanEval Alpaca WMT14 DE-EN Nature Questions

Benchmarks: CNN/Daily Mail GSM8K TinyStories HumanEval

Metrics: wall-time speedup mean generated length token acceptance rate pass@1 pass@10 tokens/s

Baselines: Parallel Decoding Lookahead Decoding Self-SD LayerSkip Vanilla autoregressive decoding

Builds on: Self-SD speculative sampling Lookahead decoding Parallel 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