Paper 2023/632
Batch Inference on Deep Convolutional Neural Networks With Fully Homomorphic Encryption Using Channel-By-Channel Convolutions
Abstract
Secure Machine Learning as a Service (MLaaS) is a viable solution where clients seek secure ML computation delegation while protecting sensitive data. We propose an efficient method to securely evaluate deep standard convolutional neural networks based on residue number system variant of Cheon-Kim-Kim-Song (RNS-CKKS) scheme in the manner of batch inference. In particular, we introduce a packing method called Channel-By-Channel Packing that maximizes the slot compactness and Single-Instruction-Multiple-Data (SIMD) capabilities in ciphertexts. We also propose a new method for homomorphic convolution evaluation called Channel-By-Channel Convolution, which minimizes the additional heavy operations during convolution layers. Simulation results show that our work has improvements in amortized runtime for inference, with a factor of $5.04$ and $5.20$ for ResNet-20 and ResNet-110, respectively, compared to the previous results. We note that our results almost simulate the original backbone models, with classification accuracy differing from the backbone within $0.02$%p. Furthermore, we show that the client's rotation key size generated and transmitted can be reduced from $105.6$GB to $6.91$GB for ResNet models during an MLaaS scenario. Finally, we show that our method can be combined with previous methods, providing flexibility for selecting batch sizes for inference.
Metadata
- Available format(s)
-
PDF
- Category
- Applications
- Publication info
- Published elsewhere. Major revision. IEEE Transactions on Dependable and Secure Computing
- DOI
- 10.1109/TDSC.2024.3448406
- Keywords
- Privacy-Preserving Machine LearningFully Homomorphic EncryptionConvoluional Neual NetworkResNet
- Contact author(s)
-
jhcheon @ snu ac kr
kaiser351 @ snu ac kr
kts1023 @ snu ac kr
jhaeg0312 @ snu ac kr
yongdong @ snu ac kr - History
- 2025-03-05: last of 3 revisions
- 2023-05-03: received
- See all versions
- Short URL
- https://ia.cr/2023/632
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2023/632, author = {Jung Hee Cheon and Minsik Kang and Taeseong Kim and Junyoung Jung and Yongdong Yeo}, title = {Batch Inference on Deep Convolutional Neural Networks With Fully Homomorphic Encryption Using Channel-By-Channel Convolutions}, howpublished = {Cryptology {ePrint} Archive, Paper 2023/632}, year = {2023}, doi = {10.1109/TDSC.2024.3448406}, url = {https://eprint.iacr.org/2023/632} }