P2RAG: Efficient Privacy-Preserving RAG Service Supporting Arbitrary Top-k Retrieval
On the map: Retrieval-augmented generation → Privacy and security of RAG
Abstract (arXiv)
Retrieval-Augmented Generation (RAG) enables large language models to use external knowledge, but outsourcing the RAG service raises privacy concerns for both data owners and users. Privacy-preserving RAG systems address these concerns by performing secure top-k retrieval, which is typically implemented using secure sorting to identify relevant documents. However, existing systems face challenges supporting arbitrary k due to their inability to change k, new security issues, and in particular, efficiency degradation with large k. This is a significant limitation because applications such as finance, law, and healthcare require a k that is large enough to cause huge overhead for existing systems. Also, modern long-context models generally achieve higher accuracy with larger retrieval sets. We propose P2RAG, an efficient privacy-preserving RAG service that supports arbitrary top-k retrieval. Unlike existing systems, P2RAG avoids sorting candidate documents. Instead, it uses an interactive bisection method to determine the set of top-k documents. For security, P2RAG uses secret sharing on two semi-honest non-colluding servers to protect the data owner's database and the user's prompt. It enforces restrictions and verification to defend against malicious users and tightly bounds the information leakage of the database. The experiments show that P2RAG is 3--300× faster than the state-of-the-art PRAG for k = 16--1024.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 13 of its 65 references that are in the map. First posted on arXiv 16 Mar 2026.
Builds on
13 of 65 references.
Closest ancestors · 4
Same direction, newest first
- 2026MulVul: Retrieval-augmented Multi-Agent Code Vulnerability Detection via Cross-Model Prompt Evolution26 Jan
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Private10 Nov
- 2024RemoteRAG: A Privacy-Preserving LLM Cloud RAG Service17 Dec
- 2024Privacy-Preserving Retrieval-Augmented Generation with Differential Privacy6 Dec
Other references · 9
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
- 2024Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approachcited by 117
- 2022MPCFormer: fast, performant and private Transformer inference with MPCcited by 67
- 2024Long Context vs. RAG for LLMs: An Evaluation and Revisitscited by 24
- 2024PermLLM: Private Inference of Large Language Models within 3 Seconds under WANcited by 13
- 2019SANNS: Scaling Up Secure Approximate k-Nearest Neighbors Searchcited by 12
- 2019Express: Lowering the Cost of Metadata-hiding Communication with Cryptographic Privacycited by 2
- 2015Exploring Privacy Preservation in Outsourced K-Nearest Neighbors with Multiple Data Ownerscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Privacy-Aware RAG: Secure and Isolated Knowledge Retrieval
- 2026PRAG: End-to-End Privacy-Preserving Retrieval-Augmented Generation
- 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systems
- 2025PIR-RAG: A System for Private Information Retrieval in Retrieval-Augmented Generation
- 2024Pirates of the RAG: Adaptively Attacking LLMs to Leak Knowledge Bases
- 2026Efficient Privacy-Preserving Retrieval Augmented Generation with Distance-Preserving Encryption
- 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface
- 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)