Lune

NeurIPS2021Top-tier venue

Fast and Memory Efficient Differentially Private-SGD via JL Projections

Zhiqi Bu, Sivakanth Gopi, Janardhan Kulkarni, Yin Tat Lee, Judy Hanwen Shen, Uthaipon Tantipongpipat

Abstract

Differentially Private-SGD (DP-SGD) of Abadi et al. [2016] and its variations are the only known algorithms for private training of large scale neural networks. This algorithm requires computation of per-sample gradients norms which is extremely slow and memory intensive in practice. In this paper, we present a new framework to design differentially private optimizers called DP-SGD-JL and DP-Adam-JL. Our approach uses Johnson-Lindenstrauss (JL) projections to quickly approximate the per-sample gradient norms without exactly computing them, thus making the training time and memory requirements of our optimizers closer to that of their non-DP versions. Unlike previous attempts to make DP-SGD faster which work only on a subset of network architectures or use compiler techniques, we propose an algorithmic solution which works for any network in a black-box manner which is the main contribution of this paper. To illustrate this, on IMDb dataset, we train a Recurrent Neural Network (RNN) to achieve good privacy-vs-accuracy tradeoff, while being significantly faster than DP-SGD and with a similar memory footprint as non-private SGD. The privacy analysis of our algorithms is more involved than DP-SGD, we use the recently proposed f -DP framework of Dong et al. [2019] to prove privacy.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

14 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Enabling Fast Differentially Private SGD via Just-in-Time Compilation and Vectorization cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
  • Numerical Composition of Differential Privacy cites Deep Learning with Differential Privacy
  • Membership Inference Attacks Against Machine Learning Models cites Deep Learning with Differential Privacy
  • Differentially Private Optimization on Large Model at Small Cost cites Enabling Fast Differentially Private SGD via Just-in-Time Compilation and Vectorization
  • Differentially Private Optimization on Large Model at Small Cost cites Numerical Composition of Differential Privacy
  • Differentially Private Optimization on Large Model at Small Cost cites Membership Inference Attacks Against Machine Learning Models
  • Differentially Private Optimization on Large Model at Small Cost cites Large Language Models Can Be Strong Differentially Private Learners
  • Differentially Private Optimization on Large Model at Small Cost cites Scalable and Efficient Training of Large Convolutional Neural Networks with Differential Privacy
  • Differentially Private Optimization on Large Model at Small Cost cites Deep Learning with Differential Privacy
  • The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks cites Membership Inference Attacks Against Machine Learning Models
  • The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks cites Deep Learning with Differential Privacy
  • Large Language Models Can Be Strong Differentially Private Learners cites Enabling Fast Differentially Private SGD via Just-in-Time Compilation and Vectorization
  • Large Language Models Can Be Strong Differentially Private Learners cites Numerical Composition of Differential Privacy
  • Large Language Models Can Be Strong Differentially Private Learners cites Membership Inference Attacks Against Machine Learning Models
  • Large Language Models Can Be Strong Differentially Private Learners cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
  • Large Language Models Can Be Strong Differentially Private Learners cites Deep Learning with Differential Privacy
  • Scalable and Efficient Training of Large Convolutional Neural Networks with Differential Privacy cites Enabling Fast Differentially Private SGD via Just-in-Time Compilation and Vectorization
  • Scalable and Efficient Training of Large Convolutional Neural Networks with Differential Privacy cites Large Language Models Can Be Strong Differentially Private Learners
  • Scalable and Efficient Training of Large Convolutional Neural Networks with Differential Privacy cites Deep Learning with Differential Privacy
  • Differentially Private Learning with Adaptive Clipping cites Membership Inference Attacks Against Machine Learning Models
  • Differentially Private Learning with Adaptive Clipping cites Deep Learning with Differential Privacy
  • Understanding Gradient Clipping in Private SGD: A Geometric Perspective cites Deep Learning with Differential Privacy
  • Understanding Gradient Clipping in Private SGD: A Geometric Perspective cites Differentially Private Learning with Adaptive Clipping
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers14

  1. Large Language Models Can Be Strong Differentially Private LearnersXuechen Li, Florian Tramèr, Percy Liang, Tatsunori HashimotoICLR 2022 · 502 citations
  2. Numerical Composition of Differential PrivacySivakanth Gopi, Yin Tat Lee, Lukas WutschitzNeurIPS 2021 · 259 citations
  3. Enabling Fast Differentially Private SGD via Just-in-Time Compilation and VectorizationPranav Subramani, Nicholas Vadivelu, Gautam KamathNeurIPS 2021 · 96 citations
  4. Differentially Private Optimization on Large Model at Small CostZhiqi Bu, Yu-Xiang Wang, Sheng Zha, George KarypisICML 2023 · 85 citations
  5. Scalable and Efficient Training of Large Convolutional Neural Networks with Differential PrivacyZhiqi Bu, Jialin Mao, Shiyun XuNeurIPS 2022 · 70 citations

Builds on10

  1. Deep Learning with Differential PrivacyMartín Abadi, Andy Chu, Ian J. Goodfellow, H. Brendan McMahan et al.CCS 2016 · 7,620 citations
  2. Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 citations
  3. The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural NetworksNicholas Carlini, Chang Liu, Úlfar Erlingsson, Jernej Kos et al.USENIX Security 2019 · 1,386 citations
  4. Differentially Private Learning with Adaptive ClippingGalen Andrew, Om Thakkar, Brendan McMahan, Swaroop RamaswamyNeurIPS 2021 · 425 citations
  5. Understanding Gradient Clipping in Private SGD: A Geometric PerspectiveXiangyi Chen, Zhiwei Steven Wu, Mingyi HongNeurIPS 2020 · 254 citations

Related papers

  1. PE-SGD: Differentially Private Deep Learning via Evolution of Gradient Subspace for TextTianyuan Zou, Zinan Lin, Sivakanth Gopi, Yang Liu et al.ICLR 2026
  2. A Unified Fast Gradient Clipping Framework for DP-SGDWeiwei Kong, Andrés Muñoz MedinaNeurIPS 2023 · 9 citations
  3. DiSK: Differentially Private Optimizer with Simplified Kalman Filter for Noise ReductionXinwei Zhang, Zhiqi Bu, Borja Balle, Mingyi Hong et al.ICLR 2025
  4. DPIS: An Enhanced Mechanism for Differentially Private SGD with Importance SamplingJianxin Wei, Ergute Bao, Xiaokui Xiao, Yin YangCCS 2022 · 16 citations
  5. Large Scale Private Learning via Low-rank ReparametrizationDa Yu, Huishuai Zhang, Wei Chen, Jian Yin et al.ICML 2021 · 122 citations
Dusk over the sea between two cliffs drawn in fine vertical lines