TY - GEN
T1 - An Efficient CKKS-FHEW/TFHE Hybrid Encrypted Inference Framework
AU - Liu, Tzu Li
AU - Ku, Yu Te
AU - Ho, Ming Chien
AU - Liu, Feng Hao
AU - Chang, Ming Ching
AU - Hsu, Chih Fan
AU - Chen, Wei Chao
AU - Hung, Shih Hao
N1 - Publisher Copyright: © The Author(s), under exclusive license to Springer Nature Switzerland AG 2024.
PY - 2024
Y1 - 2024
N2 - Machine Learning as a Service (MLaaS) is a robust platform that offers various emerging applications. Despite great convenience, user privacy has become a paramount concern, as user data may be shared or stored in outsourced environments. To address this, fully homomorphic encryption (FHE) presents a viable solution, yet the practical realization of this theoretical approach has remained a significant challenge, requiring specific optimization techniques tailored to different applications. We aim to investigate the opportunity to apply the CKKS-FHEW/TFHE hybrid approach to NNs, which inherit the advantages of both approaches. This idea has been implemented in several conventional ML approaches (PEGASUS system presented in IEEE S &P 2021), such as decision tree evaluation and K-means clustering, and demonstrated notable efficiency in specific applications. However, its effectiveness for NNs remains unknown. In this paper, we show that directly applying the PEGASUS system on encrypted NN inference would result in a significant accuracy drop, approximately 10% compared to plaintext inference. After a careful analysis, we propose a novel LUT-aware fine-tuning method to slightly adjust the NN weights and the functional bootstrapping for the ReLU function to mitigate the error accumulation throughout the NN computation. We show that by appropriately fine-tuning the model, we can largely reduce the accuracy drop, from 7.5% to 15% compared to the baseline implementation without fine-tuning, while maintaining comparable efficiency with extensive experiments.
AB - Machine Learning as a Service (MLaaS) is a robust platform that offers various emerging applications. Despite great convenience, user privacy has become a paramount concern, as user data may be shared or stored in outsourced environments. To address this, fully homomorphic encryption (FHE) presents a viable solution, yet the practical realization of this theoretical approach has remained a significant challenge, requiring specific optimization techniques tailored to different applications. We aim to investigate the opportunity to apply the CKKS-FHEW/TFHE hybrid approach to NNs, which inherit the advantages of both approaches. This idea has been implemented in several conventional ML approaches (PEGASUS system presented in IEEE S &P 2021), such as decision tree evaluation and K-means clustering, and demonstrated notable efficiency in specific applications. However, its effectiveness for NNs remains unknown. In this paper, we show that directly applying the PEGASUS system on encrypted NN inference would result in a significant accuracy drop, approximately 10% compared to plaintext inference. After a careful analysis, we propose a novel LUT-aware fine-tuning method to slightly adjust the NN weights and the functional bootstrapping for the ReLU function to mitigate the error accumulation throughout the NN computation. We show that by appropriately fine-tuning the model, we can largely reduce the accuracy drop, from 7.5% to 15% compared to the baseline implementation without fine-tuning, while maintaining comparable efficiency with extensive experiments.
KW - Homomorphic encryption
KW - functional bootstrapping
KW - neural network
KW - privacy-preserving machine learning
UR - https://www.scopus.com/pages/publications/85188708581
U2 - 10.1007/978-3-031-54129-2_32
DO - 10.1007/978-3-031-54129-2_32
M3 - Conference contribution
SN - 9783031541285
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 535
EP - 551
BT - Computer Security. ESORICS 2023 International Workshops - CPS4CIP, ADIoT, SecAssure, WASP, TAURIN, PriST-AI, and SECAI, 2023, Revised Selected Papers
A2 - Katsikas, Sokratis
A2 - Abie, Habtamu
A2 - Ranise, Silvio
A2 - Verderame, Luca
A2 - Cambiaso, Enrico
A2 - Ugarelli, Rita
A2 - Praça, Isabel
A2 - Li, Wenjuan
A2 - Meng, Weizhi
A2 - Furnell, Steven
A2 - Katt, Basel
A2 - Pirbhulal, Sandeep
A2 - Shukla, Ankur
A2 - Ianni, Michele
A2 - Dalla Preda, Mila
A2 - Choo, Kim-Kwang Raymond
A2 - Pupo Correia, Miguel
A2 - Abhishta, Abhishta
A2 - Sileno, Giovanni
A2 - Alishahi, Mina
A2 - Kalutarage, Harsha
A2 - Yanai, Naoto
PB - Springer Science and Business Media Deutschland GmbH
T2 - International Workshops which were held in conjunction with 28th European Symposium on Research in Computer Security, ESORICS 2023
Y2 - 25 September 2023 through 29 September 2023
ER -