Gazelle: A Low Latency Framework for Secure Neural Network Inference
arXiv:1801.05507
Abstract
The growing popularity of cloud-based machine learning raises a natural question about the privacy guarantees that can be provided in such a setting. Our work tackles this problem in the context where a client wishes to classify private images using a convolutional neural network (CNN) trained by a server. Our goal is to build efficient protocols whereby the client can acquire the classification result without revealing their input to the server, while guaranteeing the privacy of the server's neural network. To this end, we design Gazelle, a scalable and low-latency system for secure neural network inference, using an intricate combination of homomorphic encryption and traditional two-party computation techniques (such as garbled circuits). Gazelle makes three contributions. First, we design the Gazelle homomorphic encryption library which provides fast algorithms for basic homomorphic operations such as SIMD (single instruction multiple data) addition, SIMD multiplication and ciphertext permutation. Second, we implement the Gazelle homomorphic linear algebra kernels which map neural network layers to optimized homomorphic matrix-vector multiplication and convolution routines. Third, we design optimized encryption switching protocols which seamlessly convert between homomorphic and garbled circuit encodings to enable implementation of complete neural network inference. We evaluate our protocols on benchmark neural networks trained on the MNIST and CIFAR-10 datasets and show that Gazelle outperforms the best existing systems such as MiniONN (ACM CCS 2017) by 20 times and Chameleon (Crypto Eprint 2017/1164) by 30 times in online runtime. Similarly when compared with fully homomorphic approaches like CryptoNets (ICML 2016) we demonstrate three orders of magnitude faster online run-time.
References in corpus (1)
Cited by in corpus (18)
- Slalom: Fast, Verifiable and Private Execution of Neural Networks in Trusted Hardware
- Secure Evaluation of Quantized Neural Networks
- CrypTen: Secure Multi-Party Computation Meets Machine Learning
- TAPAS: Tricks to Accelerate (encrypted) Prediction As a Service
- No Peek: A Survey of private distributed deep learning
- secureTF: A Secure TensorFlow Framework
- Adversarial Neural Network Inversion via Auxiliary Knowledge Alignment
- Fusion: Efficient and Secure Inference Resilient to Malicious Servers
- SPEED: Secure, PrivatE, and Efficient Deep learning
- Helen: Maliciously Secure Coopetitive Learning for Linear Models
- MOBIUS: Model-Oblivious Binarized Neural Networks
- FALCON: A Fourier Transform Based Approach for Fast and Secure Convolutional Neural Network Predictions
- Privacy-Preserving Multi-Party Contextual Bandits
- Data-driven control on encrypted data
- BUNET: Blind Medical Image Segmentation Based on Secure UNET
- ArchNet: Data Hiding Model in Distributed Machine Learning System
- Privacy Aware Person Detection in Surveillance Data
- Fast Plaintext-Ciphertext Matrix Multiplication from Additively Homomorphic Encryption