Litcius/Paper detail

PrivFT: Private and Fast Text Classification With Homomorphic Encryption

Ahmad Al Badawi, Louie Hoang, Chan Fook Mun, Kim Laine, Khin Mi Mi Aung

2020IEEE Access93 citationsDOIOpen Access PDF

Abstract

We present an efficient and non-interactive method for Text Classification while preserving the privacy of the content using Fully Homomorphic Encryption (FHE). Our solution (named Private Fast Text (PrivFT)) provides two services: 1) making inference of encrypted user inputs using a plaintext model and 2) training an effective model using an encrypted dataset. For inference, we use a pre-trained plaintext model and outline a system for homomorphic inference on encrypted user inputs with zero loss to prediction accuracy compared to the non-encrypted version. In the second part, we show how to train a supervised model using fully encrypted data to generate an encrypted model. For improved performance, we provide a GPU implementation of the Cheon-Kim-Kim-Song (CKKS) FHE scheme that shows 1 to 2 orders of magnitude speedup against existing implementations. We build PrivFT on top of our FHE engine in GPUs to achieve a run time per inference of 0.17 seconds for various Natural Language Processing (NLP) public datasets. Training on a relatively large encrypted dataset is more computationally intensive requiring 5.04 days.

Topics & Concepts

Homomorphic encryptionPlaintextComputer scienceEncryptionSpeedupInferenceScheme (mathematics)Theoretical computer scienceArtificial intelligenceData miningMachine learningParallel computingComputer securityMathematical analysisMathematicsCryptography and Data SecurityPrivacy-Preserving Technologies in DataCryptographic Implementations and Security
PrivFT: Private and Fast Text Classification With Homomorphic Encryption | Litcius