paper-with-me

Papers

SuffixDecoding: Extreme Speculative Decoding for Emerging AI Applications

2024-11-07 · Gabriele Oliaro, Zhihao Jia, Daniel Campos, Aurick Qiao

Speculative decoding is widely adopted to reduce latency in large language model (LLM) inference by leveraging smaller draft models capable of handling diverse user tasks. However, emerging AI applications, such as LLM-based agents, present unique workload characteristics: instead of diverse independent requests, agentic frameworks typically submit repetitive inference requests, such as multi-agent pipelines performing similar subtasks or self-refinement loops iteratively enhancing outputs. These workloads result in long and highly predictable sequences, which current speculative decoding methods do not effectively exploit. To address this gap, we introduce \emph{SuffixDecoding}, a novel method that utilizes efficient suffix trees to cache long token sequences from prompts and previous outputs. By adaptively speculating more tokens when acceptance likelihood is high and fewer when it is low, SuffixDecoding effectively exploits opportunities for longer speculations while conserving computation when those opportunities are limited. Evaluations on agentic benchmarks, including SWE-Bench and Text-to-SQL, demonstrate that SuffixDecoding achieves speedups of up to 5.3$\times$, outperforming state-of-the-art methods -- 2.8$\times$ faster than model-based approaches like EAGLE-2/3 and 1.9$\times$ faster than model-free approaches such as Token Recycling. SuffixDecoding is open-sourced at https://github.com/snowflakedb/ArcticInference.

📄 PDF Abstract BibTeX arXiv:2411.04975

Code (1)

snowflakedb/arcticinference 공식 구현 pytorch

Tasks

Code GenerationLanguage ModelingLanguage ModellingLarge Language ModelmodelText to SQLText-To-SQL

Similar Papers 제목 키워드 기반

SpecMemo: Speculative Decoding is in Your Pocket

2025-05-16 · Selin Yıldırım, Deming Chen

Recent advancements in speculative decoding have demonstrated considerable speedup across a wide array of large language model (LLM) tasks. Speculative decoding inherently relies on sacrificing extra memory allocations t…

Large Language Model

Constrained Decoding with Speculative Lookaheads

2024-12-09 · Nishanth Nakshatri, Shamik Roy, Rajarshi Das, Suthee Chaidaroon 외

Constrained decoding with lookahead heuristics (CDLH) is a highly effective method for aligning LLM generations to human preferences. However, the extensive lookahead roll-out operations for each generated token makes CD…

BASS: Batched Attention-optimized Speculative Sampling

2024-04-24 · Haifeng Qian, Sujan Kumar Gonugondla, Sungsoo Ha, Mingyue Shang 외

Speculative decoding has emerged as a powerful method to improve latency and throughput in hosting large language models. However, most existing implementations focus on generating a single sequence. Real-world generativ…

GPUHumanEval

Out-of-Vocabulary Sampling Boosts Speculative Decoding

2025-06-02 · Nadav Timor, Jonathan Mamou, Oren Pereg, Hongyang Zhang 외

Speculative decoding relies on fast and accurate drafters. Recent state-of-the-art language models employ larger and larger vocabularies, which significantly slows down drafters. One promising approach to boost the effic…

Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generation

2022-03-30 · Heming Xia, Tao Ge, Peiyi Wang, Si-Qing Chen 외

We propose Speculative Decoding (SpecDec), for the first time ever, to formally study exploiting the idea of speculative execution to accelerate autoregressive (AR) decoding. Speculative Decoding has two innovations: Spe…

Abstractive Text SummarizationMachine TranslationTranslation