Skip to main navigation Skip to search Skip to main content

An Efficient CKKS-FHEW/TFHE Hybrid Encrypted Inference Framework

  • Tzu Li Liu
  • , Yu Te Ku
  • , Ming Chien Ho
  • , Feng Hao Liu
  • , Ming Ching Chang
  • , Chih Fan Hsu
  • , Wei Chao Chen
  • , Shih Hao Hung

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

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.

Original languageEnglish
Title of host publicationComputer Security. ESORICS 2023 International Workshops - CPS4CIP, ADIoT, SecAssure, WASP, TAURIN, PriST-AI, and SECAI, 2023, Revised Selected Papers
EditorsSokratis Katsikas, Habtamu Abie, Silvio Ranise, Luca Verderame, Enrico Cambiaso, Rita Ugarelli, Isabel Praça, Wenjuan Li, Weizhi Meng, Steven Furnell, Basel Katt, Sandeep Pirbhulal, Ankur Shukla, Michele Ianni, Mila Dalla Preda, Kim-Kwang Raymond Choo, Miguel Pupo Correia, Abhishta Abhishta, Giovanni Sileno, Mina Alishahi, Harsha Kalutarage, Naoto Yanai
PublisherSpringer Science and Business Media Deutschland GmbH
Pages535-551
Number of pages17
ISBN (Print)9783031541285
DOIs
StatePublished - 2024
EventInternational Workshops which were held in conjunction with 28th European Symposium on Research in Computer Security, ESORICS 2023 - The Hague, Netherlands
Duration: Sep 25 2023Sep 29 2023

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14399 LNCS

Conference

ConferenceInternational Workshops which were held in conjunction with 28th European Symposium on Research in Computer Security, ESORICS 2023
Country/TerritoryNetherlands
CityThe Hague
Period09/25/2309/29/23

Keywords

  • Homomorphic encryption
  • functional bootstrapping
  • neural network
  • privacy-preserving machine learning

Fingerprint

Dive into the research topics of 'An Efficient CKKS-FHEW/TFHE Hybrid Encrypted Inference Framework'. Together they form a unique fingerprint.

Cite this