atlas

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

Dynamic-Width Speculative Beam Decoding for LLM Inference

AAAI 2025 · 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 Dynamic-Width Speculative Beam Decoding (DSBD), which combines speculative decoding with beam sampling using a draft forest, adaptive per-layer beam width, and forest-based parallel verification, reporting 1.5-1.9x speedup over beam sampling with lower energy.

Problem

LLM autoregressive inference is slow and energy-costly; speculative decoding preserves multinomial sampling distribution but yields single sequences of possibly suboptimal quality, while beam sampling gives better quality but is expensive in time, energy, and memory.

Approach

Verify draft beam trajectories from a small model layer by layer as a forest of trees so that the output follows the large model's beam sampling distribution, adapt the number of accepted beams per layer via an acceptance-count probability threshold, verify multiple trees in parallel with topology-aware masks, and keep only one KV cache by retaining the best beam for memory-constrained settings.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DSBD instead of beam sampling (W=5)Llama-2-13B · MT-BenchToken/s: 12.1 -> 16.5Helped
Use DSBD instead of beam sampling (W=5)Llama-2-13B · MT-BenchJ/token: 26.3 -> 16.1Helped
Use DSBD instead of beam sampling (W=5)Llama-3-8B · MT-BenchToken/s: 10.5 -> 17.8Helped
Use DSBD instead of beam sampling (W=5)Llama-3-8B · MT-BenchJ/token: 33.3 -> 22.9Helped
Use DSBD instead of beam sampling (W=5)Llama-2-13B · MT-BenchScore: 3.51 -> 3.52No clear effect
Use one input beam and one KV-cache sequenceDSBD · SQuADEM/EA: 74 -> 86Helped
Use one input beam and one KV-cache sequenceDSBD · SpiderEM/EA: 20 -> 31Helped
Use one input beam and one KV-cache sequenceDSBD · SQuADtokens/s: 27.11 -> 26.67No clear effect
Use one input beam and one KV-cache sequenceDSBD · SQuADJ/token: 12.36 -> 8.75Helped
Use a higher dynamic-width threshold (t=0.9 rather than t=0.7) (ablation)DSBD · Llama-2, SpiderspeedHelped
Use a higher dynamic-width threshold (t=0.9 rather than t=0.7) (ablation)DSBD · Llama-2, SpiderEA scoreHurt
Increase the draft beam width W_S (ablation)DSBD · Llama-2, SpiderEA scoreHelped

Surprising findings

Limitations

Experimental setup

Datasets: SQuAD Spider MT-Bench

Benchmarks: SQuAD Spider MT-Bench

Metrics: exact match execution accuracy MT-Bench score tokens/s joules per token

Baselines: beam sampling speculative decoding SpecInfer multinomial sampling

Builds on: speculative decoding SpecInfer beam sampling

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