arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.10920cs.CR
收藏

面向隐私保护神经网络的批量逐元素近似激活

Batch-oriented Element-wise Approximate Activation for Privacy-Preserving Neural Networks

Peng Zhang, Ao Duan, Xianglu Zou, Yuhong Liu

AI总结:

针对隐私保护神经网络中全同态加密难以处理非线性激活的问题,提出批量逐元素近似激活方法,以低阶多项式近似ReLU,结合知识蒸馏,在4096图像批量下精度提升1.65%,摊销时间降低99.5%。

摘要:

隐私保护神经网络(PPNN)旨在不泄露用户隐私的情况下执行推理,可作为医疗诊断的重要工具,同时实现大数据效用与隐私保护。作为实现PPNN的关键技术之一,全同态加密(FHE)面临一个巨大挑战:同态运算难以直接适用于非线性激活计算。本文提出了批量导向的逐元素数据打包与近似激活方法,训练线性低阶多项式来近似非线性激活函数——ReLU。与其他近似激活方法相比,所提出的细粒度、可训练的近似方案能有效减少由近似误差引起的精度损失。同时,由于采用逐元素数据打包,大量图像可以被打包并并发推理,从而显著提高密文槽位的利用率。因此,尽管总推理时间急剧增加,但每张图像的摊销时间实际减少,尤其是在批量大小增加时。此外,训练过程中采用知识蒸馏以进一步提升推理精度。实验结果表明,当对4096张输入图像执行密文推理时,与当前最高效的通道级方法相比,推理精度提高了1.65%,摊销推理时间减少了99.5%。

英文摘要:

Privacy-Preserving Neural Networks (PPNN) are advanced to perform inference without breaching user privacy, which can serve as an essential tool for medical diagnosis to simultaneously achieve big data utility and privacy protection. As one of the key techniques to enable PPNN, Fully Homomorphic Encryption (FHE) is facing a great challenge that homomorphic operations cannot be easily adapted for non-linear activation calculations. In this paper, batch-oriented element-wise data packing and approximate activation are proposed, which train linear low-degree polynomials to approximate the non-linear activation function - ReLU. Compared with other approximate activation methods, the proposed fine-grained, trainable approximation scheme can effectively reduce the accuracy loss caused by approximation errors. Meanwhile, due to element-wise data packing, a large batch of images can be packed and inferred concurrently, leading to a much higher utility ratio of ciphertext slots. Therefore, although the total inference time increases sharply, the amortized time for each image actually decreases, especially when the batch size increases. Furthermore, knowledge distillation is adopted in the training process to further enhance the inference accuracy. Experiment results show that when ciphertext inference is performed on 4096 input images, compared with the current most efficient channel-wise method, the inference accuracy is improved by 1.65%, and the amortized inference time is reduced by 99.5%.

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

↑