Secure Outsourced Matrix Computation and Application to Neural Networks
摘要
Homomorphic Encryption (HE) is a powerful cryptographic primitive to address privacy and security issues in outsourcing computation on sensitive data to an untrusted computation environment. Comparing to secure Multi-Party Computation (MPC), HE has advantages in supporting non-interactive operations and saving on communication costs. However, it has not come up with an optimal solution for modern learning frameworks, partially due to a lack of efficient matrix computation mechanisms.
In this work, we present a practical solution to encrypt a matrix homomorphically and perform arithmetic operations on encrypted matrices. Our solution includes a novel matrix encoding method and an efficient evaluation strategy for basic matrix operations such as addition, multiplication, and transposition. We also explain how to encrypt more than one matrix in a single ciphertext, yielding better amortized performance.
Our solution is generic in the sense that it can be applied to most of the existing HE schemes. It also achieves reasonable performance for practical use; for example, our implementation takes 9.21 seconds to multiply two encrypted square matrices of order 64 and 2.56 seconds to transpose a square matrix of order 64.
Our secure matrix computation mechanism has a wide applicability to our new framework E2DM, which stands for encrypted data and encrypted model. To the best of our knowledge, this is the first work that supports secure evaluation of the prediction phase based on both encrypted data and encrypted model, whereas previous work only supported applying a plain model to encrypted data. As a benchmark, we report an experimental result to classify handwritten images using convolutional neural networks (CNN). Our implementation on the MNIST dataset takes 28.59 seconds to compute ten likelihoods of 64 input images simultaneously, yielding an amortized rate of 0.45 seconds per image.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 41 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Oblivious Neural Network Predictions via MiniONN Transformations 引用了 SecureML: A System for Scalable Privacy-Preserving Machine Learning
- Iron: Private Inference on Transformers 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- Iron: Private Inference on Transformers 引用了 SecureML: A System for Scalable Privacy-Preserving Machine Learning
- XONN: XNOR-based Oblivious Deep Neural Network Inference 引用了 Oblivious Neural Network Predictions via MiniONN Transformations
- XONN: XNOR-based Oblivious Deep Neural Network Inference 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- XONN: XNOR-based Oblivious Deep Neural Network Inference 引用了 SecureML: A System for Scalable Privacy-Preserving Machine Learning
- EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation 引用了 Oblivious Neural Network Predictions via MiniONN Transformations
- EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation 引用了 SecureML: A System for Scalable Privacy-Preserving Machine Learning
- BOLT: Privacy-Preserving, Accurate and Efficient Inference for Transformers 引用了 Iron: Private Inference on Transformers
- 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
- GAZELLE: A Low Latency Framework for Secure Neural Network Inference 引用了 Oblivious Neural Network Predictions via MiniONN Transformations
- GAZELLE: A Low Latency Framework for Secure Neural Network Inference 引用了 SecureML: A System for Scalable Privacy-Preserving Machine Learning
引用它的顶会 Paper41
- XONN: XNOR-based Oblivious Deep Neural Network InferenceM. Sadegh Riazi, Mohammad Samragh, Hao Chen, Kim Laine 等USENIX Security 2019 · 314 次引用
- HEAX: An Architecture for Computing on Encrypted DataM. Sadegh Riazi, Kim Laine, Blake Pelton, Wei DaiASPLOS 2020 · 244 次引用
- Iron: Private Inference on TransformersMeng Hao, Hongwei Li, Hanxiao Chen, Pengzhi Xing 等NeurIPS 2022 · 209 次引用
- BOLT: Privacy-Preserving, Accurate and Efficient Inference for TransformersQi Pang, Jinhao Zhu, Helen Möllering, Wenting Zheng 等S&P 2024 · 149 次引用
- EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computationRoshan Dathathri, Blagovesta Kostova, Olli Saarikivi, Wei Dai 等PLDI 2020 · 117 次引用
它引用的 Paper3
- 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 次引用
- Oblivious Neural Network Predictions via MiniONN TransformationsJian Liu, Mika Juuti, Yao Lu, N. AsokanCCS 2017 · 800 次引用
相关 Paper
- Fully Homomorphic Encryption for Matrix ArithmeticCraig Gentry, Yongwoo LeeCRYPTO 2026 · 4 次引用
- HETAL: Efficient Privacy-preserving Transfer Learning with Homomorphic EncryptionSeewoo Lee, Garam Lee, Jung Woo Kim, Junbum Shin 等ICML 2023 · 52 次引用
- HELiKs: HE Linear Algebra Kernels for Secure InferenceShashank Balla, Farinaz KoushanfarCCS 2023 · 16 次引用
- Efficient Multi-Key Homomorphic Encryption with Packed Ciphertexts with Application to Oblivious Neural Network InferenceHao Chen, Wei Dai, Miran Kim, Yongsoo SongCCS 2019 · 235 次引用
- Asymptotically Faster Multi-Key Homomorphic Encryption from Homomorphic Gadget DecompositionTaechan Kim, Hyesun Kwak, Dongwon Lee, Jinyeong Seo 等CCS 2023 · 30 次引用
