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

LLM能够理解加密提示:面向隐私计算友好的Transformer

LLMs Can Understand Encrypted Prompt: Towards Privacy-Computing Friendly Transformers

Tsinghua University(清华大学);Sudo Privacy(Sudo隐私公司)

Xuanqi Liu, Zhuotao Liu

AI总结:

针对大语言模型隐私推理框架开销过高的问题,本文提出用隐私计算友好的近似算子替换Transformer中密集型算子,相比Iron实现5倍计算加速与80%通信开销降低,且准确率几乎不变。

摘要:

学界已探索在服务器-客户端架构下为基于Transformer的大语言模型(LLM)构建隐私推理框架,其中服务器持有模型参数,客户端输入私有数据(或提示)以执行推理。但当私有输入经原始LLM前向传播时,这类框架会产生极高开销。本文表明,用隐私计算友好的近似算子替换Transformer架构中计算与通信密集型算子,可大幅降低隐私推理成本,同时对模型性能影响极小。与当前最优的Iron(NeurIPS 2022)相比,我们的隐私计算友好模型推理流水线实现了5倍计算加速,通信开销降低80%,同时保留了几乎一致的准确率。

英文摘要:

The community explored to build private inference frameworks for transformer-based large language models (LLMs) in a server-client setting, where the server holds the model parameters and the client inputs its private data (or prompt) for inference. However, these frameworks impose significant overhead when the private inputs are forward propagated through the original LLMs. In this paper, we show that substituting the computation- and communication-heavy operators in the transformer architecture with privacy-computing friendly approximations can greatly reduce the private inference costs while incurring very minor impact on model performance. Compared to state-of-the-art Iron (NeurIPS 2022), our privacy-computing friendly model inference pipeline achieves a $5\times$ acceleration in computation and an 80% reduction in communication overhead, while retaining nearly identical accuracy.

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

↑