Secure Speculative Decoding for Large Language Models
On the map: Efficient LLM inference and serving → Speculative decoding
also in 1 more
Abstract (arXiv)
Speculative decoding accelerates inference for a large language model (LLM), referred to as the target model, by first using a smaller model, referred to as the draft model, to generate candidate tokens and then verifying them with the target model for acceptance or rejection. Prior studies primarily focused on the efficiency-utility trade-off of speculative decoding, e.g., lossy speculative decoding, leaving its security implications largely unexplored. In this work, we bridge this gap by providing the first systematic study of the security implications of speculative decoding. Through a large-scale measurement study, we reveal a pronounced security-utility asymmetry: across a wide range of lossy speculative decoding methods, improvements in inference efficiency come at a disproportionately high cost to security, with attack success rates for jailbreak and prompt injection attacks increasing much faster than utility degrades. We then propose SecureSD, a new theory-guided speculative decoding method that enhances security while maintaining efficiency and utility. Specifically, our theoretical analysis reveals that security degradation primarily originates from the early tokens generated by the draft model. Motivated by this insight, SecureSD applies a stricter verification criterion to draft-model tokens at early decoding positions. Extensive experiments on both security and utility benchmarks demonstrate that SecureSD significantly improves security while preserving efficiency and utility compared to existing speculative decoding methods.
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 37 of its 47 references that are in the map. First posted on arXiv 6 Oct 2026.
Builds on
37 of 47 references.
Closest ancestors · 20
Same direction, newest first
- 2026DIVERSED: Relaxed Speculative Decoding via Dynamic Ensemble Verification8 Apr
- 2026MARS: Unleashing the Power of Speculative Decoding via Margin-Aware Verification21 Jan
- 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inference12 Dec
- 2025Training-Free Loosely Speculative Decoding: Accepting Semantically Correct Drafts Beyond Exact Match28 Nov
- 2025AdaSPEC: Selective Knowledge Distillation for Efficient Speculative Decoders22 Oct
- 2025Alignment-Augmented Speculative Decoding with Alignment Sampling and Conditional Verification19 May
- 2025EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test3 Mar
- 2025Fuzzy Speculative Decoding for a Tunable Accuracy-Runtime Tradeoff28 Feb
- 2025Judge Decoding: Faster Speculative Sampling Requires Going Beyond Model Alignment31 Jan
- 2024FastDraft: How to Train Your Draft17 Nov
- 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees24 Jun
- 2024Faster Cascades via Speculative Decoding29 May
8 more
- 2024Hydra: Sequentially-Dependent Draft Heads for Medusa Decoding7 Feb
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
- 2023DistillSpec: Improving Speculative Decoding via Knowledge Distillation12 Oct
- 2023Online Speculative Decoding11 Oct
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May
- 2023Speculative Decoding with Big Little Decoder15 Feb
- 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
- 2022Fast Inference from Transformers via Speculative Decoding30 Nov
Other references · 17
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2024A Survey on LLM-as-a-Judgecited by 1,384
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 533
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 494
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
5 more
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
- 2024A StrongREJECT for Empty Jailbreakscited by 352
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 328
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Modelscited by 206
- 2026PIArena: A Platform for Prompt Injection Evaluationcited by 10
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Speculative Safety-Aware Decoding
- 2026Mistletoe: Stealthy Acceleration-Collapse Attacks on Speculative Decoding
- 2024Decoding Speculative Decoding
- 2025Speculative Decoding: Performance or Illusion?
- 2024When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMs
- 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding
- 2024Closer Look at Efficient Inference Methods: A Survey of Speculative Decoding
- 2024Root Defence Strategies: Ensuring Safety of LLM at the Decoding Level