TL;DR
This paper introduces Impala, a novel cryptographic protocol for private deep learning inference in the client-cloud setting. By combining homomorphic encryption (HE) and secure multi-party computation (MPC) with a new proxy server and optimized techniques, Impala significantly reduces client communication overhead and speeds up inference, making private AI more accessible.
What Problem Does This Paper Address?
The increasing use of deep learning in cloud-based services raises significant privacy concerns. Users want to leverage powerful AI models without revealing their sensitive data to the cloud provider, and conversely, providers want to protect their proprietary models. Existing solutions for private inference fall into two main categories: system-based (like trusted execution environments) which offer weaker security guarantees, and cryptographic techniques (HE and MPC) which provide strong privacy but suffer from prohibitively high communication and computation costs, especially for the client. This paper tackles the challenge of enabling cryptographically secure private inference without placing an excessive burden on the client, particularly in the common client-cloud scenario.
Methods
Impala is a hybrid protocol that combines Homomorphic Encryption (HE) and Secure Multi-Party Computation (MPC) through a novel three-party setup involving the client, a cloud server, and an intermediary proxy. The key innovations include:
- Proxy Server and Key Switching: To offload the client's communication burden, a proxy server is introduced. A low-overhead key switching technique allows the proxy to decrypt results from the cloud without needing the client's secret key, drastically reducing client bandwidth requirements.
- Optimized Garbled Circuits (GC) with Truncated Secret Shares: For non-linear operations (like ReLU and MaxPool), Impala uses MPC via GCs. By truncating secret shares, the size of the GC is reduced, leading to faster evaluation and less communication between the proxy and cloud. This also enables support for fixed-point arithmetic, common in neural networks.
- Sparse HE Convolution: To address the computational bottleneck of HE, Impala leverages the sparsity of convolutional neural network (CNN) kernels. By intelligently mapping sparse kernels to HE operations, the computational complexity is reduced proportionally to the sparsity, leading to significant speedups.
Datasets
The paper evaluates Impala on the MNIST and CIFAR-10 datasets.
Key Insights and Ideas
- Client Burden is the Bottleneck: The paper highlights that previous cryptographic solutions, while offering strong privacy, placed an unacceptable communication and computation load on the client. Impala's core philosophy is to shift this burden to the cloud and proxy.
- The Proxy as a Game Changer: Introducing a semi-trusted proxy, combined with efficient key switching, is crucial for decoupling the client from the heavy lifting of secure computation. This allows for orders-of-magnitude reduction in client bandwidth.
- Truncation for Efficiency: Truncating secret shares for GC evaluation is a clever way to reduce circuit size and communication without sacrificing accuracy for fixed-point networks. This is a significant improvement over previous HE-based approximations for non-linear functions.
- Sparsity is Key for HE Performance: Exploiting kernel sparsity in CNNs is a practical way to make HE-based convolutions much faster, directly addressing a major performance bottleneck in private deep learning.
Key Results
Impala achieves significant improvements over state-of-the-art methods:
- Client Bandwidth Savings: Over 3500x reduction in client bandwidth compared to Gazelle on CIFAR-10.
- Overall Speedup: Up to 4x speedup in inference time compared to existing solutions.
- Communication Savings: Over 3x bandwidth savings overall.
- Accuracy: Maintains accuracy comparable to plaintext inference for fixed-point CNNs.
Limitations and Future Work
- Proxy Assumption: While the proxy is not fully trusted, the protocol relies on the assumption that the proxy and cloud do not collude.
- Proxy-Cloud Communication: While client communication is drastically reduced, the communication between the proxy and cloud can still be substantial.
- Future Work: The paper suggests exploring further optimizations for HE convolution and GC evaluation, as well as investigating more robust threat models. The authors also note that deeper models and larger datasets would primarily impact the cloud and proxy, not the client, indicating Impala's scalability for resource-constrained clients.
Summary updated