paper-with-me

Papers

Accelerating Large Language Model Decoding with Speculative Sampling

2023-02-02 · Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent SIfre, John Jumper

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 parallel scoring of short continuations, generated by a faster but less powerful draft model, is comparable to that of sampling a single token from the larger target model. This is combined with a novel modified rejection sampling scheme which preserves the distribution of the target model within hardware numerics. We benchmark speculative sampling with Chinchilla, a 70 billion parameter language model, achieving a 2-2.5x decoding speedup in a distributed setup, without compromising the sample quality or making modifications to the model itself.

📄 PDF Abstract BibTeX arXiv:2302.01318

Code (5)

apoorvumang/prompt-lookup-decoding pytorch
eth-sri/language-model-arithmetic pytorch
feifeibear/llmspeculativesampling pytorch
nlpodyssey/rwkv.f90
wdrink/simplear jax

Tasks

Language ModelingLanguage ModellingLarge Language Modelmodel

Methods 이 논문이 사용한 방법론

Chinchilla 설명 없음

Similar Papers 제목 키워드 기반

Cactus: Accelerating Auto-Regressive Decoding with Constrained Acceptance Speculative Sampling

2026-04-05 · Yongchang Hao, Lili Mou arxiv

Speculative sampling (SpS) has been successful in accelerating the decoding throughput of auto-regressive large language models by leveraging smaller draft models. SpS strictly enforces the generated distribution to matc…

Efficient Adaptive Rejection Sampling for Accelerating Speculative Decoding in Large Language Models

2025-12-15 · Chendong Sun, Ali Mao, Lei Xu, mingmin Chen arxiv

Speculative Decoding is a prominent technique for accelerating the autoregressive inference of large language models (LLMs) by employing a fast draft model to propose candidate token sequences and a large target model to…

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…

Hierarchical Verification of Speculative Beams for Accelerating LLM Inference

2025-07-30 · Jaydip Sen, Harshitha Puvvala, Subhasis Dasgupta arxiv

Large language models (LLMs) have achieved remarkable success across diverse natural language processing tasks but face persistent challenges in inference efficiency due to their autoregressive nature. While speculative …

Speculative Safety-Aware Decoding

2025-08-25 · Xuekang Wang, Shengyu Zhu, Xueqi Cheng arxiv

Despite extensive efforts to align Large Language Models (LLMs) with human values and safety rules, jailbreak attacks that exploit certain vulnerabilities continuously emerge, highlighting the need to strengthen existing…