arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.01076cs.CLcs.AIcs.CRcs.DCcs.LG
收藏

当猜测泄露秘密:通过猜测解码的侧信道在大语言模型中

When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMs

University of Toronto(多伦多大学)

Jiankun Wei, Abdulrahman Abdulrazzag, Tianchen Zhang, Adel Muursepp, Gururaj Saileshwar

AI总结:

研究揭示了通过猜测解码在大语言模型中泄露用户信息的侧信道,并提出缓解措施。

摘要:

部署的大型语言模型(LLMs)往往依赖于猜测解码,这是一种通过并行生成和验证多个候选标记来提高吞吐量和延迟的技术。在本工作中,我们揭示了一种新的侧信道,即通过监控每次迭代的标记数量或数据包大小,可以推断出输入依赖的正确和错误猜测模式。在使用研究原型和生产级vLLM服务框架的评估中,我们显示,一个监控这些模式的攻击者可以在四个猜测解码方案中对用户查询(从50个提示中)进行指纹识别,准确率超过75%:REST(100%)、LADE(91.6%)、BiLD(95.2%)和EAGLE(77.6%)。即使在温度为1.0时,准确性仍远高于2%的随机基线——REST(99.6%)、LADE(61.2%)、BiLD(63.6%)和EAGLE(24%)。我们还展示了攻击者泄露用于预测的保密数据存储内容的能力,速率超过25个标记/秒。为了防御这些攻击,我们提出了并评估了一套缓解措施,包括数据包填充和迭代级标记聚合。

英文摘要:

Deployed large language models (LLMs) often rely on speculative decoding, a technique that generates and verifies multiple candidate tokens in parallel, to improve throughput and latency. In this work, we reveal a new side-channel whereby input-dependent patterns of correct and incorrect speculations can be inferred by monitoring per-iteration token counts or packet sizes. In evaluations using research prototypes and production-grade vLLM serving frameworks, we show that an adversary monitoring these patterns can fingerprint user queries (from a set of 50 prompts) with over 75% accuracy across four speculative-decoding schemes at temperature 0.3: REST (100%), LADE (91.6%), BiLD (95.2%), and EAGLE (77.6%). Even at temperature 1.0, accuracy remains far above the 2% random baseline - REST (99.6%), LADE (61.2%), BiLD (63.6%), and EAGLE (24%). We also show the capability of the attacker to leak confidential datastore contents used for prediction at rates exceeding 25 tokens/sec. To defend against these, we propose and evaluate a suite of mitigations, including packet padding and iteration-wise token aggregation.

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

↑