SpecKV: Adaptive Speculative Decoding with Compression-Aware Gamma Selection
On the map: Efficient LLM inference and serving → Speculative decoding
Abstract (arXiv)
Speculative decoding accelerates large language model (LLM) inference by using a small draft model to propose candidate tokens that a larger target model verifies. A critical hyperparameter in this process is the speculation length γ, which determines how many tokens the draft model proposes per step. Nearly all existing systems use a fixed γ (typically 4), yet empirical evidence suggests that the optimal value varies across task types and, crucially, depends on the compression level applied to the target model. In this paper, we present SpecKV, a lightweight adaptive controller that selects γ per speculation step using signals extracted from the draft model itself. We profile speculative decoding across 4 task categories, 4 speculation lengths, and 3 compression levels (FP16, INT8, NF4), collecting 5,112 step-level records with per-step acceptance rates, draft entropy, and draft confidence. We demonstrate that the optimal γ shifts across compression regimes and that draft model confidence and entropy are strong predictors of acceptance rate (correlation ≈ 0.56). SpecKV uses a small MLP trained on these signals to maximize expected tokens per speculation step, achieving a 56.0% improvement over the fixed-γ=4 baseline with only 0.34 ms overhead per decision (<0.5% of step time). The improvement is statistically significant (p < 0.001, paired bootstrap test). We release all profiling data, trained models, and notebooks as open-source artifacts.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 14 of its 25 references that are in the map. First posted on arXiv 4 May 2026.
Builds on
14 of 25 references.
Closest ancestors · 6
Same direction, newest first
- 2025QuantSpec: Self-Speculative Decoding with Hierarchical Quantized KV Cache5 Feb
- 2025Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies31 Jan
- 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees24 Jun
- 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
- 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
- 2022Fast Inference from Transformers via Speculative Decoding30 Nov
Other references · 8
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 591
- 2019Introduction to Multi-Armed Banditscited by 475
- 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 115
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Token-Driven GammaTune: Adaptive Calibration for Enhanced Speculative Decoding
- 2024SpecDec++: Boosting Speculative Decoding via Adaptive Candidate Lengths
- 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inference
- 2026LK Losses: Direct Acceptance Rate Optimization for Speculative Decoding
- 2026Margins, Not Windows: Training-Free Per-Step Lossy Speculative Decoding
- 2025Speculative Decoding: Performance or Illusion?
- 2026Acceptance-Aware Draft Model Training for Speculative Decoding
- 2026Speculative Decoding with a Speculative Vocabulary