When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMs
On the map: Efficient LLM inference and serving → Speculative decoding
Abstract (arXiv)
Deployed large language models (LLMs) often rely on speculative decoding, a technique that generates and verifies multiple candidate tokens in parallel, to improve throughput and latency. In this work, we reveal a new side-channel whereby input-dependent patterns of correct and incorrect speculations can be inferred by monitoring per-iteration token counts or packet sizes. In evaluations using research prototypes and production-grade vLLM serving frameworks, we show that an adversary monitoring these patterns can fingerprint user queries (from a set of 50 prompts) with over 75% accuracy across four speculative-decoding schemes at temperature 0.3: REST (100%), LADE (91.6%), BiLD (95.2%), and EAGLE (77.6%). Even at temperature 1.0, accuracy remains far above the 2% random baseline - REST (99.6%), LADE (61.2%), BiLD (63.6%), and EAGLE (24%). We also show the capability of the attacker to leak confidential datastore contents used for prediction at rates exceeding 25 tokens/sec. To defend against these, we propose and evaluate a suite of mitigations, including packet padding and iteration-wise token aggregation.
Key facts. Cited by 6 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 28 of its 39 references that are in the map. First posted on arXiv 1 Nov 2024.
Builds on
28 of 39 references.
Closest ancestors · 14
Same direction, newest first
- 2024Remote Timing Attacks on Efficient Language Model Inference22 Oct
- 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees24 Jun
- 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 Feb
- 2024Decoding Speculative Decoding2 Feb
- 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
- 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
- 2023REST: Retrieval-Based Speculative Decoding14 Nov
- 2023SpecTr: Fast Speculative Decoding via Optimal Transport23 Oct
- 2023Accelerating LLM Inference with Staged Speculative Decoding8 Aug
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May
- 2023Speculative Decoding with Big Little Decoder15 Feb
2 more
Other references · 14
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2024TinyLlama: An Open-Source Small Language Modelcited by 604
- 2023MedAlpaca -- An Open-Source Collection of Medical Conversational AI Models and Training Datacited by 282
- 2018Spectre Attacks: Exploiting Speculative Executioncited by 47
- 2023Privacy Side Channels in Machine Learning Systemscited by 38
- 2023Lookahead: An Inference Acceleration Framework for Large Language Model with Lossless Generation Accuracycited by 37
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025Auditing Prompt Caching in Language Model APIscited by 19
- 2026Adversarial Prompts for Acceptance Collapse in Speculative Decodingcited by 1
- 2026Ghost Tool Calls: Issue-Time Privacy for Speculative Agent Toolscited by 0
- 2026Speculative Decoding at Temperature Zero: A Scoped Safety-Invariance Screen with a 48,072-Sample Expansioncited by 0
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timingcited by 0
- 2026Speedbumps: Rejection Attacks on Speculative Decodingcited by 0
- 2026Speedbumps: Rejection Attacks on Speculative Decoding7 Oct 2026
- 2026Adversarial Prompts for Acceptance Collapse in Speculative Decoding23 Jul 2026
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timing22 Jul 2026
- 2026Speculative Decoding at Temperature Zero: A Scoped Safety-Invariance Screen with a 48,072-Sample Expansion23 Jun 2026
- 2026Ghost Tool Calls: Issue-Time Privacy for Speculative Agent Tools1 Jun 2026
- 2025Auditing Prompt Caching in Language Model APIs11 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2026Secure Speculative Decoding for Large Language Models
- 2025Speculative Verification: Exploiting Information Gain to Refine Speculative Decoding
- 2025Speculative Decoding: Performance or Illusion?
- 2024Beyond the Speculative Game: A Survey of Speculative Execution in Large Language Models
- 2026Mistletoe: Stealthy Acceleration-Collapse Attacks on Speculative Decoding
- 2025Speculative Safety-Aware Decoding
- 2025Fail Fast, Win Big: Rethinking the Drafting Strategy in Speculative Decoding via Diffusion LLMs
- 2026SpecGuard: Inference-Time Backdoor Detection For Free