P²RAG:支持任意Top-k检索的高效隐私保护RAG服务 P$^2$RAG: Efficient Privacy-Preserving RAG Service Supporting Arbitrary Top-$k$ Retrieval 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-03-16
👁️ 预览文献
💡 AI 中文简介
该研究针对隐私保护检索增强生成(RAG)服务中难以支持任意k值且效率低下的问题,提出了P²RAG系统。它不采用排序,而是通过交互式二分法确定Top-k文档集合,并利用两个半诚实非合谋服务器上的秘密共享保护数据所有者的数据库和用户提示。实验表明,在k=16至1024时,P²RAG比现有最先进的PRAG快3至300倍。
领域隐私保护机器学习/安全检索
适合谁读需要一定密码学与机器学习背景的读者
核心贡献1. 提出交互式二分法替代排序,支持任意k的Top-k检索;2. 设计安全机制防御恶意用户并严格限制数据库信息泄露。
关键数据在k=16至1024时,P²RAG比最先进的PRAG快3至300倍。
推荐理由如果你关注隐私保护RAG的效率瓶颈,这篇工作用巧妙的二分法把速度提升了数百倍,值得一读。
关键词["隐私保护", "检索增强生成", "Top-k检索", "秘密共享", "安全多方计算", "高效检索"]

原文摘要

查看英文原文摘要

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 P$^2$RAG, an efficient privacy-preserving RAG service that supports arbitrary top-$k$ retrieval. Unlike existing systems, P$^2$RAG avoids sorting candidate documents. Instead, it uses an interactive bisection method to determine the set of top-$k$ documents. For security, P$^2$RAG 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 P$^2$RAG is 3--300$\times$ faster than the state-of-the-art PRAG for $k = 16$--$1024$.