[Paper Review] CryptoNN: Training Neural Networks over Encrypted Data
CryptoNN proposes a novel framework for training deep neural networks directly on encrypted data using functional encryption, overcoming limitations of prior homomorphic encryption and secure multi-party computation approaches. The method achieves training accuracy comparable to plaintext models on MNIST while preserving data privacy through a custom functional encryption scheme for arithmetic operations.
Emerging neural networks based machine learning techniques such as deep learning and its variants have shown tremendous potential in many application domains. However, they raise serious privacy concerns due to the risk of leakage of highly privacy-sensitive data when data collected from users is used to train neural network models to support predictive tasks. To tackle such serious privacy concerns, several privacy-preserving approaches have been proposed in the literature that use either secure multi-party computation (SMC) or homomorphic encryption (HE) as the underlying mechanisms. However, neither of these cryptographic approaches provides an efficient solution towards constructing a privacy-preserving machine learning model, as well as supporting both the training and inference phases. To tackle the above issue, we propose a CryptoNN framework that supports training a neural network model over encrypted data by using the emerging functional encryption scheme instead of SMC or HE. We also construct a functional encryption scheme for basic arithmetic computation to support the requirement of the proposed CryptoNN framework. We present performance evaluation and security analysis of the underlying crypto scheme and show through our experiments that CryptoNN achieves accuracy that is similar to those of the baseline neural network models on the MNIST dataset.
Motivation & Objective
- To address the critical privacy risks in training deep learning models on sensitive user data, especially in cloud-based environments.
- To overcome the limitations of existing privacy-preserving methods, such as secure multi-party computation and homomorphic encryption, which either do not support training on encrypted data or are inefficient.
- To enable both training and inference over encrypted data without requiring plaintext access to the data or model parameters.
- To design and implement a functional encryption scheme tailored for the arithmetic operations required in neural network training.
- To evaluate the security, accuracy, and performance of the proposed CryptoNN framework on real-world datasets like MNIST.
Proposed method
- The framework uses functional encryption (FE) as the core cryptographic primitive, enabling computation on encrypted data without decryption.
- A custom functional encryption scheme is constructed to support basic arithmetic operations (e.g., addition, multiplication) essential for backpropagation in neural networks.
- The training process is performed using stochastic gradient descent (SGD) on encrypted data, with gradients computed and updated in the encrypted domain.
- The system ensures that only authorized parties (e.g., the data owner) can decrypt the final model, preserving confidentiality of both data and model parameters.
- The implementation leverages existing FE constructions, such as those based on multi-input functional encryption or hardware-assisted techniques like Intel SGX, for practicality.
- Performance evaluation is conducted on the MNIST dataset using two epochs and a batch size of 64 to compare accuracy and training time against baseline models.
Experimental results
Research questions
- RQ1Can a neural network be trained directly on encrypted data using functional encryption while maintaining model accuracy?
- RQ2How does the performance of training over encrypted data using functional encryption compare to training on plaintext data?
- RQ3What is the security guarantee provided by the proposed functional encryption scheme in the context of neural network training?
- RQ4Can the proposed framework support both training and inference phases over encrypted data, unlike prior homomorphic encryption-based approaches?
- RQ5What are the practical scalability and efficiency trade-offs of using functional encryption for deep learning training?
Key findings
- CryptoNN achieves test accuracy on the MNIST dataset that is comparable to baseline neural network models trained on plaintext data.
- The training time for CryptoNN is significantly longer than for plaintext training due to the computational overhead of cryptographic operations, though the model remains trainable.
- The functional encryption scheme enables secure computation over encrypted data, supporting the full backpropagation process required for model training.
- The framework provides strong privacy guarantees, ensuring that neither the cloud provider nor any untrusted party can access the plaintext data or model parameters.
- The security analysis confirms that the scheme resists known attacks and preserves data confidentiality throughout the training lifecycle.
- The results demonstrate that functional encryption is a viable alternative to homomorphic encryption and secure multi-party computation for privacy-preserving deep learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.