Skip to main navigation Skip to search Skip to main content

LPFHE: Low-Complexity Polynomial CNNs for Secure Inference over FHE

  • Junping Wan
  • , Danjie Li
  • , Junbing Fang
  • , Zoe L. Jiang*
  • *Corresponding author for this work
  • Harbin Institute of Technology Shenzhen
  • Jinan University
  • Peng Cheng Laboratory
  • Guangdong Provincial Key Laboratory of Novel Security Intelligence Technologies

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

Abstract

Machine learning as a service (MLaaS) has gained popularity among clients. To address the privacy concerns in MLaaS, fully homomorphic encryption (FHE) has been introduced to protect clients’ data. However, FHE cannot directly evaluate the non-arithmetic activation function in convolutional neural networks (CNNs). Existing works replace the activation function with polynomials of varying degrees to obtain FHE-friendly CNNs, while having to face a trade-off between accuracy loss and latency increases. It remains a significant challenge to maintain accuracy with low latency in secure inference. We propose a framework called LPFHE to precisely approximate the essential ReLU function in CNNs using low-complexity polynomials. LPFHE supports finding the optimal approximation domain and polynomial for each ReLU function. By integrating our segmented weighted least squares algorithm with the Remez algorithm, LPFHE achieves higher approximation precision compared to existing works. Consequently, LPFHE is capable of generating a low-complexity polynomial CNN with high inference accuracy, as the low-degree polynomials preserve the properties of the ReLU function well.    We implement LPFHE on ResNet20/32/44 networks on encrypted CIFAR10/100 datasets under RNS-CKKS, which shows up to a 48.7% reduction in amortized inference latency with little accuracy loss, in comparison to the previous works.

Original languageEnglish
Title of host publicationComputer Security – ESORICS 2024 - 29th European Symposium on Research in Computer Security, Proceedings
EditorsJoaquin Garcia-Alfaro, Rafał Kozik, Michał Choraś, Sokratis Katsikas
PublisherSpringer Science and Business Media Deutschland GmbH
Pages403-423
Number of pages21
ISBN (Print)9783031708954
DOIs
StatePublished - 2024
Externally publishedYes
Event29th European Symposium on Research in Computer Security, ESORICS 2024 - Bydgoszcz, Poland
Duration: 16 Sep 202420 Sep 2024

Publication series

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

Conference

Conference29th European Symposium on Research in Computer Security, ESORICS 2024
Country/TerritoryPoland
CityBydgoszcz
Period16/09/2420/09/24

Keywords

  • Fully homomorphic encryption
  • ReLU approximation
  • Secure inference

Fingerprint

Dive into the research topics of 'LPFHE: Low-Complexity Polynomial CNNs for Secure Inference over FHE'. Together they form a unique fingerprint.

Cite this