mlsanityData to 7 Oct 2026

SpecTr: Fast Speculative Decoding via Optimal Transport

arXiv 2310.15141 ↗First posted 23 Oct 2023cs.LG cs.CL cs.DScited by 129

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

Abstract (arXiv)

Autoregressive sampling from large language models has led to state-of-the-art results in several natural language tasks. However, autoregressive sampling generates tokens one at a time making it slow, and even prohibitive in certain tasks. One way to speed up sampling is textitspeculative decoding: use a small model to sample a textitdraft (block or sequence of tokens), and then score all tokens in the draft by the large language model in parallel. A subset of the tokens in the draft are accepted (and the rest rejected) based on a statistical method to guarantee that the final output follows the distribution of the large model. In this work, we provide a principled understanding of speculative decoding through the lens of optimal transport (OT) with textitmembership cost. This framework can be viewed as an extension of the well-known textitmaximal-coupling problem. This new formulation enables us to generalize the speculative decoding method to allow for a set of k candidates at the token-level, which leads to an improved optimal membership cost. We show that the optimal draft selection algorithm (transport plan) can be computed via linear programming, whose best-known runtime is exponential in k. We then propose a valid draft selection algorithm whose acceptance probability is (1-1/e)-optimal multiplicatively. Moreover, it can be computed in time almost linear with size of domain of a single token. Using this new draft selection algorithm, we develop a new autoregressive sampling algorithm called textitSpecTr, which provides speedup in decoding while ensuring that there is no quality degradation in the decoded output. We experimentally demonstrate that for state-of-the-art large language models, the proposed approach achieves a wall clock speedup of 2.13X, a further 1.37X speedup over speculative decoding on standard benchmarks.

Key facts. Cited by 129 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 15 of its 29 references that are in the map. First posted on arXiv 23 Oct 2023.

Builds on

15 of 29 references.

Closest ancestors · 2

Same direction, newest first

  1. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  2. 2022Fast Inference from Transformers via Speculative Decoding30 Nov

Other references · 13

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  4. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  5. 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,277
  6. 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
  7. 2018Hierarchical Neural Story Generationcited by 1,182
  8. 2020Efficient Transformers: A Surveycited by 784
  9. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 318
  10. 2013One Billion Word Benchmark for Measuring Progress in Statistical Language Modelingcited by 302
  11. 2017Controlling Linguistic Style Aspects in Neural Language Generationcited by 147
  12. 2023Inference with Reference: Lossless Acceleration of Large Language Modelscited by 63
1 more
  1. 2022Lossless Acceleration for Seq2seq Generation with Aggressive Decodingcited by 18

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 46; 2025: 50; 2026: 32.

129 papers.

Sort:

By area:

  1. 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertaintycited by 564
  2. 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Treescited by 362
  3. 2025EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Testcited by 318
  4. 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decodingcited by 295
  5. 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decodingcited by 266
  6. 2024A Survey on Efficient Inference for Large Language Modelscited by 197
  7. 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
  8. 2023Controlled Decoding from Language Modelscited by 133
  9. 2024Language Model Cascades: Token-level uncertainty and beyondcited by 115
  10. 2024Fast Best-of-N Decoding via Speculative Rejectioncited by 112
  11. 2025Reward-Guided Speculative Decoding for Efficient LLM Reasoningcited by 106
  12. 2024Sequoia: Scalable, Robust, and Hardware-aware Speculative Decodingcited by 103
38 more
  1. 2024TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decodingcited by 98
  2. 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
  3. 2025Universal Model Routing for Efficient LLM Inferencecited by 80
  4. 2024GliDe with a CaPE: A Low-Hassle Method to Accelerate Speculative Decodingcited by 74
  5. 2024SpecDec++: Boosting Speculative Decoding via Adaptive Candidate Lengthscited by 73
  6. 2024Learning Harmonized Representations for Speculative Samplingcited by 69
  7. 2024SWIFT: On-the-Fly Self-Speculative Decoding for LLM Inference Accelerationcited by 69
  8. 2024Accelerating Auto-regressive Text-to-Image Generation with Training-free Speculative Jacobi Decodingcited by 65
  9. 2024TreeBoN: Enhancing Inference-Time Alignment with Speculative Tree-Search and Best-of-N Samplingcited by 61
  10. 2024Kangaroo: Lossless Self-Speculative Decoding via Double Early Exitingcited by 58
  11. 2024SpecExec: Massively Parallel Speculative Decoding for Interactive LLM Inference on Consumer Devicescited by 45
  12. 2024Faster Cascades via Speculative Decodingcited by 38
  13. 2024Speculative Streaming: Fast LLM Inference without Auxiliary Modelscited by 37
  14. 2024Recurrent Drafter for Fast Speculative Decoding in Large Language Modelscited by 35
  15. 2024Multi-Candidate Speculative Decodingcited by 30
  16. 2024Accelerating Parallel Sampling of Diffusion Modelscited by 30
  17. 2025Accelerated Diffusion Models via Speculative Samplingcited by 30
  18. 2024A Theoretical Perspective for Speculative Decoding Algorithmcited by 28
  19. 2025PARD: Accelerating LLM Inference with Low-Cost PARallel Draft Model Adaptationcited by 28
  20. 2024Recursive Speculative Decoding: Accelerating LLM Inference via Sampling Without Replacementcited by 27
  21. 2025SpecDiff-2: Scaling Diffusion Drafter Alignment For Faster Speculative Decodingcited by 26
  22. 2024DySpec: Faster Speculative Decoding with Dynamic Token Tree Structurecited by 25
  23. 2024On Speculative Decoding for Multimodal Large Language Modelscited by 24
  24. 2026DART: Diffusion-Inspired Speculative Decoding for Fast LLM Inferencecited by 23
  25. 2025Speculative Decoding and Beyond: An In-Depth Survey of Techniquescited by 22
  26. 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Modelscited by 21
  27. 2025ViSpec: Accelerating Vision-Language Models with Vision-Aware Speculative Decodingcited by 21
  28. 2025SwiReasoning: Switch-Thinking in Latent and Explicit for Pareto-Superior Reasoning LLMscited by 20
  29. 2025LongSpec: Long-Context Lossless Speculative Decoding with Efficient Drafting and Verificationcited by 19
  30. 2025Towards Optimal Multi-draft Speculative Decodingcited by 19
  31. 2025BanditSpec: Adaptive Speculative Decoding via Bandit Algorithmscited by 18
  32. 2025Grouped Speculative Decoding for Autoregressive Image Generationcited by 17
  33. 2025Cost-Aware Contrastive Routing for LLMscited by 16
  34. 2025GRIFFIN: Effective Token Alignment for Faster Speculative Decodingcited by 15
  35. 2026SpecForge: A Flexible and Efficient Open-Source Training Framework for Speculative Decodingcited by 15
  36. 2024Speculative Decoding with CTC-based Draft Model for LLM Inference Accelerationcited by 14
  37. 2025L-MTP: Leap Multi-Token Prediction Beyond Adjacent Context for Large Language Modelscited by 14
  38. 2024BiTA: Bi-Directional Tuning for Lossless Acceleration in Large Language Modelscited by 13

50 most cited of 129 All 129 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2026Speculative Speculative Decoding
  2. 2026Speculative Decoding with a Speculative Vocabulary
  3. 2024Closer Look at Efficient Inference Methods: A Survey of Speculative Decoding
  4. 2026LongSpark: Efficient speculative decoding with a fixed-cost parallel drafter
  5. 2026RACER: Retrieval-Augmented Contextual Rapid Speculative Decoding
  6. 2024Speculative Diffusion Decoding: Accelerating Language Generation through Diffusion
  7. 2026A Practical Investigation of Training-free Relaxed Speculative Decoding
  8. 2026D^2SD: Accelerating Speculative Decoding with Dual Diffusion Draft Models