Iron: Private Inference on Transformers
Meng Hao, Hongwei Li, Hanxiao Chen, Pengzhi Xing, Guowen Xu, Tianwei Zhang
摘要
We initiate the study of private inference on Transformer-based models in the client-server setting, where clients have private inputs and servers hold proprietary models. Our main contribution is to provide several new secure protocols for matrix multiplication and complex non-linear functions like Softmax, GELU activations, and LayerNorm, which are critical components of Transformers. Specifically, we first propose a customized homomorphic encryption-based protocol for matrix multiplication that crucially relies on a novel compact packing technique. This design achieves √ m × less communication ( m is the number of rows of the output matrix) over the most efficient work. Second, we design efficient protocols for three non-linear functions via integrating advanced underlying protocols and specialized optimizations. Compared to the state-of-the-art protocols, our recipes reduce about half of the communication and computation overhead. Furthermore, all protocols are numerically precise, which preserve the model accuracy of plaintext. These techniques together allow us to implement Iron , an efficient Transformer-based private inference framework. Experiments conducted on several real-world datasets and models demonstrate that Iron achieves 3 ∼ 14 × less communication and 3 ∼ 11 × less runtime compared to the prior art.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 68 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- HETAL: Efficient Privacy-preserving Transfer Learning with Homomorphic Encryption 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- HETAL: Efficient Privacy-preserving Transfer Learning with Homomorphic Encryption 引用了 SecureML: A System for Scalable Privacy-Preserving Machine Learning
- MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention 引用了 SecureML: A System for Scalable Privacy-Preserving Machine Learning
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- BOLT: Privacy-Preserving, Accurate and Efficient Inference for Transformers 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- BOLT: Privacy-Preserving, Accurate and Efficient Inference for Transformers 引用了 SecureML: A System for Scalable Privacy-Preserving Machine Learning
- AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHE 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHE 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- GAZELLE: A Low Latency Framework for Secure Neural Network Inference 引用了 SecureML: A System for Scalable Privacy-Preserving Machine Learning
- SecureML: A System for Scalable Privacy-Preserving Machine Learning 引用了 Deep Learning with Differential Privacy
引用它的顶会 Paper68
- BOLT: Privacy-Preserving, Accurate and Efficient Inference for TransformersQi Pang, Jinhao Zhu, Helen Möllering, Wenting Zheng 等S&P 2024 · 149 次引用
- HETAL: Efficient Privacy-preserving Transfer Learning with Homomorphic EncryptionSeewoo Lee, Garam Lee, Jung Woo Kim, Junbum Shin 等ICML 2023 · 52 次引用
- AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHEWei Ao, Vishnu Naresh BoddetiUSENIX Security 2024 · 43 次引用
- Split-and-Denoise: Protect large language model inference with local differential privacyPeihua Mai, Ran Yan, Zhe Huang, Youjia Yang 等ICML 2024 · 41 次引用
- MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous AttentionWenxuan Zeng, Meng Li, Wenjie Xiong, Tong Tong 等ICCV 2023 · 38 次引用
它引用的 Paper22
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Deep Learning with Differential PrivacyMartín Abadi, Andy Chu, Ian J. Goodfellow, H. Brendan McMahan 等CCS 2016 · 7,620 次引用
- SecureML: A System for Scalable Privacy-Preserving Machine LearningPayman Mohassel, Yupeng ZhangS&P 2017 · 2,107 次引用
- GAZELLE: A Low Latency Framework for Secure Neural Network InferenceChiraag Juvekar, Vinod Vaikuntanathan, Anantha P. ChandrakasanUSENIX Security 2018 · 1,075 次引用
相关 Paper
- THOR: Secure Transformer Inference with Homomorphic EncryptionJungho Moon, Dongwoo Yoo, Xiaoqian Jiang, Miran KimCCS 2025 · 1 次引用
- Breaking the Layer Barrier: Remodeling Private Transformer Inference with Hybrid CKKS and MPCTianshi Xu, Wen-jie Lu, Jiangrui Yu, Yi Chen 等USENIX Security 2025
- BumbleBee: Secure Two-party Inference Framework for Large TransformersWen-jie Lu, Zhicong Huang, Zhen Gu, Jingyu Li 等NDSS 2025
- SHAFT: Secure, Handy, Accurate and Fast Transformer InferenceAndes Y. L. Kei, Sherman S. M. ChowNDSS 2025
- THE-X: Privacy-Preserving Transformer Inference with Homomorphic EncryptionTianyu Chen, Hangbo Bao, Shaohan Huang, Li Dong 等ACL Findings 2022 · 86 次引用
