arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.12331cs.CRcs.AI
收藏

高效隐私保护检索增强生成与距离保持加密

Efficient Privacy-Preserving Retrieval Augmented Generation with Distance-Preserving Encryption

College of Computing and Data Science(计算与数据科学学院);Nanyang Technological University(南洋理工大学)

Huanyi Ye, Jiale Guo, Ziyao Liu, Kwok-Yan Lam

AI总结:

ppRAG通过CAPRISE加密技术,在不可信云环境中实现高效隐私保护的检索增强生成,提升隐私和效率,适用于资源受限用户。

摘要:

检索增强生成(RAG)已成为提升大语言模型(LLM)响应质量的关键技术,且无需高计算成本。在传统架构中,RAG服务由单一实体提供,该实体在受信任的本地环境中托管数据集。然而,个人或小型组织往往缺乏维护数据存储服务器的资源,因此依赖外包云存储。这种对不可信第三方服务的依赖引入了隐私风险。基于嵌入的检索机制,常用于RAG系统中,容易受到隐私泄露攻击,如向量到文本重建攻击和通过向量分析的结构泄露。已提出几种隐私保护RAG技术,但大多数现有方法依赖于部分同态加密,这会带来显著的计算开销。为解决这些挑战,我们提出了一种高效的隐私保护RAG框架(ppRAG),专门针对不可信的云环境,以防御向量到文本攻击、向量分析和查询分析。我们提出了条件近似距离比较保持对称加密(CAPRISE),在加密嵌入的同时,允许云平台计算加密查询与加密数据库嵌入之间的相似性。CAPRISE仅保留加密查询与每个加密数据库嵌入之间的相对距离顺序,而不暴露数据库间的距离,从而提高隐私和效率。为缓解查询分析,我们引入差分隐私(DP)在加密前对查询嵌入进行扰动,防止云平台推断敏感模式。实验结果表明,ppRAG实现了高效的处理吞吐量、高检索准确率和强隐私保障,使其成为一种适用于资源受限用户的安全云增强LLM的实用解决方案。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑