Privacy-Preserving Sentiment Analysis Using Homomorphic Encryption and Attention Mechanisms

Research output: Chapter in Book/Report/Conference proceedingsChapterpeer-review

Abstract

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.

Original languageEnglish
Title of host publicationApplied Cryptography and Network Security Workshops - ACNS 2024 Satellite Workshops, AIBlock, AIHWS, AIoTS, SCI, AAC, SiMLA, LLE, and CIMSS, 2024, Proceedings
EditorsMartin Andreoni
PublisherSpringer Science and Business Media Deutschland GmbH
Pages84-100
Number of pages17
ISBN (Print)9783031614880
DOIs
Publication statusPublished - 2024
EventSatellite Workshops held in parallel with the 22nd International Conference on Applied Cryptography and Network Security, ACNS 2024 - Abu Dhabi, United Arab Emirates
Duration: 5 Mar 20248 Mar 2024

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14587 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceSatellite Workshops held in parallel with the 22nd International Conference on Applied Cryptography and Network Security, ACNS 2024
Country/TerritoryUnited Arab Emirates
CityAbu Dhabi
Period5/03/248/03/24

Keywords

  • Accelerations
  • Attention Mechanisms
  • Homomorphic Encryption
  • Privacy Preserving Neural Networks
  • Recurrent Neural Networks

Fingerprint

Dive into the research topics of 'Privacy-Preserving Sentiment Analysis Using Homomorphic Encryption and Attention Mechanisms'. Together they form a unique fingerprint.

Cite this