arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.14005cs.CLcs.LG
收藏

毒藤:针对推测解码的隐秘加速-崩溃攻击

Mistletoe: Stealthy Acceleration-Collapse Attacks on Speculative Decoding

Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));South China University of Technology(华南理工大学);Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Huawei Technology(华为技术)

Shuoyang Sun, Chang Dai, Hao Fang, Kuofeng Gao, Xinhao Zhong, Yi Sun, Fan Mo, Shu-Tao Xia, Bin Chen

AI总结:

本文提出Mistletoe攻击,通过优化降质目标和语义保留目标,隐秘地降低推测解码的接受长度τ,从而减少加速效果,同时保持输出质量。

摘要:

推测解码已成为加速大型语言模型(LLM)推理的广泛采用技术,通过并行生成多个候选token并用目标模型验证。然而,其效率关键依赖于平均接受长度τ,即每个验证步骤中多少候选token能被接受。本文识别了基于模型的推测解码中的新机制层漏洞:drafter被训练去近似目标模型分布,但这种近似不可避免地不完美。这种drafter-目标不匹配创造了一个隐藏的攻击面,其中小扰动可以保持目标模型的可见行为,同时显著降低候选token的接受性。我们提出Mistletoe,一种针对推测解码的隐秘加速-崩溃攻击。Mistletoe直接针对推测解码的接受机制。它联合优化一个降质目标,以减少drafter-目标的一致性,以及一个语义保留目标,以约束目标模型的输出分布。为了解决这两个目标之间的冲突,我们引入了一个null-space投影机制,其中降质梯度被投影到局部语义保留方向之外,从而抑制候选token的接受,同时最小化语义漂移。在各种推测解码系统上的实验表明,Mistletoe显著降低了平均接受长度τ,崩溃速度提升,并降低了平均token吞吐量,同时保持输出质量和困惑度。我们的工作强调推测解码引入了超越现有输出鲁棒性的机制层攻击面,呼吁对LLM加速系统进行更鲁棒的设计。

英文摘要:

Speculative decoding has become a widely adopted technique for accelerating large language model (LLM) inference by drafting multiple candidate tokens and verifying them with a target model in parallel. Its efficiency, however, critically depends on the average accepted length $τ$, i.e., how many draft tokens survive each verification step. In this work, we identify a new mechanism-level vulnerability in model-based speculative decoding: the drafter is trained to approximate the target model distribution, but this approximation is inevitably imperfect. Such a drafter-target mismatch creates a hidden attack surface where small perturbations can preserve the target model's visible behavior while substantially reducing draft-token acceptability. We propose Mistletoe, a stealthy acceleration-collapse attack against speculative decoding. Mistletoe directly targets the acceptance mechanism of speculative decoding. It jointly optimizes a degradation objective that decreases drafter-target agreement and a semantic-preservation objective that constrains the target model's output distribution. To resolve the conflict between these objectives, we introduce a null-space projection mechanism, where degradation gradients are projected away from the local semantic-preserving direction, suppressing draft acceptance while minimizing semantic drift. Experiments on various speculative decoding systems show that Mistletoe substantially reduces average accepted length $τ$, collapses speedup, and lowers averaged token throughput, while preserving output quality and perplexity. Our work highlights that speculative decoding introduces a mechanism-level attack surface beyond existing output robustness, calling for more robust designs of LLM acceleration systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑