mlsanityData to 14 Oct 2026

SWIFT: On-the-Fly Self-Speculative Decoding for LLM Inference Acceleration

arXiv 2410.06916 ↗First posted 9 Oct 2024cs.CLcited by 72

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

Abstract (arXiv)

Speculative decoding (SD) has emerged as a widely used paradigm to accelerate LLM inference without compromising quality. It works by first employing a compact model to draft multiple tokens efficiently and then using the target LLM to verify them in parallel. While this technique has achieved notable speedups, most existing approaches necessitate either additional parameters or extensive training to construct effective draft models, thereby restricting their applicability across different LLMs and tasks. To address this limitation, we explore a novel plug-and-play SD solution with layer-skipping, which skips intermediate layers of the target LLM as the compact draft model. Our analysis reveals that LLMs exhibit great potential for self-acceleration through layer sparsity and the task-specific nature of this sparsity. Building on these insights, we introduce SWIFT, an on-the-fly self-speculative decoding algorithm that adaptively selects intermediate layers of LLMs to skip during inference. SWIFT does not require auxiliary models or additional training, making it a plug-and-play solution for accelerating LLM inference across diverse input data streams. Our extensive experiments across a wide range of models and downstream tasks demonstrate that SWIFT can achieve over a 1.3x-1.6x speedup while preserving the original distribution of the generated text. We release our code in https://github.com/hemingkx/SWIFT.

Key facts. Cited by 72 papers in the map (data through 14 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 47 of its 54 references that are in the map. First posted on arXiv 9 Oct 2024.

Builds on

47 of 54 references.

Closest ancestors · 23

Same direction, newest first

  1. 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees24 Jun
  2. 2024FFN-SkipLLM: A Hidden Gem for Autoregressive Decoding with Adaptive Feed Forward Skipping5 Apr
  3. 2024Hierarchical Skip Decoding for Efficient Autoregressive Text Generation22 Mar
  4. 2024CLLMs: Consistency Large Language Models28 Feb
  5. 2024Generation Meets Verification: Accelerating Large Language Model Inference with Smart Parallel Auto-Correct Decoding19 Feb
  6. 2024Hydra: Sequentially-Dependent Draft Heads for Medusa Decoding7 Feb
  7. 2024GliDe with a CaPE: A Low-Hassle Method to Accelerate Speculative Decoding3 Feb
  8. 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 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
11 more
  1. 2023SpecTr: Fast Speculative Decoding via Optimal Transport23 Oct
  2. 2023DistillSpec: Improving Speculative Decoding via Knowledge Distillation12 Oct
  3. 2023Online Speculative Decoding11 Oct
  4. 2023Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decoding9 Oct
  5. 2023SkipDecode: Autoregressive Skip Decoding with Batching and Caching for Efficient LLM Inference5 Jul
  6. 2023Accelerating Transformer Inference for Translation via Parallel Decoding17 May
  7. 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May
  8. 2023Speculative Decoding with Big Little Decoder15 Feb
  9. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  10. 2022Fast Inference from Transformers via Speculative Decoding30 Nov
  11. 2022Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generation30 Mar

Other references · 24

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  8. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  9. 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 812
  10. 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 737
  11. 2024Yi: Open Foundation Models by 01.AIcited by 719
  12. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
12 more
  1. 2018Rethinking the Value of Network Pruningcited by 599
  2. 2022Efficiently Scaling Transformer Inferencecited by 539
  3. 2021Sparsity in Deep Learning: Pruning and growth for efficient inference and training in neural networkscited by 527
  4. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
  5. 2024Better & Faster Large Language Models via Multi-token Predictioncited by 360
  6. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
  7. 2024The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bitscited by 308
  8. 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 307
  9. 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 252
  10. 2023SPEED: Speculative Pipelined Execution for Efficient Decodingcited by 47
  11. 2023Predictive Pipelined Decoding: A Compute-Latency Trade-off for Exact LLM Decodingcited by 40
  12. 2024Accelerating Inference in Large Language Models with a Unified Layer Skipping Strategycited by 17

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 32; 2026: 39.

72 papers.

Sort:

By area:

  1. 2025A Survey on Parallel Text Generation: From Parallel Decoding to Diffusion Language Modelscited by 30
  2. 2025PARD: Accelerating LLM Inference with Low-Cost PARallel Draft Model Adaptationcited by 29
  3. 2025Speculative Decoding and Beyond: An In-Depth Survey of Techniquescited by 23
  4. 2025ViSpec: Accelerating Vision-Language Models with Vision-Aware Speculative Decodingcited by 22
  5. 2025LongSpec: Long-Context Lossless Speculative Decoding with Efficient Drafting and Verificationcited by 21
  6. 2025SpecVLM: Enhancing Speculative Decoding of Video LLMs via Verifier-Guided Token Pruningcited by 20
  7. 2026SpecForge: A Flexible and Efficient Open-Source Training Framework for Speculative Decodingcited by 16
  8. 2025DREAM: Drafting with Refined Target Features and Entropy-Adaptive Cross-Attention Fusion for Multimodal Speculative Decodingcited by 14
  9. 2025LogitSpec: Accelerating Retrieval-based Speculative Decoding via Next Next Token Speculationcited by 14
  10. 2025KNN-SSD: Enabling Dynamic Self-Speculative Decoding via Nearest Neighbor Layer Set Optimizationcited by 11
  11. 2025CLaSp: In-Context Layer Skip for Self-Speculative Decodingcited by 11
  12. 2025A Survey on Parallel Reasoningcited by 11
38 more
  1. 2025Beat the long tail: Distribution-Aware Speculative Decoding for RL Trainingcited by 10
  2. 2025Training-Free Loosely Speculative Decoding: Accepting Semantically Correct Drafts Beyond Exact Matchcited by 10
  3. 2026Efficient Inference for Large Vision-Language Models: Bottlenecks, Techniques, and Prospectscited by 9
  4. 2025DEL: Context-Aware Dynamic Exit Layer for Efficient Self-Speculative Decodingcited by 8
  5. 2025AdaDecode: Accelerating LLM Decoding with Adaptive Layer Parallelismcited by 7
  6. 2025SpecPV: Improving Self-Speculative Decoding for Long-Context Generation via Partial Verificationcited by 7
  7. 2026Vegas: Self-Speculative Decoding with Verification-Guided Sparse Attentioncited by 7
  8. 2024FastDraft: How to Train Your Draftcited by 6
  9. 2026Draft Less, Retrieve More: Hybrid Tree Construction for Speculative Decodingcited by 6
  10. 2026EfficientRollout: System-Aware Self-Speculative Decoding for RL Rolloutscited by 6
  11. 2025MASSV: Multimodal Adaptation and Self-Data Distillation for Speculative Decoding of Vision-Language Modelscited by 5
  12. 2026KnapSpec: Self-Speculative Decoding via Adaptive Layer Selection as a Knapsack Problemcited by 5
  13. 2026See the Forest for the Trees: Loosely Speculative Decoding via Visual-Semantic Guidance for Efficient Inference of Video LLMscited by 5
  14. 2026ToolSpec: Accelerating Tool Calling via Schema-Aware and Retrieval-Augmented Speculative Decodingcited by 5
  15. 2026When Hidden States Drift: Can KV Caches Rescue Long-Range Speculative Decoding?cited by 5
  16. 2025SpecPipe: Accelerating Pipeline Parallelism-based LLM Inference with Speculative Decodingcited by 4
  17. 2025OmniDraft: A Cross-vocabulary, Online Adaptive Drafter for On-device Speculative Decodingcited by 4
  18. 2025CAS-Spec: Cascade Adaptive Self-Speculative Decoding for On-the-Fly Lossless Inference Acceleration of LLMscited by 4
  19. 2025HiSpec: Hierarchical Speculative Decoding for LLMscited by 3
  20. 2025MixReasoning: Switching Modes to Thinkcited by 3
  21. 2026HIPPO: Accelerating Video Large Language Models Inference via Holistic-aware Parallel Speculative Decodingcited by 3
  22. 2026ConfLayers: Adaptive Confidence-based Layer Skipping for Self-Speculative Decodingcited by 3
  23. 2025SpecFLASH: A Latent-Guided Semi-autoregressive Speculative Decoding Framework for Efficient Multimodal Generationcited by 2
  24. 2025Pre-Training Curriculum for Multi-Token Prediction in Language Modelscited by 2
  25. 2025Thinking with Drafts: Speculative Temporal Reasoning for Efficient Long Video Understandingcited by 2
  26. 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inferencecited by 2
  27. 2026Variational Speculative Decoding: Rethinking Draft Training from Token Likelihood to Sequence Acceptancecited by 2
  28. 2026Dynamic Execution Commitment of Vision-Language-Action Modelscited by 2
  29. 2026The Shape of Overthinking: Backtracking Bursts in Long Reasoning Tracescited by 2
  30. 2026TailSieve: Partial-Rollout-Guided Tail Routing for LLM Rolloutscited by 2
  31. 2026PELM: Power Efficient On-Device LLM Inference with Speculative Decoding and Dynamic Voltage Frequency Scalingcited by 2
  32. 2025Speculate Deep and Accurate: Lossless and Training-Free Acceleration for Offloaded LLMs via Substitute Speculative Decodingcited by 1
  33. 2025Pipeline Parallelism is All You Need for Optimized Early-Exit Based Self-Speculative Decodingcited by 1
  34. 2025From Quarter to All: Accelerating Speculative LLM Decoding via Floating-Point Exponent Remapping and Parameter Sharingcited by 1
  35. 2025GoodSpeed: Optimizing Fair Goodput with Adaptive Speculative Decoding in Distributed Edge Inferencecited by 1
  36. 2026TABED: Test-Time Adaptive Ensemble Drafting for Robust Speculative Decoding in LVLMscited by 1
  37. 2026SpecEyes: Accelerating Agentic Multimodal LLMs via Speculative Perception and Planningcited by 1
  38. 2026FASER: Fine-Grained Phase Management for Speculative Decoding in Dynamic LLM Servingcited by 1

50 most cited of 72 All 72 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025Tutorial Proposal: Speculative Decoding for Efficient LLM Inference
  2. 2025CARD: A Cache-Assisted Parallel Speculative Decoding Framework via Query-and-Correct Paradigm for Accelerating LLM Inference
  3. 2025Mirror Speculative Decoding: Breaking the Serial Barrier in LLM Inference
  4. 2024Speculative Decoding via Early-exiting for Faster LLM Inference with Thompson Sampling Control Mechanism
  5. 2026DART: Diffusion-Inspired Speculative Decoding for Fast LLM Inference
  6. 2023Accelerating LLM Inference with Staged Speculative Decoding
  7. 2025Speculative Decoding: Performance or Illusion?
  8. 2025Yggdrasil: Bridging Dynamic Speculation and Static Runtime for Latency-Optimal Tree-Based LLM Decoding