arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.18744cs.CR
收藏

PermLLM:广域网下3秒内完成大型语言模型的私有推理

PermLLM: Private Inference of Large Language Models within 3 Seconds under WAN

Fei Zheng, Chaochao Chen, Zhongxuan Han, Xiaolin Zheng

AI总结:

PermLLM通过安全随机排列加速非线性函数,结合优化的秘密共享和同态加密,在广域网下实现ChatGLM-6B模型约3秒/token的私有推理,大幅提升效率。

摘要:

ChatGPT的出现标志着大型语言模型(LLM)时代的到来。尽管LLM在各个领域展示了其强大能力,但它们也引发了严重的隐私问题,因为用户的查询会被发送给模型提供商。另一方面,将LLM部署在用户设备上也会泄露所有模型数据。现有的基于安全多方计算(MPC)的方法能够同时保护模型参数和用户查询的隐私。然而,它们需要传输数GB的数据,并且生成一个token需要几分钟,这使得它们对大多数实际应用来说不切实际。为了提高私有LLM推理的效率,我们提出了PermLLM,它利用安全随机排列来加速非线性函数的评估。结合优化的秘密共享协议和同态加密,PermLLM在现实网络设置(10ms RTT和1Gbps带宽)下,实现了对ChatGLM-6B模型的两方私有推理,速度约为3秒/token,比现有的MPC解决方案快数个数量级。

英文摘要:

The emergence of ChatGPT marks the arrival of the large language model (LLM) era. While LLMs demonstrate their power in a variety of fields, they also raise serious privacy concerns as the users' queries are sent to the model provider. On the other side, deploying the LLM on the user's device will also leak all the model data. Existing methods based on secure multiparty computation (MPC) managed to protect both the privacy of the model parameters and user queries. However, they require gigabytes of data transfer and several minutes to generate just one token, making them impractical for most real-world applications. To improve the efficiency of private LLM inference, we propose PermLLM, which accelerates the evaluation of non-linear functions using secure random permutation. Along with the optimized secret sharing protocols and homomorphic encryption, PermLLM achieves two-party private inference of the ChatGLM-6B model at the speed of around 3s/token, under a realistic network setting (10ms RTT and 1Gbps bandwidth), which is magnitudes faster than existing MPC solutions.

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

↑