Department of Informatics, Systems and Communication, University of Milan-Bicocca, Viale Sarca, 336, Milan, 20126, Italy.
Int J Neural Syst. 2024 May;34(5):2450025. doi: 10.1142/S0129065724500254. Epub 2024 Mar 22.
Classifying images has become a straightforward and accessible task, thanks to the advent of Deep Neural Networks. Nevertheless, not much attention is given to the privacy concerns associated with sensitive data contained in images. In this study, we propose a solution to this issue by exploring an intersection between Machine Learning and cryptography. In particular, Fully Homomorphic Encryption (FHE) emerges as a promising solution, as it enables computations to be performed on encrypted data. We therefore propose a Residual Network implementation based on FHE which allows the classification of encrypted images, ensuring that only the user can see the result. We suggest a circuit which reduces the memory requirements by more than [Formula: see text] compared to the most recent works, while maintaining a high level of accuracy and a short computational time. We implement the circuit using the well-known Cheon-Kim-Kim-Song (CKKS) scheme, which enables approximate encrypted computations. We evaluate the results from three perspectives: memory requirements, computational time and calculations precision. We demonstrate that it is possible to evaluate an encrypted ResNet20 in less than five minutes on a laptop using approximately 15[Formula: see text]GB of memory, achieving an accuracy of 91.67% on the CIFAR-10 dataset, which is almost equivalent to the accuracy of the plain model (92.60%).
由于深度学习神经网络的出现,图像分类已经变得简单易行。然而,人们对图像中包含的敏感数据的隐私问题关注甚少。在这项研究中,我们通过探索机器学习和密码学的交叉点来解决这个问题。特别是,全同态加密(FHE)作为一种很有前途的解决方案出现了,因为它允许对加密数据进行计算。因此,我们提出了一种基于 FHE 的残差网络实现方法,该方法允许对加密图像进行分类,确保只有用户可以看到结果。我们提出了一个电路,与最近的工作相比,该电路将内存需求减少了超过[Formula: see text],同时保持了高精度和短的计算时间。我们使用众所周知的 Cheon-Kim-Kim-Song(CKKS)方案来实现该电路,该方案允许进行近似加密计算。我们从三个方面评估了结果:内存需求、计算时间和计算精度。我们证明,使用大约 15[Formula: see text]GB 的内存,在笔记本电脑上不到五分钟的时间就可以评估加密的 ResNet20,在 CIFAR-10 数据集上达到 91.67%的准确率,几乎相当于明文模型的准确率(92.60%)。