用混淆检索生成防御大模型隐私泄露攻击
Retrieval-Confused Generation is a Good Defender for Privacy Violation Attack of Large Language Models

- 通过改写用户评论构建干扰数据库,实现隐蔽防御
- 采用最不相关检索策略,使模型返回错误个人数据
- 在8个主流大模型上验证有效,兼顾效率与安全性
大语言模型的快速发展带来了深远社会影响,也引发新的安全担忧。特别是由于其强大的推理能力,斯塔布等人揭示的隐私泄露攻击(PVA)会严重侵犯个人隐私。现有防御方法主要依赖大模型对输入查询进行匿名化处理,存在计算成本高、防御效果不佳的问题。直接拒绝攻击查询看似有效,但会暴露防御机制,促使攻击升级。本文提出一种基于检索-混淆生成(RCG)的新防御范式,可高效且隐蔽地防御PVA。首先设计重述提示,诱导大模型将攻击查询中的“用户评论”改写,构建干扰数据库;然后提出最不相关检索策略,从该数据库中检索目标用户数据;最后用检索到的数据替换“数据评论”,形成被防御的查询,导致模型回应错误的个人属性,使攻击失败。在两个数据集和八个主流大模型上进行了全面实验,验证了该方法的可行性和优越性。
原文摘要 · Abstract (English)
Recent advances in large language models (LLMs) have made a profound impact on our society and also raised new security concerns. Particularly, due to the remarkable inference ability of LLMs, the privacy violation attack (PVA), revealed by Staab et al., introduces serious personal privacy issues. Existing defense methods mainly leverage LLMs to anonymize the input query, which requires costly inference time and cannot gain satisfactory defense performance. Moreover, directly rejecting the PVA query seems like an effective defense method, while the defense method is exposed, promoting the evolution of PVA. In this paper, we propose a novel defense paradigm based on retrieval-confused generation (RCG) of LLMs, which can efficiently and covertly defend the PVA. We first design a paraphrasing prompt to induce the LLM to rewrite the "user comments" of the attack query to construct a disturbed database. Then, we propose the most irrelevant retrieval strategy to retrieve the desired user data from the disturbed database. Finally, the "data comments" are replaced with the retrieved user data to form a defended query, leading to responding to the adversary with some wrong personal attributes, i.e., the attack fails. Extensive experiments are conducted on two datasets and eight popular LLMs to comprehensively evaluate the feasibility and the superiority of the proposed defense method.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。