Computer Science Department, CICESE Research Center, Ensenada, BC, Mexico.
Ivannikov Institute for System Programming, RAS, Moscow, Russia.
PLoS One. 2024 Jul 22;19(7):e0306420. doi: 10.1371/journal.pone.0306420. eCollection 2024.
The widespread adoption of cloud computing necessitates privacy-preserving techniques that allow information to be processed without disclosure. This paper proposes a method to increase the accuracy and performance of privacy-preserving Convolutional Neural Networks with Homomorphic Encryption (CNN-HE) by Self-Learning Activation Functions (SLAF). SLAFs are polynomials with trainable coefficients updated during training, together with synaptic weights, for each polynomial independently to learn task-specific and CNN-specific features. We theoretically prove its feasibility to approximate any continuous activation function to the desired error as a function of the SLAF degree. Two CNN-HE models are proposed: CNN-HE-SLAF and CNN-HE-SLAF-R. In the first model, all activation functions are replaced by SLAFs, and CNN is trained to find weights and coefficients. In the second one, CNN is trained with the original activation, then weights are fixed, activation is substituted by SLAF, and CNN is shortly re-trained to adapt SLAF coefficients. We show that such self-learning can achieve the same accuracy 99.38% as a non-polynomial ReLU over non-homomorphic CNNs and lead to an increase in accuracy (99.21%) and higher performance (6.26 times faster) than the state-of-the-art CNN-HE CryptoNets on the MNIST optical character recognition benchmark dataset.
云计算的广泛采用需要隐私保护技术,这些技术允许在不披露信息的情况下处理信息。本文提出了一种通过自学习激活函数(SLAF)提高同态加密卷积神经网络(CNN-HE)的准确性和性能的方法。SLAF 是具有可训练系数的多项式,在训练过程中,每个多项式的系数与突触权重一起独立更新,以学习特定于任务和特定于 CNN 的特征。我们从理论上证明了其通过 SLAF 度将任何连续激活函数近似到所需误差的可行性。提出了两种 CNN-HE 模型:CNN-HE-SLAF 和 CNN-HE-SLAF-R。在第一个模型中,所有激活函数都被 SLAF 取代,然后对 CNN 进行训练以找到权重和系数。在第二个模型中,使用原始激活对 CNN 进行训练,然后固定权重,用 SLAF 替换激活,然后再对 CNN 进行短暂重训练以适应 SLAF 系数。我们表明,这种自学习可以达到与非多项式 ReLU 在非同态 CNN 上相同的 99.38%的准确性,并导致在 MNIST 光学字符识别基准数据集上比最先进的 CNN-HE CryptoNets 提高准确性(99.21%)和更高的性能(快 6.26 倍)。