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

从混合专家模型中窃取用户提示词

Stealing User Prompts from Mixture of Experts

Google DeepMind(谷歌DeepMind)

Itay Yona, Ilia Shumailov, Jamie Hayes, Nicholas Carlini

AI总结:

该研究发现混合专家模型的专家选择路由存在架构漏洞,攻击者可通过同批次查询结合torch.topk的平局处理机制窃取用户提示词,在两层Mixtral模型上验证了攻击有效性,揭示了一类新的LLM安全漏洞。

摘要:

混合专家(Mixture-of-Experts, MoE)模型通过将每个token路由到每层中少量专家,提升了稠密语言模型的效率与可扩展性。本文中,我们展示了能够安排自身查询与受害者查询出现在同一批次样本中的攻击者,如何利用专家选择路由(Expert-Choice-Routing)完全泄露受害者的提示词。我们成功在两层Mixtral模型上验证了该攻击的有效性,攻击利用了torch.topk CUDA实现的平局处理机制。结果表明,我们可以通过O(VM²)次查询(其中V为词表大小,M为提示词长度)提取完整提示词;在我们的实验设置下,平均每个token仅需100次查询。这是首个利用架构缺陷提取用户提示词的攻击,揭示了一类新的大语言模型(LLM)漏洞。

英文摘要:

Mixture-of-Experts (MoE) models improve the efficiency and scalability of dense language models by routing each token to a small number of experts in each layer. In this paper, we show how an adversary that can arrange for their queries to appear in the same batch of examples as a victim's queries can exploit Expert-Choice-Routing to fully disclose a victim's prompt. We successfully demonstrate the effectiveness of this attack on a two-layer Mixtral model, exploiting the tie-handling behavior of the torch.topk CUDA implementation. Our results show that we can extract the entire prompt using $O({VM}^2)$ queries (with vocabulary size $V$ and prompt length $M$) or 100 queries on average per token in the setting we consider. This is the first attack to exploit architectural flaws for the purpose of extracting user prompts, introducing a new class of LLM vulnerabilities.

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

↑