A Methodology for Training Homomorphic Encryption Friendly Neural Networks

被引:5
作者
Baruch, Moran [1 ,2 ]
Drucker, Nir [1 ]
Greenberg, Lev [1 ]
Moshkowich, Guy [1 ]
机构
[1] IBM Res, Haifa, Israel
[2] Bar Ilan Univ, Ramat Gan, Israel
来源
APPLIED CRYPTOGRAPHY AND NETWORK SECURITY WORKSHOPS, ACNS 2022 | 2022年 / 13285卷
关键词
Deep learning; Homomorphic encryption; HE-friendly neural networks; DNN training; AlexNet; SqueezeNet;
D O I
10.1007/978-3-031-16815-4_29
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Privacy-preserving deep neural network (DNN) inference is a necessity in different regulated industries such as healthcare, finance, and retail. Recently, homomorphic encryption (HE) has been used as a method to enable analytics while addressing privacy concerns. HE enables secure predictions over encrypted data. However, there are several challenges related to the use of HE, including DNN size limitations and the lack of support for some operation types. Most notably, the commonly used ReLU activation is not supported under some HE schemes. We propose a structured methodology to replace ReLU with a quadratic polynomial activation. To address the accuracy degradation issue, we use a pre-trained model that trains another HE-friendly model, using techniques such as 'trainable activation' functions and knowledge distillation. We demonstrate our methodology on the AlexNet architecture, using the chest X-Ray and CT datasets for COVID-19 detection. Experiments using our approach reduced the gap between the F-1 score and accuracy of the models trained with ReLU and the HE-friendly model to within a mere 0.32-5.3% degradation. We also demonstrate our methodology using the SqueezeNet architecture, for which we observed 7% accuracy and F-1 improvements over training similar networks with other HE-friendly training methods.
引用
收藏
页码:536 / 553
页数:18
相关论文
共 45 条
  • [1] AC, 2020, ACT COVID 19 CHEST X
  • [2] Aharoni E, 2023, Arxiv, DOI [arXiv:2011.01805, 10.56553/popets-2023-0020]
  • [3] Akavia A., 2021, Cryptology ePrint Archive
  • [4] [Anonymous], 2016, EU General Data Protection Regulation: Regulation (EU) 2016/679 Directive 95/46/EC (General Data Protection Regulation), V119
  • [5] Baruch M, 2021, FIGHTING COVID 19 DA
  • [6] nGraph-HE2: A High-Throughput Framework for Neural Network Inference on Encrypted Data
    Boemer, Fabian
    Costache, Anamaria
    Cammarota, Rosario
    Wierzynski, Casimir
    [J]. PROCEEDINGS OF THE 7TH ACM WORKSHOP ON ENCRYPTED COMPUTING & APPLIED HOMOMORPHIC CRYPTOGRAPHY (WAHC'19), 2019, : 45 - 56
  • [7] Brakerski Z., 2014, ACM Trans. on Com. T, V6, P13
  • [8] Centers for Medicare & Medicaid Services, 1996, HLTH INS PORT ACC AC
  • [9] Numerical Method for Comparison on Homomorphically Encrypted Numbers
    Cheon, Jung Hee
    Kim, Dongwoo
    Kim, Duhyeong
    Lee, Hun Hee
    Lee, Keewoo
    [J]. ADVANCES IN CRYPTOLOGY - ASIACRYPT 2019, PT II, 2019, 11922 : 415 - 445
  • [10] Homomorphic Encryption for Arithmetic of Approximate Numbers
    Cheon, Jung Hee
    Kim, Andrey
    Kim, Miran
    Song, Yongsoo
    [J]. ADVANCES IN CRYPTOLOGY - ASIACRYPT 2017, PT I, 2017, 10624 : 409 - 437