基础设施 4.0 · 优秀 2026-10-06 · 论文

Secure Speculative Decoding for Large Language Models

投机解码用小 draft 模型出候选大 target 模型验证,此前研究只算效率-质量账大规模测量发现明显的安全-质量不对称:各类有损投机解码方法里,越狱和提示注入攻击成功率的上涨速度远快于效用下滑速度;理论分析定位到安全退化主要来自 draft 模型生成的早期 tokenSecureSD 据此对解码早期位置的 draft token 用更严的验证标准,效率与质量基本不损失IEEE S&P 2027 接收

打开原文回到归档

Secure Speculative Decoding for Large Language Models

  • ID: 7cf82ba9
  • 原文链接: https://arxiv.org/abs/2610.08678
  • PDF: https://arxiv.org/pdf/2610.08678
  • 作者: Yichi Zhang, Zhiqi Wang, Neil Gong, Yuchen Yang
  • 日期: 2026-10-06
  • 更新: 2026-10-06
  • 分类: infra
  • arXiv 分类: cs.CR, cs.AI, cs.LG
  • 来源类型: paper
  • 标签: speculative-decoding, llm-serving, jailbreak, prompt-injection, security
  • 质量评分: 4/5
  • 抓取时间: 2026-10-08T15:41:20Z

中文导读

投机解码用小 draft 模型出候选、大 target 模型验证,此前研究只算效率-质量账。大规模测量发现明显的安全-质量不对称:各类有损投机解码方法里,越狱和提示注入攻击成功率的上涨速度远快于效用下滑速度;理论分析定位到安全退化主要来自 draft 模型生成的早期 token。SecureSD 据此对解码早期位置的 draft token 用更严的验证标准,效率与质量基本不损失。IEEE S&P 2027 接收。

为什么值得关注

所有用投机解码加速线上推理的服务都应该读:安全汇率位置已知、可修,读图 2-3 就能确认适用范围。

关键信息

  • 论文标题:Secure Speculative Decoding for Large Language Models
  • 作者:Yichi Zhang, Zhiqi Wang, Neil Gong, Yuchen Yang
  • arXiv:https://arxiv.org/abs/2610.08678
  • 发布时间:2026-10-06
  • arXiv 分类:cs.CR, cs.AI, cs.LG
  • 关联标签:speculative-decoding, llm-serving, jailbreak, prompt-injection, security

English Abstract

Speculative decoding accelerates inference for a large language model (LLM), referred to as the \emph{target model}, by first using a smaller model, referred to as the \emph{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 \emph{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.

English Summary

Speculative decoding drafts candidates with a small model and verifies with the target model; prior work counts only efficiency-quality tradeoffs. Large-scale measurement reveals a clear security-quality asymmetry: across lossy speculative decoding methods, jailbreak and prompt-injection success rates rise far faster than utility degrades. Theoretical analysis locates the degradation mainly in early tokens generated by the draft model; SecureSD applies stricter verification to early draft-token positions with essentially no efficiency or quality loss. Accepted to IEEE S&P 2027.

Obsidian Notes

  • 内容由 opencli arxiv paper 2610.08678 -f json 拉取 arXiv 元数据与摘要生成(opencli-first 成功)。
  • 中文导读与价值判断锚定在论文摘要、作者、日期与分类信息上;未补充摘要之外的实验细节。