KNN-SSD: Enabling Dynamic Self-Speculative Decoding via Nearest Neighbor Layer Set Optimization
On the map: Efficient LLM inference and serving → Speculative decoding
Abstract (arXiv)
Speculative Decoding (SD) has emerged as a widely used paradigm to accelerate the inference of large language models (LLMs) without compromising generation quality. It works by efficiently drafting multiple tokens using a compact model and then verifying them in parallel using the target LLM. Notably, Self-Speculative Decoding proposes skipping certain layers to construct the draft model, which eliminates the need for additional parameters or training. Despite its strengths, we observe in this work that drafting with layer skipping exhibits significant sensitivity to domain shifts, leading to a substantial drop in acceleration performance. To enhance the domain generalizability of this paradigm, we introduce KNN-SSD, an algorithm that leverages K-Nearest Neighbor (KNN) search to match different skipped layers with various domain inputs. We evaluated our algorithm in various models and multiple tasks, observing that its application leads to 1.3x-1.6x speedup in LLM inference.
Key facts. Cited by 11 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 29 of its 38 references that are in the map. First posted on arXiv 22 May 2025.
Builds on
29 of 38 references.
Closest ancestors · 14
Same direction, newest first
- 2025Speculative Decoding and Beyond: An In-Depth Survey of Techniques27 Feb
- 2025Judge Decoding: Faster Speculative Sampling Requires Going Beyond Model Alignment31 Jan
- 2024Speculative Decoding with CTC-based Draft Model for LLM Inference Acceleration25 Nov
- 2024SWIFT: On-the-Fly Self-Speculative Decoding for LLM Inference Acceleration9 Oct
- 2024Draft on the Fly: Adaptive Self-Speculative Decoding using Cosine Similarity1 Oct
- 2024Learning Harmonized Representations for Speculative Sampling28 Aug
- 2024Speculative Streaming: Fast LLM Inference without Auxiliary Models16 Feb
- 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 Feb
- 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
- 2023Speculative Decoding with Big Little Decoder15 Feb
- 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
2 more
Other references · 15
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
- 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 812
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 526
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 385
- 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 307
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 232
3 more
- 2023LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructionscited by 124
- 2022LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language Modelscited by 105
- 2024Accelerating Inference in Large Language Models with a Unified Layer Skipping Strategycited by 17
Built on by
Citing papers per year: 2025: 1; 2026: 10.
11 papers.
- 2025Training-Free Loosely Speculative Decoding: Accepting Semantically Correct Drafts Beyond Exact Matchcited by 10
- 2026Efficient Inference for Large Vision-Language Models: Bottlenecks, Techniques, and Prospectscited by 9
- 2026Draft Less, Retrieve More: Hybrid Tree Construction for Speculative Decodingcited by 6
- 2026EfficientRollout: System-Aware Self-Speculative Decoding for RL Rolloutscited by 6
- 2026When Hidden States Drift: Can KV Caches Rescue Long-Range Speculative Decoding?cited by 5
- 2026HIPPO: Accelerating Video Large Language Models Inference via Holistic-aware Parallel Speculative Decodingcited by 3
- 2026ConfLayers: Adaptive Confidence-based Layer Skipping for Self-Speculative Decodingcited by 3
- 2026TailSieve: Partial-Rollout-Guided Tail Routing for LLM Rolloutscited by 2
- 2026Experience-Driven Dynamic Exits for LLMs with Reinforcement Learningcited by 0
- 2026TSS: Target-Side Sparsification for Speculative Decoding in Domain-Specific Large Language Modelscited by 0
- 2026S3R: Fast and Faithful RL Rollouts via Self-Sparse Speculative Decodingcited by 0
- 2026S3R: Fast and Faithful RL Rollouts via Self-Sparse Speculative Decoding9 Oct 2026
- 2026TailSieve: Partial-Rollout-Guided Tail Routing for LLM Rollouts24 Aug 2026
- 2026TSS: Target-Side Sparsification for Speculative Decoding in Domain-Specific Large Language Models15 Aug 2026
- 2026EfficientRollout: System-Aware Self-Speculative Decoding for RL Rollouts17 Jun 2026
- 2026Experience-Driven Dynamic Exits for LLMs with Reinforcement Learning2 Jun 2026
- 2026Draft Less, Retrieve More: Hybrid Tree Construction for Speculative Decoding19 May 2026
- 2026When Hidden States Drift: Can KV Caches Rescue Long-Range Speculative Decoding?29 Apr 2026
- 2026ConfLayers: Adaptive Confidence-based Layer Skipping for Self-Speculative Decoding16 Apr 2026
- 2026Efficient Inference for Large Vision-Language Models: Bottlenecks, Techniques, and Prospects7 Apr 2026
- 2026HIPPO: Accelerating Video Large Language Models Inference via Holistic-aware Parallel Speculative Decoding13 Jan 2026
- 2025Training-Free Loosely Speculative Decoding: Accepting Semantically Correct Drafts Beyond Exact Match28 Nov 2025
Similar, not cited
Close in wording, no citation either way
- 2024Speculative Decoding via Early-exiting for Faster LLM Inference with Thompson Sampling Control Mechanism
- 2025CLaSp: In-Context Layer Skip for Self-Speculative Decoding
- 2026KnapSpec: Self-Speculative Decoding via Adaptive Layer Selection as a Knapsack Problem
- 2024Recursive Speculative Decoding: Accelerating LLM Inference via Sampling Without Replacement
- 2024Closer Look at Efficient Inference Methods: A Survey of Speculative Decoding
- 2023Draft & Verify: Lossless Large Language Model Acceleration via Self-Speculative Decoding
- 2024SSSD: Simply-Scalable Speculative Decoding
- 2025Scaling Up, Speeding Up: A Benchmark of Speculative Decoding for Efficient LLM Test-Time Scaling