TAN Without a Burn: Scaling Laws of DP-SGD

Tom Sander, Pierre Stock, Alexandre Sablayrolles

Training deep neural networks with Differential Privacy (DP) usually feels like a zero-sum game between your privacy guarantees and your computational budget. To achieve competitive accuracy, current state-of-the-art (SOTA) methods for DP-SGD (Differentially Private Stochastic Gradient Descent) rely on massive batch sizes and a staggering number of training steps. When a single "gold-standard" run requires 32 A100 GPUs running for four days, hyperparameter tuning becomes a pipe dream for most researchers.

In their paper "TAN Without a Burn," Sander et al. introduce a method to bypass this "compute burn." By identifying a scaling law based on the Total Amount of Noise (TAN), they demonstrate how to find optimal hyperparameters at a 100x lower compute cost, ultimately using those insights to shatter the previous SOTA on ImageNet.

TL;DR

The authors reveal that in the "large noise" regime ($\sigma > 2$), the privacy budget ($\epsilon$) depends almost exclusively on the Total Amount of Noise (TAN) injected during training. This insight allows researchers to simulate expensive, large-batch private training using cheap, small-batch runs. The result? A new SOTA of 39.2% top-1 accuracy on ImageNet ($\epsilon=8$) achieved with 128x less compute for hyperparameter tuning.

Simulating large-batch performance using low-compute small-batch hyperparameter search.

The Computational Bottleneck of DP-SGD

Standard DP-SGD works by clipping individual gradients and adding Gaussian noise. To prevent this noise from overpowering the gradient signal, practitioners use "mega-batches" (sometimes millions of samples) to average out the perturbations.

However, this creates a massive computational bottleneck. Tuning learning rates, augmentation strategies, or architectures becomes prohibitively expensive. Furthermore, the relationship between batch size, noise level, and the resulting privacy guarantee ($\epsilon$) is non-linear and unintuitive, making it difficult to predict how a model will perform when training parameters are altered.

Methodology: Formalizing TAN

The core contribution of this work is the formalization of TAN (Total Amount of Noise).

  1. The TAN Heuristic: Using Rényi Differential Privacy (RDP) tools, the authors observe a "phase transition." When the noise multiplier $\sigma$ is greater than 2, the privacy budget $\epsilon$ becomes a direct function of the signal-to-noise ratio $\eta$, where $\eta^2 \propto \frac{q^2 S}{\sigma^2}$ ($q$ is the sampling rate, $S$ is the number of steps).
  2. Decoupling: They successfully decouple the privacy accounting (how much $\epsilon$ is spent) from the training dynamics (how the model learns).
  3. Scaling Laws: By keeping the number of steps ($S$) and the per-step signal-to-noise ratio constant, they can "shrink" a massive training run into a small one. For example, simulating a batch size of 16,384 using a batch size of 128 is possible by scaling the noise and learning rate accordingly, keeping the TAN identical.

Key Insights and Discoveries

  • The "Privacy Wall": There is a literal wall in the privacy-utility trade-off. If $\sigma < 0.5$, $\epsilon$ explodes. If $\sigma > 2$, $\epsilon$ stabilizes and follows the TAN scaling law. Most SOTA private models naturally land in this "stable" zone, which the authors exploit.
The 'Privacy Wall' where epsilon stabilizes for sigma > 2.
  • Predictable Performance: On ImageNet, accuracy decreases (log) linearly with batch size when TAN is held constant. This means practitioners can run a few cheap experiments at small batch sizes and accurately plot a line to predict performance at massive batch sizes.
  • Inductive Bias Wins: In the high-noise regime of DP-SGD, Normalizer-Free ResNets (NF-ResNets) significantly outperform Vision Transformers (ViTs). ViTs possess less inductive bias and struggle to learn image structure when the gradient signal is buried in noise.
  • Augmentation Multiplicity (AugMult): Averaging gradients from multiple augmentations of the same image before clipping acts as a "cheat code" for DP-SGD, providing a much cleaner gradient signal for the same privacy cost.

Key Results

  • Compute Efficiency: The authors performed hyperparameter searches on ImageNet at a batch size of 128 instead of 16,384. This resulted in a 128x reduction in compute, turning a 4-day multi-GPU job into a sub-1-day single-GPU job.
  • New SOTA: By using the hyperparameters found via TAN scaling, they achieved 39.2% top-1 accuracy on ImageNet for $\epsilon=8$. This is a massive +9 point gain over the previously reported SOTA and a +7 point gain over the authors' own reproduction of previous methods.
  • Data Scaling: Doubling the training data (while keeping TAN constant) roughly halves the privacy budget $\epsilon$ while still improving accuracy—a rare "win-win" in the DP landscape.

Limitations and Future Work

  • Non-Private HP Search: Like most DP research, this paper assumes that the hyperparameter search itself doesn't "count" against the privacy budget. While standard practice, this remains a theoretical gray area in "pure" differential privacy.
  • Stochasticity at Small Batches: Models sometimes perform better at small batch sizes than the scaling law predicts. The authors hypothesize this is due to the beneficial "noise" of SGD (stochasticity), which isn't fully accounted for in the TAN framework.
  • Convex vs. Non-Convex: While empirical results are strong for deep learning (non-convex), the theoretical convergence proofs for TAN scaling are currently more robust for convex settings. Extending the theory to better capture the dynamics of non-convex DNN training is a clear next step.

Summary updated

BibTeX
@inproceedings{sander2023tan,
  author = {Tom Sander and Pierre Stock and Alexandre Sablayrolles},
  title = {{TAN Without a Burn: Scaling Laws of DP-SGD}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=DIkGgI9baJ},
}
Figure