Optimized Speculative Sampling for GPU Hardware Accelerators
On the map: Efficient LLM inference and serving → Speculative decoding
Abstract (arXiv)
In this work, we optimize speculative sampling for parallel hardware accelerators to improve sampling speed. We notice that substantial portions of the intermediate matrices necessary for speculative sampling can be computed concurrently. This allows us to distribute the workload across multiple GPU threads, enabling simultaneous operations on matrix segments within thread blocks. This results in profiling time improvements ranging from 6% to 13% relative to the baseline implementation, without compromising accuracy. To further accelerate speculative sampling, probability distributions parameterized by softmax are approximated by sigmoid. This approximation approach results in significantly greater relative improvements in profiling time, ranging from 37% to 94%, with a minor decline in accuracy. We conduct extensive experiments on both automatic speech recognition and summarization tasks to validate the effectiveness of our optimization methods.
Key facts. Cited by 2 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 47 of its 74 references that are in the map. First posted on arXiv 16 Jun 2024.
Builds on
47 of 74 references.
Closest ancestors · 9
Same direction, newest first
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
- 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding15 Jan
- 2024Multi-Candidate Speculative Decoding12 Jan
- 2023DistillSpec: Improving Speculative Decoding via Knowledge Distillation12 Oct
- 2023Accelerating LLM Inference with Staged Speculative Decoding8 Aug
- 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
- 2022Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generation30 Mar
Other references · 38
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 3,972
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2021HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Unitscited by 2,301
- 2020GLU Variants Improve Transformercited by 1,724
26 more
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2019Common Voice: A Massively-Multilingual Speech Corpuscited by 1,358
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
- 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2021A White Paper on Neural Network Quantizationcited by 453
- 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 408
- 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 318
- 2021Block Pruning For Faster Transformerscited by 176
- 2018Online normalizer calculation for softmaxcited by 154
- 2021Self-attention Does Not Need O(n2) Memorycited by 152
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
- 2020Training with Quantization Noise for Extreme Model Compressioncited by 145
- 2020Infinite attention: NNGP and NTK for deep attention networkscited by 117
- 2023Distil-Whisper: Robust Knowledge Distillation via Large-Scale Pseudo Labellingcited by 87
- 2016Efficient softmax approximation for GPUscited by 67
- 2023A Study on ReLU and Softmax in Transformercited by 53
- 2023Replacing softmax with ReLU in Vision Transformerscited by 43
- 2018Dissecting the NVIDIA Volta GPU Architecture via Microbenchmarkingcited by 35
- 2022Robust Training of Neural Networks Using Scale Invariant Architecturescited by 29
- 2024GRILLBot In Practice: Lessons and Tradeoffs Deploying Large Language Models for Adaptable Conversational Task Assistantscited by 6
Built on by
Citing papers per year: 2025: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026FlashSampling: Fast and Memory-Efficient Exact Sampling
- 2025SIMPLE: Disaggregating Sampling from GPU Inference into a Decision Plane for Faster Distributed LLM Serving
- 2025EasySpec: Layer-Parallel Speculative Decoding for Efficient Multi-GPU Utilization
- 2025SpecOffload: Unlocking Latent GPU Capacity for LLM Inference on Resource-Constrained Devices
- 2026Parallel Track Transformers: Enabling Fast GPU Inference with Reduced Synchronization
- 2025FAST: An Efficient Scheduler for All-to-All GPU Communication
- 2023The Synergy of Speculative Decoding and Batching in Serving Large Language Models
- 2026The Economics of AI Decoding Chips: Rebalancing Compute, Capacity, and Bandwidth for Efficient LLM Inference