mlsanityData to 7 Oct 2026

DynaSpec: Context-aware Dynamic Speculative Sampling for Large-Vocabulary Language Models

arXiv 2510.13847 ↗First posted 11 Oct 2025cs.CL cs.AI cs.LGcited by 4

On the map: Efficient LLM inference and serving → Speculative decoding

Abstract (arXiv)

Speculative decoding accelerates LLM inference by letting a small drafter propose multiple tokens which a large target model verifies once per speculation step. As vocabularies scale past 10e5 tokens,verification cost in the target model is largely unchanged, but the drafter can become bottlenecked by its O(|V|d) output projection. Recent approaches (e.g., FR-Spec, VocabTrim) mitigate this by restricting drafting to a fixed, frequency-ranked shortlist; however, such static truncation is corpus-dependent and suppresses rare or domain-specific tokens, reducing acceptance and limiting speedups. We propose DynaSpec, a context-dependent dynamic shortlisting mechanism for large-vocabulary speculative decoding. DynaSpec trains lightweight meta-classifiers that route each context to a small set of coarse token clusters; the union of the top-selected clusters defines the drafter's shortlist, while the target model still verifies over the full vocabulary, preserving exactness. Systems-wise, routing is overlapped with draft computation via parallel execution streams, reducing end-to-end overhead. Across standard speculative decoding benchmarks, DynaSpec consistently improves mean accepted length-recovering 98.4% of full-vocabulary performance for Llama-3-8B versus 93.6% for fixed-shortlist baselines-and achieves up to a 2.23x throughput gain compared to 1.91x for static approaches on the dataset with rare tokens.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 50 of its 54 references that are in the map. First posted on arXiv 11 Oct 2025.

Builds on

50 of 54 references.

Closest ancestors · 16

Same direction, newest first

  1. 2025VOCABTRIM: Vocabulary Pruning for Efficient Speculative Decoding in LLMs28 Jun
  2. 2025Gumiho: A Hybrid Architecture to Prioritize Early Tokens in Speculative Decoding13 Mar
  3. 2025FR-Spec: Accelerating Large-Vocabulary Language Models via Frequency-Ranked Speculative Sampling20 Feb
  4. 2025Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies31 Jan
  5. 2024MagicDec: Breaking the Latency-Throughput Tradeoff for Long Context Generation with Speculative Decoding20 Aug
  6. 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees24 Jun
  7. 2024TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decoding18 Apr
  8. 2024Hydra: Sequentially-Dependent Draft Heads for Medusa Decoding7 Feb
  9. 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
  10. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
  11. 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding15 Jan
  12. 2023REST: Retrieval-Based Speculative Decoding14 Nov
4 more
  1. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  2. 2022Fast Inference from Transformers via Speculative Decoding30 Nov
  3. 2022Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generation30 Mar
  4. 2021Instantaneous Grammatical Error Correction with Shallow Aggressive Decoding9 Jun

Other references · 34

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  7. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  8. 2025Qwen3 Technical Reportcited by 8,195
  9. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  10. 2020Scaling Laws for Neural Language Modelscited by 6,411
  11. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  12. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
22 more
  1. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  3. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  4. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  5. 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
  6. 2024Mixtral of Expertscited by 1,785
  7. 2025Gemma 3 Technical Reportcited by 1,686
  8. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  9. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
  10. 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
  11. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 318
  12. 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
  13. 2024Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabulariescited by 113
  14. 2024Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMscited by 94
  15. 2021Fast Multi-Resolution Transformer Fine-tuning for Extreme Multi-label Text Classificationcited by 66
  16. 2023Inference with Reference: Lossless Acceleration of Large Language Modelscited by 63
  17. 2021LightXML: Transformer with Dynamic Negative Sampling for High-Performance Extreme Multi-label Text Classificationcited by 61
  18. 2025Over-Tokenized Transformer: Vocabulary is Generally Worth Scalingcited by 42
  19. 2024Cut Your Losses in Large-Vocabulary Language Modelscited by 35
  20. 2025Scaling Embedding Layers in Language Modelscited by 19
  21. 2022CascadeXML: Rethinking Transformers for End-to-end Multi-resolution Training in Extreme Multi-label Classificationcited by 12
  22. 2021InceptionXML: A Lightweight Framework with Synchronized Negative Sampling for Short Text Extreme Classificationcited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inference
  2. 2024Recursive Speculative Decoding: Accelerating LLM Inference via Sampling Without Replacement
  3. 2026Speculative Decoding with a Speculative Vocabulary
  4. 2025OWL: Overcoming Window Length-Dependence in Speculative Decoding for Long-Context Inputs
  5. 2024Closer Look at Efficient Inference Methods: A Survey of Speculative Decoding
  6. 2024Speculative Streaming: Fast LLM Inference without Auxiliary Models
  7. 2026DIVERSED: Relaxed Speculative Decoding via Dynamic Ensemble Verification
  8. 2025DEL: Context-Aware Dynamic Exit Layer for Efficient Self-Speculative Decoding