[Paper Review] CryptGPU: Fast Privacy-Preserving Machine Learning on the GPU
CryptGPU is a GPU-accelerated framework for privacy-preserving machine learning that implements all cryptographic operations—both linear and non-linear—on the GPU using optimized, 'GPU-friendly' protocols. It achieves up to 36× speedup in private training and 8× in private inference over prior CPU-based methods, enabling secure inference and training on large models like ResNet-152 and ImageNet-scale datasets.
We introduce CryptGPU, a system for privacy-preserving machine learning that implements all operations on the GPU (graphics processing unit). Just as GPUs played a pivotal role in the success of modern deep learning, they are also essential for realizing scalable privacy-preserving deep learning. In this work, we start by introducing a new interface to losslessly embed cryptographic operations over secret-shared values (in a discrete domain) into floating-point operations that can be processed by highly-optimized CUDA kernels for linear algebra. We then identify a sequence of "GPU-friendly" cryptographic protocols to enable privacy-preserving evaluation of both linear and non-linear operations on the GPU. Our microbenchmarks indicate that our private GPU-based convolution protocol is over 150x faster than the analogous CPU-based protocol; for non-linear operations like the ReLU activation function, our GPU-based protocol is around 10x faster than its CPU analog. With CryptGPU, we support private inference and private training on convolutional neural networks with over 60 million parameters as well as handle large datasets like ImageNet. Compared to the previous state-of-the-art, when considering large models and datasets, our protocols achieve a 2x to 8x improvement in private inference and a 6x to 36x improvement for private training. Our work not only showcases the viability of performing secure multiparty computation (MPC) entirely on the GPU to enable fast privacy-preserving machine learning, but also highlights the importance of designing new MPC primitives that can take full advantage of the GPU's computing capabilities.
Motivation & Objective
- Address the scalability gap in privacy-preserving machine learning by enabling GPU acceleration for secure multiparty computation (MPC).
- Overcome the performance bottleneck of CPU-based MPC protocols that limit private training and inference to small models and datasets.
- Design cryptographic protocols that are natively compatible with GPU execution to eliminate CPU-GPU data transfer and latency.
- Enable practical private inference and training on modern deep neural networks (e.g., ResNet-152) with over 60 million parameters and ImageNet-scale datasets.
- Close the performance gap between plaintext and private deep learning by leveraging GPU-native cryptographic operations.
Proposed method
- Introduce a novel interface to embed secret-shared cryptographic operations (in discrete domains) into floating-point operations executable via optimized CUDA kernels.
- Design a suite of 'GPU-friendly' cryptographic protocols for both linear (e.g., convolutions) and non-linear (e.g., ReLU) operations using GPU-optimized primitives.
- Implement all MPC operations—including secret sharing, multiplication, and comparison—entirely on the GPU to avoid CPU bottlenecks.
- Integrate with PyTorch and CrypTen to enable seamless deployment for machine learning practitioners.
- Optimize data layout and memory access patterns to maximize GPU occupancy and throughput during MPC computation.
- Use custom CUDA kernels to accelerate homomorphic-like operations under secret sharing, minimizing computational and communication overhead.
Experimental results
Research questions
- RQ1Can all cryptographic operations in secure multiparty computation be efficiently mapped to GPU-accelerated kernels without CPU offloading?
- RQ2How much performance gain can be achieved by designing MPC protocols specifically for GPU architecture compared to CPU-optimized protocols?
- RQ3To what extent can GPU acceleration enable private training and inference on large-scale deep learning models like ResNet-152 and ImageNet?
- RQ4What are the key bottlenecks in existing MPC frameworks that prevent GPU utilization, and how can they be eliminated?
- RQ5Can GPU-native cryptographic protocols achieve sufficient security and efficiency to support real-world privacy-preserving machine learning at scale?
Key findings
- CryptGPU's private GPU-based convolution protocol is over 150× faster than its CPU-based counterpart for large models.
- The GPU-based ReLU protocol achieves approximately 10× speedup over the CPU version for non-linear activation operations.
- For private inference, CryptGPU achieves a 2× to 8× improvement over the prior state-of-the-art (Falcon and CrypTFlow) on large models and datasets.
- For private training, CryptGPU achieves a 6× to 36× improvement over previous methods, enabling training of AlexNet on Tiny ImageNet in under a year.
- CryptGPU supports private inference and training on models with over 60 million parameters and datasets as large as ImageNet, demonstrating practical scalability.
- The systematic design of GPU-friendly MPC protocols enables end-to-end GPU execution, eliminating CPU-GPU data transfer and reducing latency.
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.