English

RAG with Differential Privacy

Machine Learning 2025-01-23 v2 Artificial Intelligence Cryptography and Security

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.

Keywords

Cite

@article{arxiv.2412.19291,
  title  = {RAG with Differential Privacy},
  author = {Nicolas Grislain},
  journal= {arXiv preprint arXiv:2412.19291},
  year   = {2025}
}
R2 v1 2026-06-28T20:49:20.847Z