Efficient and Scalable Implementation of Differentially Private Deep Learning without Shortcuts
Not on the map. Why?
Abstract (arXiv)
Differentially private stochastic gradient descent (DP-SGD) is the standard algorithm for training machine learning models under differential privacy (DP). The most common DP-SGD privacy accountants rely on Poisson subsampling to ensure the theoretical DP guarantees. Implementing computationally efficient DP-SGD with Poisson subsampling is not trivial, which leads many implementations to taking a shortcut by using computationally faster subsampling. We quantify the computational cost of training deep learning models under DP by implementing and benchmarking efficient methods with the correct Poisson subsampling. We find that using the naive implementation of DP-SGD with Opacus in PyTorch has a throughput between 2.6 and 8 times lower than that of SGD. However, efficient gradient clipping implementations like Ghost Clipping can roughly halve this cost. We propose an alternative computationally efficient implementation of DP-SGD with JAX that uses Poisson subsampling and performs comparably with efficient clipping optimizations based on PyTorch. We study the scaling behavior using up to 80 GPUs and find that DP-SGD scales better than SGD. We share our library at https://github.com/DPBayes/Towards-Efficient-Scalable-Training-DP-DL.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 24 of its 42 references that are in the map. First posted on arXiv 25 Jun 2024.
Builds on
24 of 42 references.
References · 24
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2016Deep Learning with Differential Privacycited by 2,728
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2019Big Transfer (BiT): General Visual Representation Learningcited by 769
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 412
- 2021Differentially Private Fine-tuning of Language Modelscited by 400
- 2021Opacus: User-Friendly Differential Privacy Library in PyTorchcited by 383
- 2022Unlocking High-Accuracy Differentially Private Image Classification through Scalecited by 224
- 2022Reconstructing Training Data with Informed Adversariescited by 148
12 more
- 2020The Discrete Gaussian for Differential Privacycited by 135
- 2022Toward Training at ImageNet Scale with Differential Privacycited by 87
- 2021The Skellam Mechanism for Differentially Private Federated Learningcited by 68
- 2022Differentially Private Optimization on Large Model at Small Costcited by 65
- 2020Enabling Fast Differentially Private SGD via Just-in-Time Compilation and Vectorizationcited by 58
- 2021Natural Language Understanding with Privacy-Preserving BERTcited by 55
- 2022Scalable and Efficient Training of Large Convolutional Neural Networks with Differential Privacycited by 48
- 2024How Private are DP-SGD Implementations?cited by 22
- 2023Unlocking Accuracy and Fairness in Differentially Private Image Classificationcited by 16
- 2024Avoiding Pitfalls for Privacy Accounting of Subsampled Mechanisms under Compositioncited by 13
- 2023On the Efficacy of Differentially Private Few-shot Image Classificationcited by 12
- 2024Subsampling is not Magic: Why Large Batch Sizes Work for Differentially Private Stochastic Optimisationcited by 11
Built on by
Citing papers per year: 2024: 3.
3 papers.