Lune

NeurIPS2021Top-tier venue

Enabling Fast Differentially Private SGD via Just-in-Time Compilation and Vectorization

Pranav Subramani, Nicholas Vadivelu, Gautam Kamath

Abstract

A common pain point in differentially private machine learning is the significant runtime overhead incurred when executing Differentially Private Stochastic Gradient Descent (DPSGD), which may be as large as two orders of magnitude. We thoroughly demonstrate that by exploiting powerful language primitives, including vectorization, just-in-time compilation, and static graph optimization, one can dramatically reduce these overheads, in many cases nearly matching the best non-private running times. These gains are realized in two frameworks: JAX and TensorFlow. JAX provides rich support for these primitives as core features of the language through the XLA compiler. We also rebuild core parts of TensorFlow Privacy, integrating features from TensorFlow 2 as well as XLA compilation, granting significant memory and runtime improvements over the current release version. These approaches allow us to achieve up to 50x speedups in comparison to the best alternatives. Our code is available at this https URL.

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.

26 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

  • Fast and Memory Efficient Differentially Private-SGD via JL Projections cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
  • Deep Learning with Label Differential Privacy cites BackPACK: Packing more into Backprop
  • Deep Learning with Label Differential Privacy cites Tempered Sigmoid Activations for Deep Learning with Differential Privacy
  • Differentially Private Optimization on Large Model at Small Cost cites Fast and Memory Efficient Differentially Private-SGD via JL Projections
  • Differentially Private Optimization on Large Model at Small Cost cites Large Language Models Can Be Strong Differentially Private Learners
  • Large Language Models Can Be Strong Differentially Private Learners cites Fast and Memory Efficient Differentially Private-SGD via JL Projections
  • 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 Differentially Private Fine-tuning of Language Models
  • Differentially Private Fine-tuning of Language Models cites Large Language Models Can Be Strong Differentially Private Learners
  • Differentially Private Fine-tuning of Language Models cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
  • Tempered Sigmoid Activations for Deep Learning with Differential Privacy cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers26

  1. Large Language Models Can Be Strong Differentially Private LearnersXuechen Li, Florian Tramèr, Percy Liang, Tatsunori HashimotoICLR 2022 · 502 citations
  2. Differentially Private Fine-tuning of Language ModelsDa Yu, Saurabh Naik, Arturs Backurs, Sivakanth Gopi et al.ICLR 2022 · 494 citations
  3. Deep Learning with Label Differential PrivacyBadih Ghazi, Noah Golowich, Ravi Kumar, Pasin Manurangsi et al.NeurIPS 2021 · 193 citations
  4. Differentially Private Optimization on Large Model at Small CostZhiqi Bu, Yu-Xiang Wang, Sheng Zha, George KarypisICML 2023 · 85 citations
  5. On Privacy and Personalization in Cross-Silo Federated LearningKen Ziyu Liu, Shengyuan Hu, Steven Wu, Virginia SmithNeurIPS 2022 · 78 citations

Builds on5

  1. 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
  2. Tempered Sigmoid Activations for Deep Learning with Differential PrivacyNicolas Papernot, Abhradeep Thakurta, Shuang Song, Steve Chien et al.AAAI 2021 · 210 citations
  3. Towards Practical Differentially Private Convex OptimizationRoger Iyengar, Joseph P. Near, Dawn Song, Om Thakkar et al.S&P 2019 · 201 citations
  4. BackPACK: Packing more into BackpropFelix Dangel, Frederik Kunstner, Philipp HennigICLR 2020 · 114 citations
  5. Fast and Memory Efficient Differentially Private-SGD via JL ProjectionsZhiqi Bu, Sivakanth Gopi, Janardhan Kulkarni, Yin Tat Lee et al.NeurIPS 2021 · 49 citations

Related papers

  1. Large-Scale Differentially Private BERTRohan Anil, Badih Ghazi, Vineet Gupta, Ravi Kumar et al.EMNLP Findings 2022 · 68 citations
  2. DiVa: An Accelerator for Differentially Private Machine LearningBeomsik Park, Ranggi Hwang, Dongho Yoon, Yoonhyuk Choi et al.MICRO 2022 · 12 citations
  3. A Unified Fast Gradient Clipping Framework for DP-SGDWeiwei Kong, Andrés Muñoz MedinaNeurIPS 2023 · 9 citations
  4. Private, Efficient, and Accurate: Protecting Models Trained by Multi-party Learning with Differential PrivacyWenqiang Ruan, Mingxin Xu, Wenjing Fang, Li Wang et al.S&P 2023
  5. Exploring the Limits of Differentially Private Deep Learning with Group-wise ClippingJiyan He, Xuechen Li, Da Yu, Huishuai Zhang et al.ICLR 2023 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines