atlas

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

Kangaroo: Lossless Self-Speculative Decoding for Accelerating LLMs via Double Early Exiting

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

Kangaroo proposes lossless self-speculative decoding that drafts with a shallow sub-network of the target LLM plus a lightweight trained adapter and a token-level confidence-based early exit, achieving up to 2.04x walltime speedup on Spec-Bench with Vicuna.

Problem

Speculative decoding normally needs a separately trained draft model, which is costly; existing self-drafting methods (Medusa, REST, Lookahead) trade off token acceptance rate against drafting latency.

Approach

Use the first l layers of the target LLM plus its frozen LM head as the draft model, bridged by a small adapter (one multi-head attention layer and two norms, no FFN), and add a second early exit that halts drafting when the draft's top-1 probability falls below a threshold, extended to dynamic token trees.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use dynamic tree verification instead of single-sequence decodingKangaroo on Vicuna-7B · Spec-Bench averagewalltime speedup: 1.50× -> 1.72×Helped
use dynamic tree verification instead of single-sequence decodingKangaroo on Vicuna-13B · Spec-Bench averagewalltime speedup: 1.44× -> 1.65×Helped
add the target model's LM Head to the Kangaroo adapter (ablation)Kangaroo on Vicuna-7B · Spec-Bench averagewalltime speedup: 1.50 × -> 1.44 ×Hurt
use a 1-layer Transformer adapter (ablation)Kangaroo on Vicuna-7B · Spec-Bench averagewalltime speedup: 1.50 × -> 1.37 ×Hurt
replace the attention adapter with an MLP-only adapter (ablation)Kangaroo on Vicuna-7B · Spec-Bench averagewalltime speedup: 1.50 × -> 1.22 ×Hurt
use adjusted rather than original confidence for early stopping at temperature 0.2 (ablation)Kangaroo on Vicuna-7B · Spec-Bench averagewalltime speedup: 1.48× -> 1.34×Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ShareGPT Spec-Bench

Benchmarks: Spec-Bench

Metrics: walltime speedup ratio compression rate consistent token acceptance rate

Baselines: Lookahead Medusa REST SpS Draft & Verify

Builds on: speculative decoding Medusa early exiting Draft & Verify

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