[论文解读] FRAG: Toward Federated Vector Database Management for Collaborative and Secure Retrieval-Augmented Generation
FRAG 引入了一种联邦向量数据库管理系统,支持在互不信任的各方之间实现隐私保护的协作式检索增强生成(RAG)。它采用单密钥同态加密和乘法缓存技术,在加密数据上执行安全且高效的近似 k-最近邻搜索,与 CKKS 相比,最高可实现 2.61× 的加速,同时具备强大的 IND-CPA 安全保证。
This paper introduces extit{Federated Retrieval-Augmented Generation (FRAG)}, a novel database management paradigm tailored for the growing needs of retrieval-augmented generation (RAG) systems, which are increasingly powered by large-language models (LLMs). FRAG enables mutually-distrusted parties to collaboratively perform Approximate $k$-Nearest Neighbor (ANN) searches on encrypted query vectors and encrypted data stored in distributed vector databases, all while ensuring that no party can gain any knowledge about the queries or data of others. Achieving this paradigm presents two key challenges: (i) ensuring strong security guarantees, such as Indistinguishability under Chosen-Plaintext Attack (IND-CPA), under practical assumptions (e.g., we avoid overly optimistic assumptions like non-collusion among parties); and (ii) maintaining performance overheads comparable to traditional, non-federated RAG systems. To address these challenges, FRAG employs a single-key homomorphic encryption protocol that simplifies key management across mutually-distrusted parties. Additionally, FRAG introduces a extit{multiplicative caching} technique to efficiently encrypt floating-point numbers, significantly improving computational performance in large-scale federated environments. We provide a rigorous security proof using standard cryptographic reductions and demonstrate the practical scalability and efficiency of FRAG through extensive experiments on both benchmark and real-world datasets.
研究动机与目标
- 在不向互不信任的各方暴露原始数据或查询的情况下,实现安全的、协作式的检索增强生成(RAG)。
- 在实际假设下解决保持强安全性的挑战(例如 IND-CPA),避免依赖非共谋假设。
- 最小化联邦 RAG 系统中的性能开销,确保可扩展性与非加密集中式系统相当。
- 设计一种密钥管理方案,简化在去中心化、信任最小化环境中的部署。
- 通过高效的缓存机制,优化大规模向量数据库中对加密浮点向量的计算。
提出的方法
- 提出单密钥同态加密(SK-MHE),在简化跨不信任方密钥管理的同时,支持对加密向量的安全计算。
- 引入乘法缓存(MC),一种预计算并缓存加密标量值的技术,以减少对浮点数的冗余同态操作。
- 采用基于枢纽点的缓存策略,最小化在近似 k-最近邻(ANN)搜索过程中对常见标量积的重复计算。
- 使用密码学归约形式化证明安全,确保整个协议栈满足 IND-CPA 安全性。
- 设计弱扩展性评估框架,以测量每条消息的加密开销,并验证线性性能扩展性。
- 使用真实世界数据集(Covid-19、Bitcoin、Human Gene #38)进行基准测试,验证在多种数据类型下的实用性和性能表现。
实验结果
研究问题
- RQ1联邦 RAG 系统是否能够在不向不信任方暴露数据或查询的情况下,实现对加密向量数据库的协作式安全近似 k-最近邻搜索?
- RQ2在联邦设置中,如何在不依赖非共谋等乐观假设的前提下,实现强大的安全保证(如 IND-CPA)?
- RQ3在大规模 RAG 工作负载中,对加密浮点向量执行安全计算的性能开销有多大?
- RQ4缓存技术是否能显著降低对加密嵌入向量执行同态操作的计算成本?
- RQ5该系统在具有不同数据访问模式和规模的多样化真实世界数据集上如何扩展?
主要发现
- 在 Covid-19 数据集上,FRAG 通过乘法缓存技术,相较于 CKKS 同态加密方案最高实现 2.61× 的加速。
- 乘法缓存(MC)协议保持了每条消息加密时间恒定,表明随着消息数量增加,其弱扩展性能接近线性。
- 在 Bitcoin 数据集上,MC 实现了 2.60× 的加速,证明其在高吞吐量、动态数据环境中的有效性。
- 即使在计算最密集的场景——Human Gene #38 中,MC 仍实现了 1.46× 的加速,证明其在高维基因组数据中的鲁棒性。
- 系统通过形式化的密码学归约维持了强大的 IND-CPA 安全性,确保查询或数据内容无泄露。
- FRAG 在真实世界数据集上展示了实际可行性,证实安全联邦 RAG 在可接受的性能开销下是可行的。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。