基于迁移学习的隐私保护CNN训练:多分类逻辑回归
Privacy-Preserving CNN Training with Transfer Learning: Multiclass Logistic Regression
AI总结:
本文首次提出仅基于同态加密、结合迁移学习等四种技术的隐私保护CNN训练方案,以REGNET_X_400MF为预训练模型在MNIST上实验,64vCPU云环境2次迭代耗时约21分钟,精度达21.49%。
摘要:
本文提出一种仅基于同态加密(HE)技术实现隐私保护CNN训练的实用方案。据我们所知,这是首次成功解决该问题的尝试,此前尚无工作达成此目标。多种技术相结合完成该任务:(1)通过迁移学习,隐私保护CNN训练可简化为同态神经网络训练,甚至多分类逻辑回归(MLR)训练;(2)通过名为$\texttt{Quadratic Gradient}$的更快梯度变体,本文应用一种在收敛速度上具有最先进性能的MLR增强梯度方法以实现高性能;(3)我们采用数学变换思想,将加密域中Softmax函数的近似转换为Sigmoid函数的近似,并开发了一种名为$\texttt{Squared Likelihood Error}$的新型损失函数以适配这一变化;(4)我们使用一种名为$\texttt{Volley Revolver}$的简单但灵活的矩阵编码方法来管理密文数据流,这是完成整个同态CNN训练的关键因素。实现我们工作的完整可运行C++代码可在$\texttt{https://github.com/petitioner/HE.CNNtraining}$获取。我们选择$\texttt{REGNET_X_400MF}$作为迁移学习的预训练模型,使用前128张MNIST训练图像作为训练数据,整个MNIST测试数据集作为测试数据。客户端仅需向云上传6个密文,在拥有64个vCPU的云上执行2次迭代耗时约21分钟,最终精度为21.49%。
英文摘要:
In this paper, we present a practical solution to implement privacy-preserving CNN training based on mere Homomorphic Encryption (HE) technique. To our best knowledge, this is the first attempt successfully to crack this nut and no work ever before has achieved this goal. Several techniques combine to accomplish the task:: (1) with transfer learning, privacy-preserving CNN training can be reduced to homomorphic neural network training, or even multiclass logistic regression (MLR) training; (2) via a faster gradient variant called $\texttt{Quadratic Gradient}$, an enhanced gradient method for MLR with a state-of-the-art performance in convergence speed is applied in this work to achieve high performance; (3) we employ the thought of transformation in mathematics to transform approximating Softmax function in the encryption domain to the approximation of the Sigmoid function. A new type of loss function termed $\texttt{Squared Likelihood Error}$ has been developed alongside to align with this change.; and (4) we use a simple but flexible matrix-encoding method named $\texttt{Volley Revolver}$ to manage the data flow in the ciphertexts, which is the key factor to complete the whole homomorphic CNN training. The complete, runnable C++ code to implement our work can be found at: \href{https://github.com/petitioner/HE.CNNtraining}{$\texttt{https://github.com/petitioner/HE.CNNtraining}$}. We select $\texttt{REGNET\_X\_400MF}$ as our pre-trained model for transfer learning. We use the first 128 MNIST training images as training data and the whole MNIST testing dataset as the testing data. The client only needs to upload 6 ciphertexts to the cloud and it takes $\sim 21$ mins to perform 2 iterations on a cloud with 64 vCPUs, resulting in a precision of $21.49\%$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。