atlas

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

Speculative Decoding with CTC-based Draft Model for LLM Inference Acceleration

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.

Proposes CTC-drafter, a speculative decoding draft module trained with sequence-level CTC loss on distilled ShareGPT data, achieving higher acceptance length and speedup over Medusa and Hydra on Vicuna models.

Problem

Speculative decoding draft models that predict multiple future tokens non-autoregressively ignore dependencies between draft tokens, lowering acceptance rate and thus LLM inference speedup.

Approach

Train the draft module with CTC loss so that probability mass over blank/repeat-expanded alignments captures inter-token dependencies; at inference, CTC transform removes blanks and duplicates from candidate sequences and masks the corresponding attention positions before verification.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use CTC-drafter instead of MedusaVicuna-7B speculative decoding · MT-benchspeedup: 2.13× -> 2.78×Helped
use CTC-drafter instead of HydraVicuna-7B speculative decoding · MT-benchspeedup: 2.36× -> 2.78×Helped
use CTC-drafter instead of MedusaVicuna-13B speculative decoding · MT-benchspeedup: 1.97× -> 2.52×Helped
use CTC-drafter instead of MedusaVicuna-33B speculative decoding · MT-benchspeedup: 1.93× -> 2.20×Helped
use CTC-drafter instead of MedusaVicuna-7B speculative decoding · GSM8Kspeedup: 2.33× -> 2.43×Helped
use CTC-drafter instead of MedusaVicuna-13B speculative decoding · GSM8Kspeedup: 2.21× -> 2.66×Helped
use CTC-drafter instead of MedusaVicuna-33B speculative decoding · GSM8Kspeedup: 2.10× -> 2.16×Helped
replace linear draft head and cross-entropy loss with transformer draft layer and CTC loss (ablation)Medusa verification speculative decoding · MT-benchaccepted tokens per decoding step: 2.58 -> 3.02Helped
replace Medusa verification with CTC transform and attention-map modification (ablation)CTC-drafter · MT-benchspeedup: 2.25× -> 2.78×Helped
replace Medusa verification with CTC transform and attention-map modification (ablation)CTC-drafter · MT-benchaccepted tokens per decoding step: 3.02 -> 3.56Helped
replace Medusa's linear draft head with a transformer draft layer (ablation)speculative decoding draft module · inference time consumptiondraft model time share: 3.71% -> 14.93%Hurt
add CTC transform for candidate sequences (ablation)CTC-drafter · inference time consumptionCTC transform time share: 5.36%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ShareGPT MT-bench GSM8K

Benchmarks: MT-bench GSM8K

Metrics: speedup ratio average accepted tokens per decoding step

Baselines: Vanilla autoregressive decoding Medusa Hydra

Builds on: Medusa Hydra Connectionist Temporal Classification Speculative Decoding Blockwise 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