cs.CRMar 16, 2026

P2^2RAG: Efficient Privacy-Preserving RAG Service Supporting Arbitrary Top-kk Retrieval

Authors: Yulong Ming, Mingyue Wang, Jijia Yang, Jie Xu, Zihan Wu, Cong Wang, Xiaohua Jia

Organizations: City University of Hong Kong · Peng Cheng Laboratory

Abstract

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-kk retrieval, which is typically implemented using secure sorting to identify relevant documents. However, existing systems face challenges supporting arbitrary kk due to their inability to change kk, new security issues, and in particular, efficiency degradation with large kk. This is a significant limitation because applications such as finance, law, and healthcare require a kk 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 P2^2RAG, an efficient privacy-preserving RAG service that supports arbitrary top-kk retrieval. Unlike existing systems, P2^2RAG avoids sorting candidate documents. Instead, it uses an interactive bisection method to determine the set of top-kk documents. For security, P2^2RAG 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 P2^2RAG is 3--300×\times faster than the state-of-the-art PRAG for k=16k = 16--10241024.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Private Retrieval Augmented Generation via Random Projection

    Oct 15, 2026Dixi Yao, Tahseen Rabbani, Tian LiPrivacy-Preserving RAGRAG Security

  2. PILLAR: Private Inverted-Index Lexical Lookup for Augmented Retrieval

    Sep 28, 2026Truong Son Nguyen, Daniel Blackley, Ni Trieu +1Retrieval-Augmented GenerationPrivacy-Preserving RAG

  3. Differentially Private Retrieval-Augmented Generation

    Feb 16, 2026Tingting Tang, James Flemings, Yongqin Wang +1Privacy-Preserving RAGRetrieval-Augmented Generation