TY - CHAP
T1 - Privacy-Preserving Sentiment Analysis Using Homomorphic Encryption and Attention Mechanisms
AU - Moghaddam, Amirhossein Ebrahimi
AU - Ganesh, Buvana
AU - Palmieri, Paolo
N1 - Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2024.
PY - 2024
Y1 - 2024
N2 - Homomorphic encryption (HE) is a promising approach to preserving the privacy of data used in machine learning by allowing computations to be performed on ciphertext and exploring ways to achieve faster encrypted neural networks with HE. This paper presents a privacy-preserving sentiment analysis method employing Cheon-Kim-Kim-Song (CKKS) homomorphic encryption [4] on a pre-trained deep learning model. The model is bifurcated into a client-side attention mechanism and a server-side prediction head. The attention mechanism at the client end encrypts pivotal data before transmission, thereby preserving privacy while reducing the computational burden on the server. The server handles this encrypted data with a simplified RNN layer and linear activation function, ensuring computational efficiency without compromising on data privacy. Finally, the client decrypts the server’s encrypted output and applies a sigmoid function to obtain the sentiment score. We demonstrated the efficacy of this approach using the IMDb database [17], achieving an accuracy of 70.73%. This approach maintains a balance between privacy preservation and computational efficiency, showcasing a viable solution for secure and efficient machine learning applications.
AB - Homomorphic encryption (HE) is a promising approach to preserving the privacy of data used in machine learning by allowing computations to be performed on ciphertext and exploring ways to achieve faster encrypted neural networks with HE. This paper presents a privacy-preserving sentiment analysis method employing Cheon-Kim-Kim-Song (CKKS) homomorphic encryption [4] on a pre-trained deep learning model. The model is bifurcated into a client-side attention mechanism and a server-side prediction head. The attention mechanism at the client end encrypts pivotal data before transmission, thereby preserving privacy while reducing the computational burden on the server. The server handles this encrypted data with a simplified RNN layer and linear activation function, ensuring computational efficiency without compromising on data privacy. Finally, the client decrypts the server’s encrypted output and applies a sigmoid function to obtain the sentiment score. We demonstrated the efficacy of this approach using the IMDb database [17], achieving an accuracy of 70.73%. This approach maintains a balance between privacy preservation and computational efficiency, showcasing a viable solution for secure and efficient machine learning applications.
KW - Accelerations
KW - Attention Mechanisms
KW - Homomorphic Encryption
KW - Privacy Preserving Neural Networks
KW - Recurrent Neural Networks
UR - https://www.scopus.com/pages/publications/85199587226
U2 - 10.1007/978-3-031-61489-7_6
DO - 10.1007/978-3-031-61489-7_6
M3 - Chapter
AN - SCOPUS:85199587226
SN - 9783031614880
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 84
EP - 100
BT - Applied Cryptography and Network Security Workshops - ACNS 2024 Satellite Workshops, AIBlock, AIHWS, AIoTS, SCI, AAC, SiMLA, LLE, and CIMSS, 2024, Proceedings
A2 - Andreoni, Martin
PB - Springer Science and Business Media Deutschland GmbH
T2 - Satellite Workshops held in parallel with the 22nd International Conference on Applied Cryptography and Network Security, ACNS 2024
Y2 - 5 March 2024 through 8 March 2024
ER -