回声手枪:一种用于隐私保护神经网络(推断)的新型矩阵编码方法
Volley Revolver: A Novel Matrix-Encoding Method for Privacy-Preserving Neural Networks (Inference)
AI总结:
本文提出一种新型矩阵编码方法,用于在同态加密下高效进行神经网络预测。通过将卷积核扩展为与输入图像相同大小的矩阵空间,实现加密下的卷积操作,提升隐私保护性能。
摘要:
本文提出了一种新颖的矩阵编码方法,特别适用于在同态加密下神经网络进行隐私保护预测。基于该方法,我们实现了一个用于手写图像分类的卷积神经网络。对于两个矩阵A和B进行同态乘法,其核心思想是将矩阵A和B的转置分别加密为两个密文。通过额外的操作,可以在加密矩阵上高效地计算同态矩阵乘法。对于卷积操作,我们提前将每个卷积核扩展到与输入图像相同大小的矩阵空间,从而生成多个密文,每个后续与加密输入图像的密文结合计算部分最终卷积结果。我们累积所有中间结果,从而完成卷积操作。在拥有40个vCPUs的公共云上,我们的卷积神经网络在MNIST测试数据集上计算10个加密图像的似然值需要约287秒。数据拥有者只需上传一个加密这些32张图像的密文(约19.8 MB)到公共云即可。
英文摘要:
In this work, we present a novel matrix-encoding method that is particularly convenient for neural networks to make predictions in a privacy-preserving manner using homomorphic encryption. Based on this encoding method, we implement a convolutional neural network for handwritten image classification over encryption. For two matrices $A$ and $B$ to perform homomorphic multiplication, the main idea behind it, in a simple version, is to encrypt matrix $A$ and the transpose of matrix $B$ into two ciphertexts respectively. With additional operations, the homomorphic matrix multiplication can be calculated over encrypted matrices efficiently. For the convolution operation, we in advance span each convolution kernel to a matrix space of the same size as the input image so as to generate several ciphertexts, each of which is later used together with the ciphertext encrypting input images for calculating some of the final convolution results. We accumulate all these intermediate results and thus complete the convolution operation. In a public cloud with 40 vCPUs, our convolutional neural network implementation on the MNIST testing dataset takes $\sim$ 287 seconds to compute ten likelihoods of 32 encrypted images of size $28 \times 28$ simultaneously. The data owner only needs to upload one ciphertext ($\sim 19.8$ MB) encrypting these 32 images to the public cloud.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。