paper-with-me

Papers

Parallel Speculative Decoding with Adaptive Draft Length

2024-08-13 · Tianyu Liu, Yun Li, Qitan Lv, Kai Liu, Jianchen Zhu, Winston Hu

Speculative decoding (SD), where an extra draft model is employed to provide multiple \textit{draft} tokens first and then the original target model verifies these tokens in parallel, has shown great power for LLM inference acceleration. However, existing SD methods suffer from the mutual waiting problem, i.e., the target model gets stuck when the draft model is \textit{guessing} tokens, and vice versa. This problem is directly incurred by the asynchronous execution of the draft model and the target model, and is exacerbated due to the fixed draft length in speculative decoding. To address these challenges, we propose a conceptually simple, flexible, and general framework to boost speculative decoding, namely \textbf{P}arallel sp\textbf{E}culative decoding with \textbf{A}daptive d\textbf{R}aft \textbf{L}ength (PEARL). Specifically, PEARL proposes \textit{pre-verify} to verify the first draft token in advance during the drafting phase, and \textit{post-verify} to generate more draft tokens during the verification phase. PEARL parallels the drafting phase and the verification phase via applying the two strategies, and achieves adaptive draft length for different scenarios, which effectively alleviates the mutual waiting problem. Moreover, we theoretically demonstrate that the mean accepted tokens of PEARL is more than existing \textit{draft-then-verify} works. Experiments on various text generation benchmarks demonstrate the effectiveness of our \name, leading to a superior speedup performance up to \textbf{3.79$\times$} and \textbf{1.52$\times$}, compared to auto-regressive decoding and vanilla speculative decoding, respectively.

📄 PDF Abstract BibTeX arXiv:2408.11850

Code (1)

smart-lty/parallelspeculativedecoding 공식 구현 pytorch

Tasks

Text Generation

Similar Papers 제목 키워드 기반

D-cut: Adaptive Verification Depth Pruning for Batched Speculative Decoding

2026-07-16 · Tianyu Liu, Yuhao Shen, Rui Cen, Junhan Shi 외 arxiv

Speculative decoding accelerates large language model (LLM) inference without compromising output quality. Recent parallel drafting methods further improve single-request performance by decoupling draft length from draft…

PACER: Blockwise Pre-verification for Speculative Decoding with Adaptive Length

2026-02-01 · Situo Zhang, Yifan Zhang, Zichen Zhu, Hankun Wang 외 arxiv

Speculative decoding (SD) is a powerful technique for accelerating the inference process of large language models (LLMs) without sacrificing accuracy. Typically, SD employs a small draft model to generate a fixed number …

Performance-Driven Policy Optimization for Speculative Decoding with Adaptive Windowing

2026-05-14 · Jie Jiang, Xing Sun, Ruotian Chen, Jianan Su 외 arxiv

Speculative decoding accelerates LLM inference by having a lightweight draft model propose speculative windows of candidate tokens for parallel verification by a larger target model. In practice, speculative efficiency i…

Reinforcement Learning

DiffuSpec: Unlocking Diffusion Language Models for Speculative Decoding

2025-09-28 · Guanghao Li, Zhihui Fu, Min Fang, Qibin Zhao 외 arxiv

As large language models (LLMs) scale up, accuracy improves, but the autoregressive (AR) nature of decoding increases latency since each token requires a serial forward pass. Speculative decoding addresses this by employ…

PARD-2: Target-Aligned Parallel Draft Model for Dual-Mode Speculative Decoding

2026-05-09 · Zihao An, Taichi Liu, Ziqiong Liu, Dong Li 외 arxiv

Speculative decoding accelerates Large Language Models (LLMs) inference by using a lightweight draft model to propose candidate tokens that are verified in parallel by the target model. However, existing draft model trai…