[Paper Review] Towards the AlexNet Moment for Homomorphic Encryption: HCNN, theFirst Homomorphic CNN on Encrypted Data with GPUs
This paper presents HCNN, the first GPU-accelerated homomorphic convolutional neural network that enables efficient, privacy-preserving inference on encrypted images using Fully Homomorphic Encryption (FHE). By combining low-precision quantized networks, optimized FHE parameters, and a highly parallelized GPU implementation, HCNN achieves 5.16-second inference latency for MNIST and 304.43 seconds for CIFAR-10 with 99% and 77.55% accuracy, respectively, at over 80-bit security levels.
Deep Learning as a Service (DLaaS) stands as a promising solution for cloud-based inference applications. In this setting, the cloud has a pre-learned model whereas the user has samples on which she wants to run the model. The biggest concern with DLaaS is user privacy if the input samples are sensitive data. We provide here an efficient privacy-preserving system by employing high-end technologies such as Fully Homomorphic Encryption (FHE), Convolutional Neural Networks (CNNs) and Graphics Processing Units (GPUs). FHE, with its widely-known feature of computing on encrypted data, empowers a wide range of privacy-concerned applications. This comes at high cost as it requires enormous computing power. In this paper, we show how to accelerate the performance of running CNNs on encrypted data with GPUs. We evaluated two CNNs to classify homomorphically the MNIST and CIFAR-10 datasets. Our solution achieved a sufficient security level (> 80 bit) and reasonable classification accuracy (99%) and (77.55%) for MNIST and CIFAR-10, respectively. In terms of latency, we could classify an image in 5.16 seconds and 304.43 seconds for MNIST and CIFAR-10, respectively. Our system can also classify a batch of images (> 8,000) without extra overhead.
Motivation & Objective
- Address the critical challenge of high computational overhead in privacy-preserving deep learning using Fully Homomorphic Encryption (FHE).
- Enable efficient, secure inference on encrypted data in Deep Learning as a Service (DLaaS) without exposing user data or model weights.
- Overcome the performance bottleneck of prior FHE-based CNNs by leveraging GPU acceleration and system-level optimizations.
- Achieve practical inference latency for real-world deployment while maintaining strong security (over 80-bit) and high classification accuracy.
- Demonstrate that homomorphic inference can be accelerated to near-practical performance, marking a milestone akin to AlexNet for FHE.
Proposed method
- Design two FHE-friendly CNN architectures: a 5-layer network for MNIST and an 11-layer network for CIFAR-10, optimized for homomorphic evaluation.
- Employ low-precision quantization (43-bit plaintext modulus for MNIST) and unified training/inference networks to reduce FHE noise growth and circuit depth.
- Select the A∗FV FHE scheme with optimized ring dimension and plaintext modulus to balance security, noise budget, and performance.
- Implement a highly optimized GPU kernel for FHE operations using the SEAL library, enabling massive parallelization of homomorphic operations.
- Utilize batching via ciphertext packing (up to 8,192 images per batch) to amortize computational costs and improve throughput.
- Integrate end-to-end pipeline from encrypted input to decrypted output, ensuring non-interactive client-server interaction.
Experimental results
Research questions
- RQ1Can GPU acceleration significantly reduce the latency of homomorphic inference on encrypted images compared to CPU-based FHE systems?
- RQ2What is the minimal network depth and precision required to maintain high accuracy in FHE-encrypted CNN inference while ensuring sufficient noise budget?
- RQ3How does the choice of FHE scheme (e.g., A∗FV vs. SEAL) impact noise growth and overall performance in homomorphic CNNs?
- RQ4To what extent can batching improve throughput and reduce amortized latency in homomorphic image classification?
- RQ5Is it feasible to achieve practical inference latency (under 10 seconds) for MNIST and under 10 minutes for CIFAR-10 using FHE on GPUs?
Key findings
- HCNN achieved a classification latency of 5.16 seconds for MNIST with 99% accuracy, representing a 109x speedup over prior work (CryptoNets at 570 seconds).
- For CIFAR-10, HCNN achieved 304.43 seconds per image with 77.55% accuracy, outperforming FCryptoNets (22,372 seconds) and CryptoDL (11,686 seconds) by orders of magnitude.
- The system supports batch processing of up to 8,192 images with no additional overhead, achieving an amortized latency of just 0.372 seconds per image on CIFAR-10.
- A∗FV demonstrated significantly lower noise growth than SEAL, enabling successful evaluation of the MNIST HCNN even with conservative parameter sets.
- The optimized 5-layer MNIST network used only 43-bit plaintext modulus, smaller than CryptoNets’ 80-bit modulus, while maintaining 99% accuracy and higher efficiency.
- The solution achieved a security level of over 80 bits (91–175 bits in different configurations), ensuring strong cryptographic security without sacrificing performance.
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.