paper-with-me

Papers

DySpec: Faster Speculative Decoding with Dynamic Token Tree Structure

2024-10-15 · Yunfan Xiong, Ruoyu Zhang, Yanzeng Li, Tianhao Wu, Lei Zou

While speculative decoding has recently appeared as a promising direction for accelerating the inference of large language models (LLMs), the speedup and scalability are strongly bounded by the token acceptance rate. Prevalent methods usually organize predicted tokens as independent chains or fixed token trees, which fails to generalize to diverse query distributions. In this paper, we propose DySpec, a faster speculative decoding algorithm with a novel dynamic token tree structure. We begin by bridging the draft distribution and acceptance rate from intuitive and empirical clues, and successfully show that the two variables are strongly correlated. Based on this, we employ a greedy strategy to dynamically expand the token tree at run time. Theoretically, we show that our method can achieve optimal results under mild assumptions. Empirically, DySpec yields a higher acceptance rate and speedup than fixed trees. DySpec can drastically improve the throughput and reduce the latency of token generation across various data distribution and model sizes, which significantly outperforms strong competitors, including Specinfer and Sequoia. Under low temperature setting, DySpec can improve the throughput up to 9.1$\times$ and reduce the latency up to 9.4$\times$ on Llama2-70B. Under high temperature setting, DySpec can also improve the throughput up to 6.21$\times$, despite the increasing difficulty of speculating more than one token per step for draft model.

📄 PDF Abstract BibTeX arXiv:2410.11744

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Spec-LLaVA: Accelerating Vision-Language Models with Dynamic Tree-Based Speculative Decoding

2025-09-15 · Mingxiao Huo, Jiayi Zhang, Hewei Wang, Jinfeng Xu 외 arxiv

Vision-Language Models (VLMs) enable powerful multimodal reasoning but suffer from slow autoregressive inference, limiting their deployment in real-time applications. We introduce Spec-LLaVA, a system that applies specul…

Multimodal Reasoning

Speculative Speculative Decoding

2026-03-03 · Tanishq Kumar, Tri Dao, Avner May arxiv

Autoregressive decoding is bottlenecked by its sequential nature. Speculative decoding has become a standard way to accelerate inference by using a fast draft model to predict upcoming tokens from a slower target model, …

Fast Inference from Transformers via Speculative Decoding

2022-11-30 · Yaniv Leviathan, Matan Kalman, Yossi Matias

Inference from large autoregressive models like Transformers is slow - decoding K tokens takes K serial runs of the model. In this work we introduce speculative decoding - an algorithm to sample from autoregressive model…

Language ModelingLanguage Modelling

Annealed Relaxation of Speculative Decoding for Faster Autoregressive Image Generation

2026-01-14 · Xingyao Li, Fengzhuo Zhang, Cunxiao Du, Hui Ji arxiv

Despite significant progress in autoregressive image generation, inference remains slow due to the sequential nature of AR models and the ambiguity of image tokens, even when using speculative decoding. Recent works atte…

Image Generation

AMUSD: Asynchronous Multi-Device Speculative Decoding for LLM Acceleration

2024-10-22 · Bradley McDanel

Large language models typically generate tokens autoregressively, using each token as input for the next. Recent work on Speculative Decoding has sought to accelerate this process by employing a smaller, faster draft mod…