Study reveals the safety cost of speculative decoding and proposes the SecureSD hardening methodSecure Speculative Decoding for Large Language Models
Translation in progress — untranslated text is omitted.
The study systematically measures the safety impact of speculative decoding and finds a clear safety-utility asymmetry: across several lossy speculative decoding methods, the increase in jailbreak and prompt injection attack success rates from inference efficiency gains is much faster than the utility decline. Based on this, the authors propose SecureSD, and theoretical analysis indicates that the safety degradation mainly comes from tokens generated early by the draft model, so stricter verification criteria are applied to draft tokens at early decoding positions. Experiments on safety and utility benchmarks show that SecureSD significantly improves safety while maintaining efficiency and utility.
- Speculative decoding uses a small draft model to propose first, and a large target model to verify, reducing latency. Lossy verification relaxes acceptance for speed, but existing work mainly looks at efficiency and utility. The authors want to determine whether this relaxation weakens jailbreak and prompt injection defenses faster.
- SecureSD does not change the verifier itself; it uses a correction schedule η to mix standard verification and relaxed verification by decoding position. η of 0 is standard verification, and 1 is the original relaxed rule. Default is a step schedule with L=1, applying standard verification only at the earliest position.
- On Qwen3-0.6B/8B, the average PRR across the six lossy methods is 0.744 on safety benchmarks and 0.905 on utility benchmarks. Adding the default SecureSD brings the average ΔPRR for that pairing on Jailbreak-SD to +0.270. Llama3 generally needs a larger L to approach this recovery.
- The authors state that more diverse adaptive attacks should also be evaluated, and that SecureSD does not eliminate existing vulnerabilities in the target model. The experiments cover four draft–target pairings and six lossy verifiers; AgentDojo is only reported for Qwen3-0.6B/8B. The paper does not report the number of repetitions.
Related events and news
2 events · 1 news mentions
- This event's paper
研究揭示投机解码安全代价并提出SecureSD加固方法
News that mentions this paper
Adversa AI 11月精选24项GenAI安全资源
- Adversa AIcites the paper's id or linkGenAI 安全资源精选(2026 年 11 月)
Secure speculative decoding for large language models
Related papers
Show 3 more papers
- Selecting The Most Informative Tokens in Natural Language AutoencodersAnalysis / interpretabilityarXiv