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 85% 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 15GB 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%).

Rovida, L., Leporati, A. (2024). Encrypted Image Classification with Low Memory Footprint using Fully Homomorphic Encryption. INTERNATIONAL JOURNAL OF NEURAL SYSTEMS, 34(05 (May 2024)), 1-16 [10.1142/s0129065724500254].

Encrypted Image Classification with Low Memory Footprint using Fully Homomorphic Encryption

Rovida, Lorenzo;Leporati, Alberto
2024

Abstract

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 85% 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 15GB 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%).
Articolo in rivista - Articolo scientifico
Encrypted neural network; homomorphic encryption; secure machine learning;
English
22-mar-2024
2024
34
05 (May 2024)
1
16
2450025
partially_open
Rovida, L., Leporati, A. (2024). Encrypted Image Classification with Low Memory Footprint using Fully Homomorphic Encryption. INTERNATIONAL JOURNAL OF NEURAL SYSTEMS, 34(05 (May 2024)), 1-16 [10.1142/s0129065724500254].
File in questo prodotto:
File Dimensione Formato  
Rovida-2024-IJNS-AAM.pdf

embargo fino al 22/03/2025

Tipologia di allegato: Author’s Accepted Manuscript, AAM (Post-print)
Licenza: Altro
Dimensione 614.22 kB
Formato Adobe PDF
614.22 kB Adobe PDF   Visualizza/Apri   Richiedi una copia
Rovida-2024-IJNS-preprint.pdf

accesso aperto

Tipologia di allegato: Submitted Version (Pre-print)
Licenza: Altro
Dimensione 456.63 kB
Formato Adobe PDF
456.63 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/463818
Citazioni
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
Social impact