paper-with-me

Papers

Block Verification Accelerates Speculative Decoding

2024-03-15 · Ziteng Sun, Uri Mendlovic, Yaniv Leviathan, Asaf Aharoni, Jae Hun Ro, Ahmad Beirami, Ananda Theertha Suresh

Speculative decoding is an effective method for lossless acceleration of large language models during inference. It uses a fast model to draft a block of tokens which are then verified in parallel by the target model, and provides a guarantee that the output is distributed identically to a sample from the target model. In prior works, draft verification is performed independently token-by-token. Surprisingly, we show that this approach is not optimal. We propose Block Verification, a simple draft verification algorithm that verifies the entire block jointly and provides additional wall-clock speedup. We prove that the proposed mechanism is optimal in the expected number of tokens produced each iteration and specifically is never worse than the standard token-level verification. Empirically, block verification provides modest but consistent wall-clock speedups over the standard token verification algorithm of 5%-8% in a range of tasks and datasets. Given that block verification does not increase code complexity, maintains the strong lossless guarantee of the standard speculative decoding verification algorithm, cannot deteriorate performance, and, in fact, consistently improves it, it can be used as a good default in speculative decoding implementations.

📄 PDF Abstract BibTeX arXiv:2403.10444

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

DSpark: Confidence-Scheduled Speculative Decoding with Semi-Autoregressive Generation

2026-07-06 · Xin Cheng, Xingkai Yu, Chenze Shao, Jiashi Li 외 arxiv

Speculative decoding accelerates Large Language Model (LLM) inference by decoupling draft generation from target verification. While recent parallel drafters efficiently propose long token sequences in a single forward p…

D^2SD: Accelerating Speculative Decoding with Dual Diffusion Draft Models

2026-06-03 · Liyuan Zhang, Jiarui Zhang, Jinwei Yao, Ran Yan 외 arxiv

Speculative decoding accelerates autoregressive large language model inference by drafting multiple tokens and verifying them in a single target-model forward pass. Recent diffusion-based drafters generate an entire bloc…

Approximate Speculative Decoding

2026-08-04 · Yuannuo Feng, Zegang Peng, Yuxin Xie, Yubing Ye 외 arxiv

Speculative decoding accelerates autoregressive generation by verifying a draft block with a target model in parallel. Under standard greedy verification, decoding stops at the first draft token that differs from the tar…

FlexDraft: Flexible Speculative Decoding via Attention Tuning and Bonus-Guided Calibration

2026-05-19 · Yaojie Zhang, Jianuo Huang, Junlong Ke, Yuhang Han 외 arxiv

Speculative decoding accelerates memory-bound LLM inference without quality degradation by using a fast drafter to propose multiple candidate tokens and the target model to verify them in parallel. However, conventional …

Continual Pretraining

Greedy Multi-Path Block Verification for Faster Decoding in Speculative Sampling

2026-02-18 · Rahul Thomas, Arka Pal arxiv

The goal of $L$-step speculative decoding is to accelerate autoregressive decoding of a target model by using a cheaper draft model to generate a candidate path of $L$ tokens. Based on a verification algorithm involving …