arXiv:2610.21245cs.CROct 2026

Manuscript Offprint

arXiv:2610.21245

From One Query to Many: A Critical Survey of Privacy Accounting in RAG

Zhiyuan Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Retrieval-augmented generation (RAG) enables large language models to leverage external knowledge but introduces privacy risks when the retrieved corpus contains sensitive information. Differential privacy (DP) offers formal protection, yet interpreting and comparing privacy guarantees across existing DP-RAG methods remains challenging. In particular, a privacy budget reported for a single response does not directly characterize privacy loss over repeated queries, and even identical values of ε\varepsilon may represent different guarantees depending on the protected data unit, accounting horizon, and observable outputs. This survey critically examines how privacy accounting evolves from single-query generation to multi-query RAG systems. We categorize existing approaches into query-time privatization, multi-query accounting, and one-time corpus privatization. We analyze their underlying assumptions and privacy–utility trade-offs. Rather than ranking methods by ε\varepsilon alone, we propose a framework that interprets a DP-RAG guarantee along three dimensions: privacy granularity, accounting scope, and release boundaries. We conclude that an ε\varepsilon is a claim only together with the three slots: the protected unit, the accounting scope, and the release boundary.

1 Introduction

Retrieval-augmented generation places a corpus in the inference path of a language model, which is what makes it useful in domains whose data never entered pretraining, and what makes it dangerous when that data is sensitive. A sustained line of work has shown that unprotected RAG systems disclose their corpora: membership in the retrieval database can be inferred [4, 33, 36, 32], and document content can be reconstructed through adversarial prompting or poisoning [21, 38, 8, 49]. Differential privacy is the natural response, and a small literature of DP-RAG systems now exists, each reporting a privacy budget for the protection it provides.

These budgets cannot be read against one another, and the reason is not that the numbers are loose. What a system spends on a single answer says little about what it spends serving a stream of answers, and the gap between the two depends on a variable that the single-response statement never mentions, the number of queries. Two systems can also report the same ε\varepsilon while protecting different units, tallying loss against different objects, and exposing different things to the adversary. In that case the numbers agree but the guarantees do not, so ranking methods by their reported ε\varepsilon compares quantities of different kinds.

This survey reads the literature through the transition that exposes the problem most sharply: the move from answering one query to answering many. We group existing systems into three families according to when they spend the budget (query-time privatization, multi-query accounting, and one-time corpus privatization) and state the guarantee of each in a common notation (Sections 2 and 3). We then write a DP-RAG guarantee as a single inequality with three free slots (Eq. 7): the neighbouring relation, the privacy loss as a function of the number of queries, and the adversary's observable. Section 4 develops the three dimensions that fill these slots, namely privacy granularity, accounting scope, and release boundaries, and shows how each one changes the interpretation of a reported ε\varepsilon. Section 5 turns to what still prevents comparison among systems that agree on all three: query overlap, budget exhaustion, and a persistent mismatch between the attack and defence literatures each hide quantities that determine the result. Section 6 concludes the paper.

References (49)