Speculative Decoding Shortcuts Can Undermine Language Model Safety Guarantees
Abstract Safety evaluations of large language models (LLMs) are typically conducted using full-precision reference weights under exact autoregressive decoding, despite production systems commonly deploying quantized models, evicted or quantized key–value (KV) caches, and speculative decoding. Recent audits show meaningful safety degradation from weight and cache compression individually, but the safety impact of deployed, non-exact speculative decoding and the interaction among multiple transformations remain poorly understood. We address two open questions. First, we examine non-preserving speculative decoding variants, including typical acceptance, entropy-adjusted thresholds, tree-structured drafting, and n-gram paths verified by argmax match. Second, we investigate whether composing weight compression, KV-cache compression, and speculative decoding produces sub-additive or super-additive safety degradation. Across five production serving frameworks, we find that although most default to exact rejection sampling, all expose non-preserving alternatives, with practitioner guidance recommending their use for quantized target models which is a potentially high-risk combination. We formalize acceptance relaxation and decompose its distributional shift into two opposing channels, a mode-seeking term that sharpens toward the target model’s distribution and may be safety-protective, and a draft-leakage term that substitutes the draft model’s distribution for the target’s and represents the primary hazard. GPU-free Monte Carlo experiments validate this decomposition and show that exact rejection sampling remains at the noise floor, whereas typical acceptance and argmax-match reach 25× and 12× the noise level, respectively. We further falsify our initial hypothesis of a positive relaxation-by-alignment interaction, obtaining a coefficient of − 1.23 (R² = 0.92).
- Link
- https://doi.org/10.21203/rs.3.rs-10796407/v1
- Found by
- Crossref
- Authors
- ABDUL WAHEED, Sayed Hassan Ijaz, Najam Ul Hassan, Muhammad Zaheer Nazir
- Organizations
- New York University, Pir Mehr Ali Shah Arid Agriculture University, University of Engineering and Technology Taxila
- Categories
- evaluation
- Published
- 2026-10-12
- Last seen by the radar
- 2026-10-13
- Citations
- 0
- Radar score
- 33.38 / 100 (how it is scored)
- Why it scored so
- Matched: evaluat, safety eval; Primary record: Crossref