Skip to content
Open access

ContextGuard-RAG: Contextual Integrity-Aware Retrieval-Augmented Generation with Multi-Agent Privacy Enforcement for Sensitive Document Question Answering

Sep 2026 · Symmetry · Vol 18, pp. 1572 · 0 citations · 45 references

TL;DR

ContextGuard-RAG is introduced, a multi-agent privacy enforcement framework that embeds CI theory directly into the retrieval and generation pipeline and performs norm-aware retrieval rather than post hoc filtering and benefits four backbone LLMs without retraining the upstream agents.

Abstract

Large language model (LLM)-powered retrieval-augmented generation (RAG) systems significantly reduce factual errors in question answering, but they present a novel and under-investigated attack surface: factual information in retrieved text can be exposed in ways that do not align with the disclosure norms of the information itself. In legal, medical, and enterprise environments, this leakage is not only a confidentiality violation but a contextual integrity (CI) violation, where privacy is understood as the appropriate flow of information between roles and for specific purposes. Current defenses are mostly input minimizers or post hoc output filters that are blind to the circumstances of the data source (sender, recipient, purpose), creating a structural gap between the document store and the model generation step. We introduce ContextGuard-RAG, a multi-agent privacy enforcement framework that embeds CI theory directly into the retrieval and generation pipeline. It consists of three tightly coupled components: a CI-policy encoder that attaches sender, recipient, subject, information-type, and transmission-principle norms to retrieved contexts from document metadata; a privacy-aware reranker that filters contexts violating inferred CI norms using a fine-tuned cross-encoder classifier; and a generative firewall agent that sanitizes output using reinforcement learning to avoid transitive leakage through document-derived hallucinations or indirect inferences. On PrivacyQA, MedQA, and LegalBench, ContextGuard-RAG reduces CI violations by about 34 percent relative to vanilla RAG, by 13.5 percent on average over AirGapAgent, and by 10 percent on average over the 1-2-3 Check multi-agent reasoning approach, while achieving parity with the best accuracy baseline in ROUGE-L (within 0.6 absolute points) and remaining stable under context-hijacking adversarial probes. Unlike prior approaches, ContextGuard-RAG performs norm-aware retrieval rather than post hoc filtering and benefits four backbone LLMs without retraining the upstream agents.

Read PDF

Similar papers

Review Open access Nov 2026

Security, Privacy, and Trustworthy Design for Retrieval-Augmented Generation Systems

Retrieval-augmented generation (RAG) lets a language model draw on an external knowledge store. Factual coverage improves, but the system also gains security and privacy boundaries that a stand-alone model does not have: a malicious or unauthorized document can shape what is retrieved, enter the model context, over-rid...

A. Alghamdi · 0 citations
Preprint Oct 2026

RAGLeak: Supply-Chain Privacy Backdoors in Retrieval-Augmented Generation

Retrieval-Augmented Generation (RAG) enables large language models to access external knowledge during inference, but its reliance on external knowledge bases also introduces new attack surfaces. Existing data extraction attacks against RAG systems rely on either prompt injection, which heavily depends on the generator...

Yuchen Chen, Wei Cheng, Yuan Xiao et al. · 0 citations
Conference Open access 2026

Contextualized Obfuscation: A Privacy-Preserving Architecture for Safe LLM Integration in Judicial Text Processing

: The adoption of Large Language Models (LLMs) in judicial environments is constrained by strict privacy requirements and the risk of exposing sensitive information under regulations such as the Brazilian General Data Protection Law (LGPD). This work presents a privacy-preserving adaptation pipeline for judicial docume...

R. Ramos, Ézio Pacheco, João Omati et al. · 0 citations
Review Open access Nov 2026

Privacy Preservation and Personal Data Deletion: State-of-the-Art Review and a Proposed LLM-Based Multi-Agent Architecture

Privacy policies are the primary legal documents through which online platforms disclose their data practices, yet they remain difficult for users to understand and even harder to act upon. Parallel research has explored automated privacy policy analysis using natural language processing (NLP), large-scale web privacy...

Hemali Dholam, Heeba Deshmukh, Sneha Ingale et al. · 0 citations
Conference Oct 2026

Redaction-Aware Generative AI for Privacy-Preserving Enterprise IT Knowledge Assistance

Enterprise IT support systems are increasingly using large knowledge bases to answer operational queries, but conventional retrieval augmented generation systems lack governance aware controls and can unintentionally leak sensitive enterprise information. This paper presents a GRC-aware secure enterprise knowledge assi...

Krishna Kishor Tirupati, Naresh Kumar Methuku, Pradeep Kumar Chilukury · 0 citations

Protection Is Not One Event: A Survey of RAG Protection Research by Measured Endpoint

A systematic survey and human-coded evidence map of 118 full-text-confirmed RAG defense papers, organized by measured endpoint rather than claimed goal or defense mechanism, and the taxonomy, dataset, coding protocols, and testbed are released to enable comparable, claim-aligned RAG security evaluation.

Peiyang Liu, Xi Wang, Di Liang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.