Mask-based Membership Inference Attacks for Retrieval-Augmented Generation
On the map: Retrieval-augmented generation → Privacy and security of RAG
also in 1 more
Abstract (arXiv)
Retrieval-Augmented Generation (RAG) has been an effective approach to mitigate hallucinations in large language models (LLMs) by incorporating up-to-date and domain-specific knowledge. Recently, there has been a trend of storing up-to-date or copyrighted data in RAG knowledge databases instead of using it for LLM training. This practice has raised concerns about Membership Inference Attacks (MIAs), which aim to detect if a specific target document is stored in the RAG system's knowledge database so as to protect the rights of data producers. While research has focused on enhancing the trustworthiness of RAG systems, existing MIAs for RAG systems remain largely insufficient. Previous work either relies solely on the RAG system's judgment or is easily influenced by other documents or the LLM's internal knowledge, which is unreliable and lacks explainability. To address these limitations, we propose a Mask-Based Membership Inference Attacks (MBA) framework. Our framework first employs a masking algorithm that effectively masks a certain number of words in the target document. The masked text is then used to prompt the RAG system, and the RAG system is required to predict the mask values. If the target document appears in the knowledge database, the masked text will retrieve the complete target document as context, allowing for accurate mask prediction. Finally, we adopt a simple yet effective threshold-based method to infer the membership of target document by analyzing the accuracy of mask prediction. Our mask-based approach is more document-specific, making the RAG system's generation less susceptible to distractions from other documents or the LLM's internal knowledge. Extensive experiments demonstrate the effectiveness of our approach compared to existing baseline models.
Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 26 of its 42 references that are in the map. First posted on arXiv 26 Oct 2024.
Builds on
26 of 42 references.
Closest ancestors · 3
Same direction, newest first
- 2024Certifiably Robust RAG against Retrieval Corruption24 May
- 2024Follow My Instruction and Spill the Beans: Scalable Data Extraction from Retrieval-Augmented Generation Systems27 Feb
- 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)23 Feb
Other references · 23
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,411
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2023In-Context Retrieval-Augmented Language Modelscited by 694
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 508
- 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 462
11 more
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
- 2021Membership Inference Attacks on Machine Learning: A Surveycited by 306
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 249
- 2023Foundation Models and Fair Usecited by 112
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Surveycited by 83
- 2023UPRISE: Universal Prompt Retrieval for Improving Zero-Shot Evaluationcited by 74
- 2023Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-Incited by 71
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
- 2023Right to be Forgotten in the Era of Large Language Models: Implications, Challenges, and Solutionscited by 59
- 2023Knowledge Graph-Augmented Language Models for Knowledge-Grounded Dialogue Generationcited by 54
- 2022Mask and Cloze: Automatic Open Cloze Question Generation using a Masked Language Modelcited by 3
Built on by
Citing papers per year: 2025: 12; 2026: 17.
29 papers.
Sort:
By area:
- 2025Membership Inference Attacks on Large-Scale Models: A Surveycited by 17
- 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surfacecited by 8
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systemscited by 7
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)cited by 5
- 2025ImageSentinel: Protecting Visual Datasets from Unauthorized Retrieval-Augmented Image Generationcited by 4
- 2026Five Queries Are Enough: Query-Efficient and Surrogate-Free Membership Inference Attacks on RAG via Entailmentcited by 4
- 2025SMA: Who Said That? Auditing Membership Leakage in Semi-Black-box RAG Controllingcited by 3
- 2026Connect the Dots: Knowledge Graph-Guided Crawler Attack on Retrieval-Augmented Generation Systemscited by 3
- 2025Distributed Retrieval-Augmented Generationcited by 2
- 2025MrM: Black-Box Membership Inference Attacks against Multimodal RAG Systemscited by 2
- 2025Fine-Grained Privacy Extraction from Retrieval-Augmented Generation Systems via Knowledge Asymmetry Exploitationcited by 2
17 more
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Privatecited by 2
- 2025Privacy Challenges and Solutions in Retrieval-Augmented Generation-Enhanced LLMs for Healthcare Chatbots: A Review of Applications, Risks, and Future Directionscited by 2
- 2025BudgetLeak: Membership Inference Attacks on RAG Systems via the Generation Budget Side Channelcited by 2
- 2026MRMMIA: Membership Inference Attacks on Memory in Chat Agentscited by 2
- 2026RedVisor: Reasoning-Aware Prompt Injection Defense via Zero-Copy KV Cache Reusecited by 1
- 2026KEPo: Knowledge Evolution Poison on Graph-based Retrieval-Augmented Generationcited by 1
- 2026Sensitivity-Aware Retrieval-Augmented Intent Clarificationcited by 0
- 2026Automated Membership Inference Attacks (AutoMIA): Discovering MIA Signal Computations using LLM Agentscited by 0
- 2026Adaptive Defense Orchestration for RAG: A Sentinel-Strategist Architecture against Multi-Vector Attackscited by 0
- 2026E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systemscited by 0
- 2026On the Privacy of LLMs: An Ablation Studycited by 0
- 2026ImageAuditor: Membership Inference Attack against Image-based Retrieval-Augmented Generationcited by 0
- 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systemscited by 0
- 2026Privacy-Preserving RAG by Concealing Sensitive Information from External LLMscited by 0
- 2026Context Inference Attacks Without Jailbreakscited by 0
- 2026K-Bench: A Benchmark for LLM Unlearning in Agentic Deploymentscited by 0
- 2026CIG-MIA: Context-Induced Information Gain Membership Inference Attacks against Retrieval-Augmented Generationcited by 0
- 2026CIG-MIA: Context-Induced Information Gain Membership Inference Attacks against Retrieval-Augmented Generation13 Sep 2026
- 2026K-Bench: A Benchmark for LLM Unlearning in Agentic Deployments11 Sep 2026
- 2026Context Inference Attacks Without Jailbreaks31 Aug 2026
- 2026Privacy-Preserving RAG by Concealing Sensitive Information from External LLMs13 Aug 2026
- 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systems24 Jun 2026
- 2026ImageAuditor: Membership Inference Attack against Image-based Retrieval-Augmented Generation2 Jun 2026
- 2026MRMMIA: Membership Inference Attacks on Memory in Chat Agents27 May 2026
- 2026Five Queries Are Enough: Query-Efficient and Surrogate-Free Membership Inference Attacks on RAG via Entailment23 May 2026
- 2026On the Privacy of LLMs: An Ablation Study4 May 2026
- 2026E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systems1 May 2026
- 2026Adaptive Defense Orchestration for RAG: A Sentinel-Strategist Architecture against Multi-Vector Attacks22 Apr 2026
- 2026Automated Membership Inference Attacks (AutoMIA): Discovering MIA Signal Computations using LLM Agents19 Mar 2026
17 more
- 2026KEPo: Knowledge Evolution Poison on Graph-based Retrieval-Augmented Generation12 Mar 2026
- 2026Sensitivity-Aware Retrieval-Augmented Intent Clarification6 Mar 2026
- 2026RedVisor: Reasoning-Aware Prompt Injection Defense via Zero-Copy KV Cache Reuse2 Feb 2026
- 2026Connect the Dots: Knowledge Graph-Guided Crawler Attack on Retrieval-Augmented Generation Systems22 Jan 2026
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systems7 Jan 2026
- 2025BudgetLeak: Membership Inference Attacks on RAG Systems via the Generation Budget Side Channel15 Nov 2025
- 2025Privacy Challenges and Solutions in Retrieval-Augmented Generation-Enhanced LLMs for Healthcare Chatbots: A Review of Applications, Risks, and Future Directions14 Nov 2025
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Private10 Nov 2025
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoption21 Oct 2025
- 2025ImageSentinel: Protecting Visual Datasets from Unauthorized Retrieval-Augmented Image Generation14 Oct 2025
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)8 Oct 2025
- 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface24 Sep 2025
- 2025SMA: Who Said That? Auditing Membership Leakage in Semi-Black-box RAG Controlling12 Aug 2025
- 2025Fine-Grained Privacy Extraction from Retrieval-Augmented Generation Systems via Knowledge Asymmetry Exploitation31 Jul 2025
- 2025MrM: Black-Box Membership Inference Attacks against Multimodal RAG Systems9 Jun 2025
- 2025Distributed Retrieval-Augmented Generation1 May 2025
- 2025Membership Inference Attacks on Large-Scale Models: A Survey25 Mar 2025
- 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surfacecited by 8
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systemscited by 7
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)cited by 5
- 2026Five Queries Are Enough: Query-Efficient and Surrogate-Free Membership Inference Attacks on RAG via Entailmentcited by 4
- 2025SMA: Who Said That? Auditing Membership Leakage in Semi-Black-box RAG Controllingcited by 3
- 2026Connect the Dots: Knowledge Graph-Guided Crawler Attack on Retrieval-Augmented Generation Systemscited by 3
- 2025Distributed Retrieval-Augmented Generationcited by 2
- 2025Fine-Grained Privacy Extraction from Retrieval-Augmented Generation Systems via Knowledge Asymmetry Exploitationcited by 2
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Privatecited by 2
- 2025Privacy Challenges and Solutions in Retrieval-Augmented Generation-Enhanced LLMs for Healthcare Chatbots: A Review of Applications, Risks, and Future Directionscited by 2
- 2025BudgetLeak: Membership Inference Attacks on RAG Systems via the Generation Budget Side Channelcited by 2
- 2026KEPo: Knowledge Evolution Poison on Graph-based Retrieval-Augmented Generationcited by 1
12 most cited of 20 All 20 (JSON)
- 2026CIG-MIA: Context-Induced Information Gain Membership Inference Attacks against Retrieval-Augmented Generation13 Sep 2026
- 2026Privacy-Preserving RAG by Concealing Sensitive Information from External LLMs13 Aug 2026
- 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systems24 Jun 2026
- 2026ImageAuditor: Membership Inference Attack against Image-based Retrieval-Augmented Generation2 Jun 2026
- 2026Five Queries Are Enough: Query-Efficient and Surrogate-Free Membership Inference Attacks on RAG via Entailment23 May 2026
- 2026On the Privacy of LLMs: An Ablation Study4 May 2026
- 2026E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systems1 May 2026
- 2026Adaptive Defense Orchestration for RAG: A Sentinel-Strategist Architecture against Multi-Vector Attacks22 Apr 2026
- 2026KEPo: Knowledge Evolution Poison on Graph-based Retrieval-Augmented Generation12 Mar 2026
- 2026Sensitivity-Aware Retrieval-Augmented Intent Clarification6 Mar 2026
- 2026Connect the Dots: Knowledge Graph-Guided Crawler Attack on Retrieval-Augmented Generation Systems22 Jan 2026
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systems7 Jan 2026
12 newest of 20 All 20 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Is My Data in Your Retrieval Database? Membership Inference Attacks Against Retrieval Augmented Generation
- 2025Safeguarding Privacy of Retrieval Data against Membership Inference Attacks: Is This Query Too Close to Home?
- 2025Riddle Me This! Stealthy Membership Inference for Retrieval-Augmented Generation
- 2024Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generation
- 2025Token-Level Precise Attack on RAG: Searching for the Best Alternatives to Mislead Generation
- 2025RAGPart & RAGMask: Retrieval-Stage Defenses Against Corpus Poisoning in Retrieval-Augmented Generation
- 2025DCMI: A Differential Calibration Membership Inference Attack Against Retrieval-Augmented Generation
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models