Skip to main content
QUICK REVIEW

[Paper Review] Privacy preserving Neural Network Inference on Encrypted Data with GPUs

Daniel Takabi, Robert Podschwadt|arXiv (Cornell University)|Nov 26, 2019
Cryptography and Data SecurityComputer Science14 references8 citations
TL;DR

This paper proposes a GPU-accelerated fully homomorphic encryption (FHE) framework for privacy-preserving inference on convolutional neural networks (CNNs) over encrypted data. By using polynomial approximations for non-linear activations and optimizing FHE operations on GPUs, the approach achieves over 4,500x speedup on multiplication operations and 95% classification accuracy on the COWC dataset with a CNN similar to AlexNet.

ABSTRACT

Machine Learning as a Service (MLaaS) has become a growing trend in recent years and several such services are currently offered. MLaaS is essentially a set of services that provides machine learning tools and capabilities as part of cloud computing services. In these settings, the cloud has pre-trained models that are deployed and large computing capacity whereas the clients can use these models to make predictions without having to worry about maintaining the models and the service. However, the main concern with MLaaS is the privacy of the client's data. Although there have been several proposed approaches in the literature to run machine learning models on encrypted data, the performance is still far from being satisfactory for practical use. In this paper, we aim to accelerate the performance of running machine learning on encrypted data using combination of Fully Homomorphic Encryption (FHE), Convolutional Neural Networks (CNNs) and Graphics Processing Units (GPUs). We use a number of optimization techniques, and efficient GPU-based implementation to achieve high performance. We evaluate a CNN whose architecture is similar to AlexNet to classify homomorphically encrypted samples from the Cars Overhead With Context (COWC) dataset. To the best of our knowledge, it is the first time such a complex network and large dataset is evaluated on encrypted data. Our approach achieved reasonable classification accuracy of 95% for the COWC dataset. In terms of performance, our results show that we could achieve several thousands times speed up when we implement GPU-accelerated FHE operations on encrypted floating point numbers.

Motivation & Objective

  • Address the performance bottleneck of fully homomorphic encryption (FHE) in privacy-preserving machine learning for large-scale datasets.
  • Enable efficient inference on encrypted data using FHE-compatible neural network architectures, particularly for complex models like CNNs.
  • Overcome the computational infeasibility of FHE for large models and datasets by leveraging GPU acceleration.
  • Demonstrate practical feasibility of end-to-end privacy-preserving machine learning as a service (MLaaS) using homomorphic encryption and GPU acceleration.

Proposed method

  • Use polynomial approximations to replace non-linear activation functions (e.g., ReLU) with homomorphic-friendly alternatives to support FHE evaluation.
  • Implement FHE operations on encrypted floating-point numbers by converting them into integer arrays and performing arithmetic via Boolean circuits.
  • Accelerate FHE operations using GPU kernels, specifically targeting addition and multiplication on a Titan V GPU with 80 cores.
  • Optimize the FHE pipeline by minimizing Boolean circuit depth and leveraging parallelism in GPU architecture.
  • Integrate the GPU-accelerated FHE layer into a CNN architecture similar to AlexNet, trained on the COWC dataset.
  • Measure performance and accuracy by comparing inference times and classification results on encrypted vs. unencrypted data.

Experimental results

Research questions

  • RQ1Can FHE-based neural network inference be made practical for large-scale, real-world datasets like COWC using GPU acceleration?
  • RQ2To what extent can GPU acceleration reduce the computational overhead of FHE operations on encrypted floating-point numbers?
  • RQ3How accurate is a CNN with FHE-compatible polynomial approximations compared to a standard ReLU-based network on encrypted data?
  • RQ4What is the performance gain from using GPUs over CPUs for FHE-based inference in a privacy-preserving MLaaS setting?
  • RQ5Can complex CNN architectures like AlexNet be successfully evaluated on homomorphically encrypted data using optimized FHE techniques?

Key findings

  • The proposed FHE-compatible CNN achieved 95% classification accuracy on the COWC dataset when inferring on homomorphically encrypted data.
  • GPU acceleration reduced the time for a single multiplication operation on encrypted data by more than 4,500 times compared to CPU execution.
  • The addition operation on encrypted floating-point numbers achieved over 10,000x speedup using GPU-accelerated FHE operations.
  • Performance scaled nearly linearly with the number of GPU cores, demonstrating strong parallelization efficiency for FHE operations.
  • The framework successfully evaluated a complex CNN architecture on a large, real-world dataset (COWC), which to the authors' knowledge is the first such evaluation with FHE.
  • The use of polynomial approximations for ReLU and mean pooling layers preserved model performance while enabling homomorphic evaluation.

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.