针对大语言模型协同推理的提示词反演攻击
Prompt Inversion Attack against Collaborative Inference of Large Language Models
AI总结:
本文提出针对大语言模型协同推理的提示词反演攻击(PIA),通过反演中间激活值恢复输入提示词,实验证明其显著优于基线方法,揭示了协同推理系统的严重隐私威胁。
摘要:
大语言模型(LLMs)因其卓越的内容生成能力而被广泛应用。然而,开源LLMs的实际使用受到高资源需求的阻碍,导致部署成本高昂并限制了其广泛发展。协同推理是解决这一问题的一种有前景的方案,用户通过各自托管一部分层并传输中间激活值来进行协作。许多公司正在构建协同推理平台,利用用户未充分利用的GPU来降低LLM服务成本。尽管学术界和工业界对协同推理有广泛兴趣,但与LLM协同推理相关的隐私风险尚未得到充分研究。这在很大程度上是因为LLM激活值的强非线性给反演带来了挑战。在本文中,为了验证LLM协同推理中隐私威胁的严重性,我们引入了提示词反演攻击(PIA)的概念,其中恶意参与者意图通过其前一个参与者传输的激活值来恢复输入提示词。大量实验表明,我们的PIA方法显著优于现有基线方法。例如,在反演最大数量的transformer层时,我们的方法在Skytrax数据集上使用Llama-65B模型实现了88.4%的token准确率,而最佳基线方法仅达到22.8%的准确率。结果验证了我们PIA攻击的有效性,并突显了其对LLM协同推理系统的实际威胁。
英文摘要:
Large language models (LLMs) have been widely applied for their remarkable capability of content generation. However, the practical use of open-source LLMs is hindered by high resource requirements, making deployment expensive and limiting widespread development. The collaborative inference is a promising solution for this problem, in which users collaborate by each hosting a subset of layers and transmitting intermediate activation. Many companies are building collaborative inference platforms to reduce LLM serving costs, leveraging users' underutilized GPUs. Despite widespread interest in collaborative inference within academia and industry, the privacy risks associated with LLM collaborative inference have not been well studied. This is largely because of the challenge posed by inverting LLM activation due to its strong non-linearity. In this paper, to validate the severity of privacy threats in LLM collaborative inference, we introduce the concept of prompt inversion attack (PIA), where a malicious participant intends to recover the input prompt through the activation transmitted by its previous participant. Extensive experiments show that our PIA method substantially outperforms existing baselines. For example, our method achieves an 88.4\% token accuracy on the Skytrax dataset with the Llama-65B model when inverting the maximum number of transformer layers, while the best baseline method only achieves 22.8\% accuracy. The results verify the effectiveness of our PIA attack and highlights its practical threat to LLM collaborative inference systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。