paper-with-me

Papers

SAM Decoding: Speculative Decoding via Suffix Automaton

2024-11-16 · Yuxuan Hu, Ke Wang, Xiaokang Zhang, Fanjin Zhang, Cuiping Li, Hong Chen, Jing Zhang

Speculative decoding (SD) has been demonstrated as an effective technique for lossless LLM inference acceleration. Retrieval-based SD methods, one kind of model-free method, have yielded promising speedup, but they often rely on incomplete retrieval resources, inefficient retrieval methods, and are constrained to certain domains. This paper presents a novel retrieval-based speculative decoding method that adapts suffix automaton (SAM) for efficient and accurate draft generation by utilizing common text corpus and dynamic text sequence. Unlike existing $n$-gram matching methods, SAM-Decoding finds the exact longest suffix match, achieving an average time complexity of O(1) per generation step of SAM update and suffix retrieval. It can also integrate with existing methods, adaptively selecting a draft generation strategy based on match length to generalize to broader domains. Extensive experiments on Spec-Bench show that our method is $18\%+$ faster than other retrieval-based SD methods. Additionally, when combined with advanced EAGLE-2, it provides an additional speedup of $3.28\%$ -- $11.13\%$ across various-sized LLM backbones. Our code is available at our \href{https://github.com/hyx1999/SAM-Decoding}{repository}.

📄 PDF Abstract BibTeX arXiv:2411.10666

Code (1)

hyx1999/sam-decoding 공식 구현 pytorch

Tasks

RetrievalText Generation

Methods 이 논문이 사용한 방법론

SAM 설명 없음
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 제목 키워드 기반

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-b…

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model+3

Approximate Speculative Decoding

2026-08-04 · Yuannuo Feng, Zegang Peng, Yuxin Xie, Yubing Ye 외 arxiv

Speculative decoding accelerates autoregressive generation by verifying a draft block with a target model in parallel. Under standard greedy verification, decoding stops at the first draft token that differs from the tar…

Mirror Speculative Decoding: Breaking the Serial Barrier in LLM Inference

2025-10-15 · Nikhil Bhendawade, Kumari Nishu, Arnav Kundu, Chris Bartels 외 arxiv

Speculative decoding accelerates LLM inference by using a draft model to look ahead, but gains are capped by the cost of autoregressive draft generation: increasing draft size elevates acceptance rates but introduces add…

Self-Speculative Biased Decoding for Faster Re-Translation

2025-09-26 · Linxiao Zeng, Haoyun Deng, Kangyuan Shu, Shizhen Wang arxiv

Large language models achieve strong machine translation quality but incur high inference cost and latency, posing challenges for simultaneous translation. Re-translation provides a practical solution for off-the-shelf L…

Machine Translation

Beat the long tail: Distribution-Aware Speculative Decoding for RL Training

2025-11-17 · Zelei Shao, Vikranth Srivatsa, Sanjana Srivastava, Qingyang Wu 외 arxiv

Reinforcement learning(RL) post-training has become essential for aligning large language models (LLMs), yet its efficiency is increasingly constrained by the rollout phase, where long trajectories are generated token by…

Reinforcement Learning