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

SHE:一种快速准确的加密数据深度神经网络

SHE: A Fast and Accurate Deep Neural Network for Encrypted Data

Indiana University Bloomington(印第安纳大学伯明顿分校)

Qian Lou, Lei Jiang

摘要:

同态加密(HE)是新兴的机器学习即服务(MLaaS)的最有前途的安全解决方案之一。提出了支持分层HE(LHE)的卷积神经网络(LHECNN)来实现MLaaS以避免大的自举开销。然而,由于其多项式近似激活和池化,先前的LHECNN必须支付显著的计算开销,但仅实现低推理精度。在网络中堆叠许多多项式近似激活层大大降低了推理精度,因为多项式近似激活误差导致下一个批量归一化层的输出分布的低失真。因此,多项式逼近的激活和池化问题成为LHECNN快速、准确建模的障碍。在本文中,我们提出了一种基于移位累积的LHE支持的深度神经网络(SHE),用于对加密数据进行快速准确的推断。我们使用二进制操作友好的环形分层快速同态加密(LTFHE)加密方案来实现ReLU激活和最大池化。我们还采用对数量化来加速推理,用廉价的LTFHE移位代替昂贵的LTFHE乘法。我们提出了一种混合位宽累加器来加速累加。由于LTFHE ReLU激活、最大池化、移位和累加具有较小的乘法深度开销,因此SHE可以实现具有更多卷积和激活层的更深的网络架构。实验结果表明,SHE在MNIST和CIFAR-10上取得了最佳的推理精度,并将推理延迟降低了76.21% ~ 94.23%。SHE的源代码可在https://github.com/qianlou/SHE上获得。

英文摘要:

Homomorphic Encryption (HE) is one of the most promising security solutions to emerging Machine Learning as a Service (MLaaS). Leveled-HE (LHE)-enabled Convolutional Neural Networks (LHECNNs) are proposed to implement MLaaS to avoid large bootstrapping overhead. However, prior LHECNNs have to pay significant computing overhead but achieve only low inference accuracy, due to their polynomial approximation activations and poolings. Stacking many polynomial approximation activation layers in a network greatly reduces inference accuracy, since the polynomial approximation activation errors lead to a low distortion of the output distribution of the next batch normalization layer. So the polynomial approximation activations and poolings have become the obstacle to a fast and accurate LHECNN model. In this paper, we propose a Shift-accumulation-based LHE-enabled deep neural network (SHE) for fast and accurate inferences on encrypted data. We use the binary-operation-friendly Leveled Fast Homomorphic Encryption over Torus (LTFHE) encryption scheme to implement ReLU activations and max poolings. We also adopt the logarithmic quantization to accelerate inferences by replacing expensive LTFHE multiplications with cheap LTFHE shifts. We propose a mixed bitwidth accumulator to accelerate accumulations. Since the LTFHE ReLU activations, max poolings, shifts and accumulations have small multiplicative depth overhead, SHE can implement much deeper network architectures with more convolutional and activation layers. Our experimental results show SHE achieves the state-of-the-art inference accuracy and reduces the inference latency by 76.21% ~ 94.23% over prior LHECNNs on MNIST and CIFAR-10. The source code of SHE is available at https://github.com/qianlou/SHE.

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

↑