arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.09291cs.CR
收藏

分布式大语言模型推理框架上的提示词推断攻击

Prompt Inference Attack on Distributed Large Language Model Inference Frameworks

Xinjian Luo, Ting Yu, Xiaokui Xiao

AI总结:

本文针对分布式大语言模型推理框架,设计三种提示词推断攻击以从中间输出重建输入提示词,实验显示前两种攻击重建准确率超90%,第三种在严格约束下也超50%,揭示了严重隐私风险。

摘要:

现代大语言模型(LLM)的推理过程需要极其高昂的计算资源,这使得它们无法在消费级设备上部署。为解决这一限制,近期研究提出了分布式LLM推理框架,该框架采用分割学习原理,能够在资源受限的硬件上实现协作式LLM推理。然而,将LLM的各层分布在不同参与者之间需要传输中间输出,这可能对原始输入提示词引入隐私风险——这是一个在文献中尚未被深入探讨的关键问题。\n\n在本文中,我们通过设计并评估三种提示词推断攻击来严格审视分布式LLM推理框架的隐私漏洞,这些攻击旨在从LLM的中间输出中重建输入提示词。这些攻击是在不同的查询和数据约束条件下开发的,以反映现实世界中多样化的LLM服务场景。具体而言,第一种攻击假设拥有无限的查询预算,并能访问一个与目标提示词同分布的辅助数据集。第二种攻击同样利用无限查询,但使用的辅助数据集与目标提示词的分布不同。第三种攻击在最具限制性的场景下运行,即查询预算有限且没有可用的辅助数据集。我们在多种LLM上评估了这些攻击,包括Llama-3.2和Phi-3.5等最先进的模型,以及GPT-2和BERT等广泛使用的模型以进行对比分析。我们的实验表明,前两种攻击的重建准确率超过90%,而第三种攻击即使在严格约束下,准确率通常也高于50%。这些发现凸显了分布式LLM推理框架中的隐私风险,对其在实际应用中的部署发出了强烈警示。

英文摘要:

The inference process of modern large language models (LLMs) demands prohibitive computational resources, rendering them infeasible for deployment on consumer-grade devices. To address this limitation, recent studies propose distributed LLM inference frameworks, which employ split learning principles to enable collaborative LLM inference on resource-constrained hardware. However, distributing LLM layers across participants requires the transmission of intermediate outputs, which may introduce privacy risks to the original input prompts - a critical issue that has yet to be thoroughly explored in the literature. In this paper, we rigorously examine the privacy vulnerabilities of distributed LLM inference frameworks by designing and evaluating three prompt inference attacks aimed at reconstructing input prompts from intermediate LLM outputs. These attacks are developed under various query and data constraints to reflect diverse real-world LLM service scenarios. Specifically, the first attack assumes an unlimited query budget and access to an auxiliary dataset sharing the same distribution as the target prompts. The second attack also leverages unlimited queries but uses an auxiliary dataset with a distribution differing from the target prompts. The third attack operates under the most restrictive scenario, with limited query budgets and no auxiliary dataset available. We evaluate these attacks on a range of LLMs, including state-of-the-art models such as Llama-3.2 and Phi-3.5, as well as widely-used models like GPT-2 and BERT for comparative analysis. Our experiments show that the first two attacks achieve reconstruction accuracies exceeding 90%, while the third achieves accuracies typically above 50%, even under stringent constraints. These findings highlight privacy risks in distributed LLM inference frameworks, issuing a strong alert on their deployment in real-world applications.

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

↑