RAG with Differential Privacy

Nicolas Grislain
12/26/2024
cs.LGcs.AIcs.CR

No official code found. Best implementation: sarus-tech/dp-rag (19 stars, Apache-2.0, last commit 2025-03-17).

Abstract

Retrieval-Augmented Generation (RAG) has emerged as the dominant technique to provide \emph{Large Language Models} (LLM) with fresh and relevant context, mitigating the risk of hallucinations and improving the overall quality of responses in environments with large and fast moving knowledge bases. However, the integration of external documents into the generation process raises significant privacy concerns. Indeed, when added to a prompt, it is not possible to guarantee a response will not inadvertently expose confidential data, leading to potential breaches of privacy and ethical dilemmas. This paper explores a practical solution to this problem suitable to general knowledge extraction from personal data. It shows \emph{differentially private token generation} is a viable approach to private RAG.

View on arXivView PDF

Code Implementations(1)

sarus-tech/dp-ragCommunity100%
Apache-2.0

A simple implementation of DP-RAG

193TeX, PythonNov 29, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{grislain2024with,
  title  = {RAG with Differential Privacy},
  author = {Nicolas Grislain},
  year   = {2024},
  eprint = {2412.19291},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.19291v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.19291.svg)](https://codeofpaper.com/paper/2412.19291)

Discussion