NanoSpec: Accelerating Speculative Decoding using Minimalist In-Context Vocabularies
On the map: Efficient LLM inference and serving → Speculative decoding
Abstract (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 (~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× (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× 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.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 29 of its 36 references that are in the map. First posted on arXiv 8 Apr 2026.
Builds on
29 of 36 references.
Closest ancestors · 16
Same direction, newest first
- 2025Accelerating Mobile Language Model via Speculative Decoding and NPU-Coordinated Execution17 Oct
- 2025DynaSpec: Context-aware Dynamic Speculative Sampling for Large-Vocabulary Language Models11 Oct
- 2025VOCABTRIM: Vocabulary Pruning for Efficient Speculative Decoding in LLMs28 Jun
- 2025SpecEE: Accelerating Large Language Model Inference with Speculative Early Exiting11 Apr
- 2025Gumiho: A Hybrid Architecture to Prioritize Early Tokens in Speculative Decoding13 Mar
- 2025EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test3 Mar
- 2025CORAL: Learning Consistent Representations across Multi-step Training with Lighter Speculative Drafter24 Feb
- 2025FR-Spec: Accelerating Large-Vocabulary Language Models via Frequency-Ranked Speculative Sampling20 Feb
- 2025Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies31 Jan
- 2025Reward-Guided Speculative Decoding for Efficient LLM Reasoning31 Jan
- 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees24 Jun
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
4 more
- 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding15 Jan
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May
- 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
- 2022Fast Inference from Transformers via Speculative Decoding30 Nov
Other references · 13
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
- 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
- 2023A Comprehensive Overview of Large Language Modelscited by 639
- 2023A Comprehensive Survey on Pretrained Foundation Models: A History from BERT to ChatGPTcited by 364
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2024Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabulariescited by 113
- 2024Large Vocabulary Size Improves Large Language Modelscited by 11
- 2024Dynamic Vocabulary Pruning in Early-Exit LLMscited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026SlimSpec: Low-Rank Draft LM-Head for Accelerated Speculative Decoding
- 2026A Sparse Glimpse of the Whole: Train-Free Self-Speculative Decoding
- 2026Speculative Decoding with a Speculative Vocabulary
- 2026Balancing Coverage and Draft Latency in Vocabulary Trimming for Faster Speculative Decoding
- 2024SSSD: Simply-Scalable Speculative Decoding
- 2025OWL: Overcoming Window Length-Dependence in Speculative Decoding for Long-Context Inputs
- 2026SPEED-Bench: A Unified and Diverse Benchmark for Speculative Decoding
- 2026RACER: Retrieval-Augmented Contextual Rapid Speculative Decoding