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

针对高效语言模型推理的远程计时攻击

Remote Timing Attacks on Efficient Language Model Inference

Google DeepMind(谷歌DeepMind)

Nicholas Carlini, Milad Nasr

AI总结:

本文揭示高效语言模型推理中的计时差异可被利用为远程侧信道攻击,在开源及生产系统上实现对话主题识别、消息区分与PII恢复,并探讨防御方向。

摘要:

扩大语言模型规模显著提升了其能力。但更大的模型运行更慢,因此现在有大量工作(例如投机采样或并行解码)致力于提升语言模型生成的(平均情况)效率。然而这些技术引入了依赖数据的计时特征。我们证明可以利用这些计时差异发起计时攻击。通过监控受害者用户与远程语言模型之间的(加密)网络流量,我们可以根据响应变快或变慢来了解消息内容。在完全黑盒访问条件下,我们在开源系统上展示了可以以90%以上的精度学习用户对话的主题(例如医疗咨询与编程辅助),在OpenAI的ChatGPT和Anthropic的Claude等生产系统上,我们可以区分特定消息或推断用户使用的语言。我们进一步表明,主动攻击者可以利用boosting攻击恢复开源系统消息中放置的个人身份信息(PII)(例如电话号码或信用卡号)。最后我们讨论了潜在的防御措施和未来工作方向。

英文摘要:

Scaling up language models has significantly increased their capabilities. But larger models are slower models, and so there is now an extensive body of work (e.g., speculative sampling or parallel decoding) that improves the (average case) efficiency of language model generation. But these techniques introduce data-dependent timing characteristics. We show it is possible to exploit these timing differences to mount a timing attack. By monitoring the (encrypted) network traffic between a victim user and a remote language model, we can learn information about the content of messages by noting when responses are faster or slower. With complete black-box access, on open source systems we show how it is possible to learn the topic of a user's conversation (e.g., medical advice vs. coding assistance) with 90%+ precision, and on production systems like OpenAI's ChatGPT and Anthropic's Claude we can distinguish between specific messages or infer the user's language. We further show that an active adversary can leverage a boosting attack to recover PII placed in messages (e.g., phone numbers or credit card numbers) for open source systems. We conclude with potential defenses and directions for future work.

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

↑