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

猜谜吧!针对检索增强生成(RAG)的隐蔽成员推理攻击

Riddle Me This! Stealthy Membership Inference for Retrieval-Augmented Generation

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Northeastern University(东北大学)

Ali Naseh, Yuefeng Peng, Anshuman Suri, Harsh Chaudhari, Alina Oprea, Amir Houmansadr

AI总结:

本研究提出审问攻击(IA),一种针对RAG数据存储的隐蔽成员推理技术,通过构造自然文本查询实现高效推理,在保持隐蔽性的同时显著提升攻击性能并降低成本。

摘要:

检索增强生成(RAG)使大型语言模型(LLMs)能够通过利用外部知识库生成有根据的响应,而无需更改模型参数。尽管权重微调的缺失防止了通过模型参数泄露信息,但这引入了推理对手利用模型上下文中检索文档的风险。现有的成员推理和数据提取方法通常依赖于越狱或精心设计的非自然查询,这些方法很容易被RAG系统中常见的查询重写技术检测或阻止。在本研究中,我们提出了审问攻击(IA),这是一种针对RAG数据存储中文档的成员推理技术。通过构造仅在有目标文档存在时才能回答的自然文本查询,我们的方法在仅使用30个查询的情况下展示了成功的推理,同时保持隐蔽性;直接检测器识别现有方法的对抗性提示的频率比我们攻击生成的提示高出约76倍。我们观察到,在多种RAG配置中,TPR@1%FPR比先前的推理攻击提高了2倍,而每次文档推理的成本不到0.02美元。

英文摘要:

Retrieval-Augmented Generation (RAG) enables Large Language Models (LLMs) to generate grounded responses by leveraging external knowledge databases without altering model parameters. Although the absence of weight tuning prevents leakage via model parameters, it introduces the risk of inference adversaries exploiting retrieved documents in the model's context. Existing methods for membership inference and data extraction often rely on jailbreaking or carefully crafted unnatural queries, which can be easily detected or thwarted with query rewriting techniques common in RAG systems. In this work, we present Interrogation Attack (IA), a membership inference technique targeting documents in the RAG datastore. By crafting natural-text queries that are answerable only with the target document's presence, our approach demonstrates successful inference with just 30 queries while remaining stealthy; straightforward detectors identify adversarial prompts from existing methods up to ~76x more frequently than those generated by our attack. We observe a 2x improvement in TPR@1%FPR over prior inference attacks across diverse RAG configurations, all while costing less than $0.02 per document inference.

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

↑