Scaling up Differentially Private Deep Learning with Fast Per-Example Gradient Clipping
Authors:
Open Access
- 9 November 2020
- journal article
- research article
- Published by Privacy Enhancing Technologies Symposium Advisory Board in Proceedings on Privacy Enhancing Technologies
- Vol. 2021 (1) , 128-144
Abstract
Recent work on Renyi Differential Privacy has shown the feasibility of applying differential privacy to deep learning tasks. Despite their promise, however, differentially private deep networks often lag far behind their non-private counterparts in accuracy, showing the need for more research in model architectures, optimizers, etc. One of the barriers to this expanded research is the training time — often orders of magnitude larger than training non-private networks. The reason for this slowdown is a crucial privacy-related step called “per-example gradient clipping” whose naive implementation undoes the benefits of batch training with GPUs. By analyzing the back-propagation equations we derive new methods for per-example gradient clipping that are compatible with auto-differeniation (e.g., in Py-Torch and TensorFlow) and provide better GPU utilization. Our implementation in PyTorch showed significant training speed-ups (by factors of 54x - 94x for training various models with batch sizes of 128). These techniques work for a variety of architectural choices including convolutional layers, recurrent networks, attention, residual blocks, etc.Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- Efficient Private ERM for Smooth Objectives2017
- Privacy-preserving generative deep neural networks support clinical data sharingbioRxiv, 2017
- Membership Inference Attacks Against Machine Learning Models2017
- Deep Learning with Differential Privacy2016
- Deep Residual Learning for Image Recognition2016
- Privacy-Preserving Deep Learning2015
- Large-Scale Machine Learning with Stochastic Gradient Descent2010
- Our Data, Ourselves: Privacy Via Distributed Noise Generation2006
- Calibrating Noise to Sensitivity in Private Data Analysis2006
- A Stochastic Approximation MethodThe Annals of Mathematical Statistics, 1951