paper-with-me

Papers

EMS-SD: Efficient Multi-sample Speculative Decoding for Accelerating Large Language Models

2024-05-13 · Yunsheng Ni, Chuanjian Liu, Yehui Tang, Kai Han, Yunhe Wang

Speculative decoding emerges as a pivotal technique for enhancing the inference speed of Large Language Models (LLMs). Despite recent research aiming to improve prediction efficiency, multi-sample speculative decoding has been overlooked due to varying numbers of accepted tokens within a batch in the verification phase. Vanilla method adds padding tokens in order to ensure that the number of new tokens remains consistent across samples. However, this increases the computational and memory access overhead, thereby reducing the speedup ratio. We propose a novel method that can resolve the issue of inconsistent tokens accepted by different samples without necessitating an increase in memory or computing overhead. Furthermore, our proposed method can handle the situation where the prediction tokens of different samples are inconsistent without the need to add padding tokens. Sufficient experiments demonstrate the efficacy of our method. Our code is available at https://github.com/niyunsheng/EMS-SD.

📄 PDF Abstract BibTeX arXiv:2405.07542

Code (1)

niyunsheng/ems-sd 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

Accelerating Large Language Model Decoding with Speculative Sampling

2023-02-02 · Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau 외

We present speculative sampling, an algorithm for accelerating transformer decoding by enabling the generation of multiple tokens from each transformer call. Our algorithm relies on the observation that the latency of pa…

Language ModelingLanguage ModellingLarge Language Modelmodel

Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding

2024-01-15 · Heming Xia, Zhe Yang, Qingxiu Dong, Peiyi Wang 외

To mitigate the high inference latency stemming from autoregressive decoding in Large Language Models (LLMs), Speculative Decoding has emerged as a novel decoding paradigm for LLM inference. In each decoding step, this m…

Language ModelingLanguage ModellingLarge Language Model

Accelerating LLM Inference with Staged Speculative Decoding

2023-08-08 · Benjamin Spector, Chris Re

Recent advances with large language models (LLM) illustrate their diverse capabilities. We propose a novel algorithm, staged speculative decoding, to accelerate LLM inference in small-batch, on-device scenarios. We addre…

Efficient Speculative Decoding for Llama at Scale: Challenges and Solutions

2025-08-11 · Bangsheng Tang, Carl Chengyan Fu, Fei Kou, Grigory Sizov 외 arxiv

Speculative decoding is a standard method for accelerating the inference speed of large language models. However, scaling it for production environments poses several engineering challenges, including efficiently impleme…

TPP-SD: Accelerating Transformer Point Process Sampling with Speculative Decoding

2025-07-12 · Shukai Gong, Yiyang Fu, Fengyuan Ran, Quyu Kong 외 arxiv

We propose TPP-SD, a novel approach that accelerates Transformer temporal point process (TPP) sampling by adapting speculative decoding (SD) techniques from language models. By identifying the structural similarities bet…