paper-with-me

홈 › Papers

NanoSpec: Accelerating Speculative Decoding using Minimalist In-Context Vocabularies

2026-04-08 · Zhiyang Chen, Daliang Xu, Yinyuan Zhang, Chenghua Wang, Mengwei Xu, Yun Ma arxiv

The massive vocabulary sizes of large language models, often exceeding 100k tokens, impose a computational bottleneck on the final linear projection layer during speculative decoding. Existing vocabulary pruning solutions rely on static or coarsely-grained sub-vocabularies that necessitate large active sizes ($\sim$30k) to maintain draft quality. We propose NanoSpec, a novel training-free approach that breaks this trade-off by dynamically constructing a minimalist, context-aware active vocabulary for each generation step. Leveraging the inherent temporal locality of language generation, NanoSpec achieves high coverage while slashing the average vocabulary size by over $40\times$ (to $<$3k tokens) without requiring any auxiliary trained parameters. To realize the theoretical benefits of such high sparsity on modern hardware, we introduce a system-algorithm co-design that overcomes the inefficiencies of sparse memory access through asynchronous gathering and GPU-resident state management. As a complementary plug-and-play module, NanoSpec cuts draft time by an average of 51.6\%, delivering a $1.17$-$1.29\times$ end-to-end speedup over the state-of-the-art speculative decoding methods EAGLE-2 and EAGLE-3 across 7 tasks and outperforming complex training-based pruning baselines.

📄 PDF Abstract BibTeX arXiv:2605.26444

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SpecPV: Improving Self-Speculative Decoding for Long-Context Generation via Partial Verification

2025-12-02 · Zhendong Tan, Xingjun Zhang, Chaoyi Hu, Junjie Peng 외 arxiv

Growing demands from tasks like code generation, deep reasoning, and long-document understanding have made long-context generation a crucial capability for large language models (LLMs). Speculative decoding is one of the…

Code Generation

Cacheback: Speculative Decoding With Nothing But Cache

2025-11-15 · Zhiyao Ma, In Gim, Lin Zhong arxiv

We present Cacheback Decoding, a training-free and model-agnostic speculative decoding method that exploits the locality in language to accelerate Large Language Model (LLM) inference. Cacheback leverages only Least Rece…

SpecExtend: A Drop-in Enhancement for Speculative Decoding of Long Sequences

2025-05-27 · Jungyoub Cha, Hyunjong Kim, Sungzoon Cho

Speculative decoding is a widely adopted technique for accelerating inference in large language models (LLMs), but its performance degrades on long inputs due to increased attention cost and reduced draft accuracy. We in…

16kLong-Context Understanding

SSSD: Simply-Scalable Speculative Decoding

2024-11-08 · Michele Marzollo, Jiawei Zhuang, Niklas Roemer, Lorenz K. Müller 외

Over the past year, Speculative Decoding has gained popularity as a technique for accelerating Large Language Model inference. While several methods have been introduced, most struggle to deliver satisfactory performance…

Language ModelingLanguage ModellingLarge Language Model

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