THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryption
Tianyu Chen, Hangbo Bao, Shaohan Huang, Li Dong, Binxing Jiao, Daxin, Jiang, Haoyi Zhou, Jianxin Li, Furu Wei

TL;DR
THE-X introduces an approximation method that enables privacy-preserving inference of transformer models on encrypted data using homomorphic encryption, addressing complex computations like GELU, softmax, and LayerNorm.
Contribution
It presents a novel workflow and approximation approach that allows pre-trained transformer models to perform inference on ciphertext data with minimal performance loss.
Findings
Enables transformer inference on encrypted data for various tasks.
Maintains negligible performance drop compared to plaintext inference.
Provides theoretical privacy guarantees through homomorphic encryption.
Abstract
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 , an approximation approach for transformers, which enables privacy-preserving inference of pre-trained models developed by popular frameworks. proposes a workflow to deal with complex computation in transformer networks, including all the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsPrivacy-Preserving Technologies in Data · Cryptography and Data Security · Artificial Intelligence in Healthcare and Education
Methodstravel james
