Skip to main content
QUICK REVIEW

[Paper Review] 2P-DNN : Privacy-Preserving Deep Neural Networks Based on Homomorphic Cryptosystem

Qiang Zhu, Xixiang Lv|arXiv (Cornell University)|Jul 23, 2018
Privacy-Preserving Technologies in DataComputer Science8 references17 citations
TL;DR

This paper proposes 2P-DNN, a privacy-preserving deep neural network framework that enables secure inference on encrypted data using the Paillier homomorphic cryptosystem. By adapting LeNet-5 to operate in the ciphertext domain, the model achieves over 97% accuracy on the encrypted MNIST dataset, outperforming existing privacy-preserving approaches while maintaining strong security guarantees.

ABSTRACT

Machine Learning as a Service (MLaaS), such as Microsoft Azure, Amazon AWS, offers an effective DNN model to complete the machine learning task for small businesses and individuals who are restricted to the lacking data and computing power. However, here comes an issue that user privacy is ex-posed to the MLaaS server, since users need to upload their sensitive data to the MLaaS server. In order to preserve their privacy, users can encrypt their data before uploading it. This makes it difficult to run the DNN model because it is not designed for running in ciphertext domain. In this paper, using the Paillier homomorphic cryptosystem we present a new Privacy-Preserving Deep Neural Network model that we called 2P-DNN. This model can fulfill the machine leaning task in ciphertext domain. By using 2P-DNN, MLaaS is able to provide a Privacy-Preserving machine learning ser-vice for users. We build our 2P-DNN model based on LeNet-5, and test it with the encrypted MNIST dataset. The classification accuracy is more than 97%, which is close to the accuracy of LeNet-5 running with the MNIST dataset and higher than that of other existing Privacy-Preserving machine learning models

Motivation & Objective

  • To address privacy leakage in Machine Learning as a Service (MLaaS) platforms where users upload sensitive data.
  • To enable deep neural network inference on encrypted data without decryption, preserving user privacy.
  • To design a secure, efficient, and accurate deep learning framework compatible with homomorphic encryption.
  • To demonstrate feasibility and performance of privacy-preserving inference using the Paillier cryptosystem on standard benchmarks.

Proposed method

  • The 2P-DNN framework is built upon the LeNet-5 architecture, adapted to perform computations in the ciphertext domain using the Paillier homomorphic cryptosystem.
  • All layers of the neural network—convolutional, pooling, and fully connected—are modified to support homomorphic operations on encrypted tensors.
  • The Paillier cryptosystem enables additive homomorphism, allowing the model to compute linear transformations and activation functions (e.g., ReLU) in encrypted form.
  • Input data is encrypted by the user before upload, and the MLaaS server performs inference without ever decrypting the inputs.
  • The model uses a secure protocol to handle non-linear operations such as ReLU through approximation techniques compatible with homomorphic encryption.
  • The system ensures that only the final prediction is decrypted by the user, preserving end-to-end privacy.

Experimental results

Research questions

  • RQ1Can deep neural networks be securely executed on encrypted data using homomorphic encryption without significant accuracy loss?
  • RQ2How does the performance of a homomorphic-encrypted DNN compare to standard DNNs on standard benchmarks like MNIST?
  • RQ3What are the practical trade-offs between security, computational overhead, and inference accuracy in privacy-preserving deep learning?
  • RQ4Can the Paillier cryptosystem be effectively integrated into a full DNN inference pipeline with minimal architectural modifications?

Key findings

  • The 2P-DNN model achieved a classification accuracy of over 97% on the encrypted MNIST dataset, closely matching the performance of the original LeNet-5 on plaintext data.
  • The proposed framework successfully enables end-to-end privacy-preserving inference, where the server never accesses plaintext data or model weights.
  • The model outperforms existing privacy-preserving machine learning approaches in terms of accuracy, demonstrating the effectiveness of using Paillier homomorphic encryption in deep learning.
  • The integration of homomorphic encryption into the DNN pipeline was feasible, with only minor modifications to the LeNet-5 architecture to support homomorphic operations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.