Mitigating the Privacy Issues in Retrieval-Augmented Generation (RAG) via Pure Synthetic Data
About
Retrieval-augmented generation (RAG) enhances the outputs of language models by integrating relevant information retrieved from external knowledge sources. However, when the retrieval process involves private data, RAG systems may face severe privacy risks, potentially leading to the leakage of sensitive information. To address this issue, we propose using synthetic data as a privacy-preserving alternative for the retrieval data. We propose SAGE, a novel two-stage synthetic data generation paradigm. In the stage-1, we employ an attribute-based extraction and generation approach to preserve key contextual information from the original data. In the stage-2, we further enhance the privacy properties of the synthetic data through an agent-based iterative refinement process. Extensive experiments demonstrate that using our synthetic data as the retrieval context achieves comparable performance to using the original data while substantially reducing privacy risks. Our work takes the first step towards investigating the possibility of generating high-utility and privacy-preserving synthetic data for RAG, opening up new opportunities for the safe application of RAG systems in various domains.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Multi-hop Question Answering | 2WikiMultihopQA | -- | 559 | |
| Multi-hop Question Answering | HotpotQA | -- | 294 | |
| Untargeted Reconstruction Attack | ChatDoctor 250 adversarial prompts | Repeat Prompt0.00e+0 | 42 | |
| Retrieval-based Question Answering | ChatDoctor | ROUGE-L9.1 | 23 | |
| Factual Consistency Evaluation | ChatDoctor | FC Score3.37 | 7 | |
| Factual Consistency Evaluation | Wiki-PII | FC Score3.2 | 7 | |
| Preprocessing efficiency | ChatDoctor | Preprocessing Time (s/sample)238.5 | 6 | |
| Preprocessing efficiency | Wiki-PII | Preprocessing Time (s/sample)158.3 | 6 | |
| Knowledge Base Extraction | ChatDoctor Pirates attack | CRR76 | 5 | |
| Knowledge Base Extraction | ChatDoctor RAG-Thief attack | CRR65.4 | 5 |