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

隐私保护的大语言模型路由

Privacy-Preserving LLMs Routing

Department of Electrical and Computer Engineering, University of Pittsburgh(匹兹堡大学电气与计算机工程系);Department of Computer Science, University of Central Florida(中央佛罗里达大学计算机科学系);Department of Computer and Information Science, University of Pennsylvania(宾夕法尼亚大学计算机与信息科学系);Department of Computer Science, University of Maryland(马里兰大学计算机科学系);Department of Computer Science, Florida State University(佛罗里达州立大学计算机科学系)

Xidong Wu, Yukuan Zhang, Yuqiong Ji, Reza Shirkavand, Qian Lou, Shangqian Gao

AI总结:

本文提出PPRoute框架,通过MPC友好的操作加速编码器推理,维护路由质量,并采用无序Top-k算法降低通信延迟,实现高效隐私保护的大语言模型路由。

摘要:

大语言模型(LLM)路由已成为平衡模型性能和成本效率的关键策略,通过动态选择不同模型提供者的服务。然而,LLM路由在用户和LLM之间增加了一个中间层,带来了新的隐私风险。尽管加密技术如安全多方计算(MPC)能够实现隐私保护计算,但其协议设计和实现仍待深入研究,而简单的实现通常导致计算开销过大。为此,我们提出隐私保护LLM路由框架(PPRoute)。PPRoute包含多种策略,以在MPC下加速编码器推理和最近邻搜索,并维持LLM路由的质量。首先,PPRoute使用MPC友好的操作来提升编码器推理。其次,PPRoute使用多步模型训练算法,在加密域的限制下维持路由质量。第三,PPRoute提出一个具有O(1)通信复杂度的无序Top-k算法,用于模型搜索中的安全排序,显著减少通信延迟。在不同数据集上,PPRoute实现了与明文对应物相当的性能,同时在简单MPC实现上实现了约20倍的加速。

英文摘要:

Large language model (LLM) routing has emerged as a critical strategy to balance model performance and cost-efficiency by dynamically selecting services from various model providers. However, LLM routing adds an intermediate layer between users and LLMs, creating new privacy risks to user data. These privacy risks have not been systematically studied. Although cryptographic techniques such as Secure Multi-Party Computation (MPC) enable privacy-preserving computation, their protocol design and implementation remain under-explored, and naïve implementations typically incur prohibitive computational overhead. To address this, we propose a privacy-preserving LLM routing framework (PPRoute). PPRoute includes multiple strategies to speed up encoder inference and nearest neighbor search under the MPC and maintain the quality of LLM routing. First, PPRoute uses MPC-friendly operations to boost the encoder inference. Second, PPRoute uses a multiple-step model training algorithm to maintain routing quality despite the constraints of the encrypted domain. Third, PPRoute proposes an unsorted Top-k algorithm with $O(1)$ communication complexity for secure sorting in model search, significantly reducing communication latency. Across different datasets, PPRoute achieves the performance of plaintext counterparts, while achieving approximately a 20$\times$ speedup over naïve MPC implementations.

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

↑