Primer: Fast Private Transformer Inference on Encrypted Data
摘要
It is increasingly important to enable privacy-preserving inference for cloud services based on Transformers. Post-quantum cryptographic techniques, e.g., fully homomorphic encryption (FHE), and multi-party computation (MPC), are popular methods to support private Transformer inference. However, existing works still suffer from prohibitively computational and communicational overhead. In this work, we present, Primer, to enable a fast and accurate Transformer over encrypted data for natural language processing tasks. In particular, Primer is constructed by a hybrid cryptographic protocol optimized for attention-based Transformer models, as well as techniques including computation merge and tokens-first ciphertext packing. Comprehensive experiments on encrypted language modeling show that Primer achieves state-of-the-art accuracy and reduces the inference latency by 90.6% ∼ 97.5% over previous methods.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- zkVC: Fast Zero-Knowledge Proof for Private and Verifiable Computing 引用了 SAFENet: A Secure, Accurate and Fast Neural Network Inference
- Converting Transformers to Polynomial Form for Secure Inference Over Homomorphic Encryption 引用了 THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryption
- EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- DictPFL: Efficient and Private Federated Learning on Encrypted Gradients 引用了 SAFENet: A Secure, Accurate and Fast Neural Network Inference
- CENTAUR: Bridging the Impossible Trinity of Privacy, Efficiency, and Performance in Privacy-Preserving Transformer Inference 引用了 THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryption
- AutoPrivacy: Automated Layer-wise Parameter Selection for Secure Neural Network Inference 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
引用它的顶会 Paper10
- PrivacyRestore: Privacy-Preserving Inference in Large Language Models via Privacy Removal and RestorationZiqian Zeng, Jianwei Wang, Junyao Yang, Zhengdong Lu 等ACL 2025 · 31 次引用
- Converting Transformers to Polynomial Form for Secure Inference Over Homomorphic EncryptionItamar Zimerman, Moran Baruch, Nir Drucker, Gilad Ezov 等ICML 2024 · 26 次引用
- CENTAUR: Bridging the Impossible Trinity of Privacy, Efficiency, and Performance in Privacy-Preserving Transformer InferenceJinglong Luo, Guanzhong Chen, Yehong Zhang, Shiyu Liu 等ACL 2025 · 9 次引用
- DictPFL: Efficient and Private Federated Learning on Encrypted GradientsJiaqi Xue, Mayank Kumar, Yuzhang Shang, Shangqian Gao 等NeurIPS 2025 · 4 次引用
- zkVC: Fast Zero-Knowledge Proof for Private and Verifiable ComputingYancheng Zhang, Mengxin Zheng, Xun Chen, Jingtong Hu 等DAC 2025 · 3 次引用
它引用的 Paper6
- GAZELLE: A Low Latency Framework for Secure Neural Network InferenceChiraag Juvekar, Vinod Vaikuntanathan, Anantha P. ChandrakasanUSENIX Security 2018 · 1,075 次引用
- EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computationRoshan Dathathri, Blagovesta Kostova, Olli Saarikivi, Wei Dai 等PLDI 2020 · 117 次引用
- THE-X: Privacy-Preserving Transformer Inference with Homomorphic EncryptionTianyu Chen, Hangbo Bao, Shaohan Huang, Li Dong 等ACL Findings 2022 · 86 次引用
- SAFENet: A Secure, Accurate and Fast Neural Network InferenceQian Lou, Yilin Shen, Hongxia Jin, Lei JiangICLR 2021 · 65 次引用
- AutoPrivacy: Automated Layer-wise Parameter Selection for Secure Neural Network InferenceQian Lou, Song Bian, Lei JiangNeurIPS 2020 · 41 次引用
相关 Paper
- MERGE: Fast Private Text GenerationZi Liang, Pinghui Wang, Ruofei Zhang, Nuo Xu 等AAAI 2024 · 15 次引用
- Breaking the Layer Barrier: Remodeling Private Transformer Inference with Hybrid CKKS and MPCTianshi Xu, Wen-jie Lu, Jiangrui Yu, Yi Chen 等USENIX Security 2025
- CipherPrune: Efficient and Scalable Private Transformer InferenceYancheng Zhang, Jiaqi Xue, Mengxin Zheng, Mimi Xie 等ICLR 2025
- Tricycle: Private Transformer Inference with Tricyclic EncodingsLawrence Lim, Vikas Kalagi, Julia Novick, Jiaming Liu 等CCS 2026 · 10 次引用
- Encryption-Friendly LLM ArchitectureDonghwan Rho, Taeseong Kim, Minje Park, Jung Woo Kim 等ICLR 2025
