arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2206.00216cs.CRcs.CL
收藏

THE-X:基于同态加密的隐私保护Transformer推理

THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryption

Beihang University(北京航空航天大学);Microsoft Research(微软研究院);Microsoft STCA(微软亚洲互联网工程院)

Tianyu Chen, Hangbo Bao, Shaohan Huang, Li Dong, Binxing Jiao, Daxin Jiang, Haoyi Zhou, Jianxin Li, Furu Wei

摘要:

随着越来越多的预训练语言模型采用云上部署,隐私问题迅速增长,主要是针对纯文本用户数据的暴露(例如,搜索历史、医疗记录、银行账户)。Transformer模型的隐私保护推理是云服务用户的需求。在同态加密中,为了保护隐私,只使用密文进行计算是一种很有吸引力的选择。然而,由于Transformer块中的复杂计算,使得对密文数据进行预训练模型推断是困难的,这还不被当前HE工具支持。在这项工作中,我们介绍了$\textit{THE-X}$,Transformers的近似方法,它使隐私保护的流行框架开发的预训练模型的推理。$\textit{THE-X}$提出了一个工作流来处理Transformer网络中的复杂计算,包括所有非多项式函数,如GELU,softmax和LayerNorm。实验表明,我们提出的$\textit{THE-X}$可以使Transformer推理加密数据的不同下游任务,所有的性能下降可以忽略不计,但享受理论保证的隐私保护的优势。

英文摘要:

As more and more pre-trained language models adopt on-cloud deployment, the privacy issues grow quickly, mainly for the exposure of plain-text user data (e.g., search history, medical record, bank account). Privacy-preserving inference of transformer models is on the demand of cloud service users. To protect privacy, it is an attractive choice to compute only with ciphertext in homomorphic encryption (HE). However, enabling pre-trained models inference on ciphertext data is difficult due to the complex computations in transformer blocks, which are not supported by current HE tools yet. In this work, we introduce $\textit{THE-X}$, an approximation approach for transformers, which enables privacy-preserving inference of pre-trained models developed by popular frameworks. $\textit{THE-X}$ proposes a workflow to deal with complex computation in transformer networks, including all the non-polynomial functions like GELU, softmax, and LayerNorm. Experiments reveal our proposed $\textit{THE-X}$ can enable transformer inference on encrypted data for different downstream tasks, all with negligible performance drop but enjoying the theory-guaranteed privacy-preserving advantage.

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

↑