Skip to main content
QUICK REVIEW

[论文解读] Efficient Privacy-Preserving Retrieval Augmented Generation with Distance-Preserving Encryption

Huanyi Ye, Jiale Guo|arXiv (Cornell University)|Jan 18, 2026
Cryptography and Data SecurityComputer Science被引用 0
一句话总结

该论文提出 ppRAG,一种使用 CAPRISE 对嵌入进行加密以实现云端检索安全的隐私保护 RAG 框架,并结合 DistanceDP 保护查询隐私,具备高吞吐量与强隐私性。

ABSTRACT

RAG has emerged as a key technique for enhancing response quality of LLMs without high computational cost. In traditional architectures, RAG services are provided by a single entity that hosts the dataset within a trusted local environment. However, individuals or small organizations often lack the resources to maintain data storage servers, leading them to rely on outsourced cloud storage. This dependence on untrusted third-party services introduces privacy risks. Embedding-based retrieval mechanisms, commonly used in RAG systems, are vulnerable to privacy leakage such as vector-to-text reconstruction attacks and structural leakage via vector analysis. Several privacy-preserving RAG techniques have been proposed but most existing approaches rely on partially homomorphic encryption, which incurs substantial computational overhead. To address these challenges, we propose an efficient privacy-preserving RAG framework (ppRAG) tailored for untrusted cloud environments that defends against vector-to-text attack, vector analysis, and query analysis. We propose Conditional Approximate Distance-Comparison-Preserving Symmetric Encryption (CAPRISE) that encrypts embeddings while still allowing the cloud to compute similarity between an encrypted query and the encrypted database embeddings. CAPRISE preserves only the relative distance ordering between the encrypted query and each encrypted database embedding, without exposing inter-database distances, thereby enhancing both privacy and efficiency. To mitigate query analysis, we introduce DP by perturbing the query embedding prior to encryption, preventing the cloud from inferring sensitive patterns. Experimental results show that ppRAG achieves efficient processing throughput, high retrieval accuracy, strong privacy guarantees, making it a practical solution for resource-constrained users seeking secure cloud-augmented LLMs.

研究动机与目标

  • 在 RAG 系统中将嵌入存储与检索外包时的隐私风险解决。
  • 开发 CAPRISE,使仅保留查询到数据库的距离,同时混淆数据库到数据库的距离。
  • 在查询上结合差分隐私(DistanceDP),防止查询分析泄露。
  • 提供理论隐私保证并在 MS MARCO 上进行经验评估,提升实际效率。

提出的方法

  • 提出 CAPRISE,一种条件距离-比较保留加密,保留查询到数据库的距离但隐藏数据库到数据库的距离。
  • 使用两种加密模式:Enc_DB 用于存储嵌入,Enc_Q 用于查询嵌入。
  • 对查询嵌入在加密前应用 DistanceDP 以防止重复查询分析。
  • 基于阶段的 ppRAG 工作流程:上传(嵌入+ENC_DB)、检索(ENC_Q,服务器搜索,本地解密 DB)、以及提示大语言模型进行增强。
  • 给出理论证明,表明 CAPRISE 保留检索所需的距离顺序但不暴露数据库结构。
  • 在效率方面与基于 PHE 的 RemoteRAG 进行对比,评估对 Vec2Text 的隐私防护效果,并进行 CAPRISE 的吞吐量评估。

实验结果

研究问题

  • RQ1如何对嵌入进行加密,以在不暴露敏感内容的前提下实现高效的前k 相似性检索?
  • RQ2在保留检索精度的同时,检索过程是否能够防御 Vec2Text 与向量分析攻击?
  • RQ3在 RAG 中引入 DistanceDP 是否对查询隐私提供形式化的差分隐私保证?
  • RQ4与现有隐私保护 RAG 方法相比,CAPRISE 的实际效率提升有哪些?

主要发现

  • CAPRISE 仅保留查询到数据库的距离,混淆数据库间的距离以防御向量分析攻击。
  • 阶段1 的 CAPRISE 在嵌入计算上增加的开销很小(大约嵌入时间的 19%)。
  • CAPRISE 实现每秒 2339 向量的加密吞吐量,是 RemoteRAG 的 250–300 向量/秒的约 9 倍提升。
  • DistanceDP 为查询嵌入提供差分隐私保障,将检索空间扩展以防止重复查询推断。
  • 在 MS MARCO 上使用 gtr-t5-base 的实验结果显示实用性强,隐私保障稳健。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。