arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.03362cs.CRcs.LG
收藏

一种训练适配同态加密的神经网络的方法

A methodology for training homomorphicencryption friendly neural networks

IBM Research - Haifa(IBM研究院-海法);Bar Ilan University(巴伊兰大学)

Moran Baruch, Nir Drucker, Lev Greenberg, Guy Moshkowich

AI总结:

针对同态加密方案不支持ReLU激活的问题,提出用二次多项式激活替代ReLU、结合知识蒸馏等技术训练HE友好模型的方法,在多个架构和医学数据集上显著缩小精度差距。

摘要:

隐私保护深度神经网络(DNN)推理是医疗、金融、零售等多个受监管行业的刚需。近年来,同态加密(HE)被用作在解决隐私问题的同时开展分析的方法,可基于加密数据实现安全预测。但HE的应用仍存在若干挑战,包括DNN规模受限、部分运算类型缺乏支持,最突出的是常用的ReLU激活函数在部分HE方案下不被支持。\n我们提出一种结构化方法,用二次多项式激活函数替代ReLU。为解决精度下降问题,我们利用预训练模型来训练另一个HE友好(适配同态加密)模型,采用可训练激活函数、知识蒸馏等技术。\n我们在AlexNet架构上验证了该方法,使用胸部X光和CT数据集开展COVID-19检测任务。实验表明,我们的方法将使用ReLU训练的模型与HE友好模型的F1分数和准确率差距缩小至仅0.32%-5.3%的下降幅度。我们还在SqueezeNet架构上验证了该方法,相较于采用其他HE友好训练方法训练的同类网络,我们的方法实现了7%的准确率和F1值提升。

英文摘要:

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 F1 score and accuracy of the models trained with ReLU and the HE-friendly model to within a mere 0.32-5.3 percent degradation. We also demonstrate our methodology using the SqueezeNet architecture, for which we observed 7 percent accuracy and F1 improvements over training similar networks with other HE-friendly training methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑