TAN without a burn: Scaling Laws of DP-SGD

Tom Sander, Pierre Stock, Alexandre Sablayrolles · DOI

Training deep neural networks with Differential Privacy (DP) has traditionally been a "rich person's game." Achieving competitive accuracy typically requires massive batch sizes and an immense number of training steps, making hyperparameter tuning—the cornerstone of deep learning progress—prohibitively expensive.

In their paper, "TAN Without a Burn," researchers from Meta AI introduce a method to bypass these computational barriers. By identifying the Total Amount of Noise (TAN) as a fundamental scaling law, they demonstrate how to perform hyperparameter searches at a fraction of the cost while still achieving state-of-the-art (SOTA) results.

The Computational Bottleneck of Private Training

Standard DP-SGD protects individual data points by adding Gaussian noise to gradients. To maintain a low "privacy budget" ($\epsilon$) without sacrificing accuracy, practitioners often resort to "mega-batches" (millions of samples) and extended training iterations.

This creates a severe bottleneck: if a single training run requires days on a massive GPU cluster, exhaustive grid searches for optimal learning rates or data augmentation strategies become impossible. The field has been constrained by a "privacy-accuracy-compute" trade-off that favors only those with the largest compute resources.

The TAN Heuristic and the Privacy Wall

The core innovation of this work is the formalization of TAN (Total Amount of Noise). The authors identify a "large noise regime" (specifically when the noise multiplier $\sigma > 2$) where the privacy budget $\epsilon$ behaves predictably.

The Privacy Wall: Privacy budget $\epsilon$ stabilizes for noise multipliers $\sigma > 2$.

As shown in the figure above, there is a phase transition in privacy accounting. When noise $\sigma$ is low ($< 0.5$), $\epsilon$ explodes. However, once $\sigma$ exceeds 2, $\epsilon$ becomes essentially a function of the signal-to-noise ratio across the entire training process, independent of the specific number of steps. This "Privacy Wall" provides a sweet spot for efficient private training.

Simulation Strategy and Scaling Results

By keeping the TAN constant, researchers can swap batch size for noise multiplier without altering the underlying training dynamics or the privacy budget. This allows for a Simulation Strategy: instead of tuning hyperparameters at a massive batch size (e.g., 16,384), they tune them at a tiny batch size (e.g., 128).

128x Compute Reduction: Hyperparameter search at small batch sizes accurately predicts large-scale performance.

Once the best hyperparameters are identified at this "low compute" scale, they can be extrapolated to a single "high compute" validation run. This approach yielded a 128x speedup in hyperparameter searching. A search that would have taken months of GPU time was completed in less than a day on a single GPU, while achieving a 39.2% top-1 accuracy on ImageNet at $\epsilon=8$—a 9-point improvement over previous SOTA.

Key Architectural Insights

Beyond scaling laws, the authors highlight several critical factors for DP-SGD success:

  • Architecture Choice: Vision Transformers (ViTs) struggle more than convolutional networks under DP-SGD due to a lack of inductive bias, making it harder to learn structures from noisy signals.
  • Normalization Order: Because BatchNorm leaks privacy, the authors recommend "Pre-activation" (normalization before activation), which proves significantly more robust to noisy gradients.
  • Data Scaling: Doubling the dataset size while maintaining TAN doesn't just improve accuracy; it effectively halves the privacy budget $\epsilon$.

Conclusion

"TAN Without a Burn" democratizes DP-SGD research by providing a predictable framework for scaling. While future work is needed to account for the privacy leakage of the hyperparameter search itself and to bridge the gap to non-convex theoretical settings, these scaling laws represent a major step toward making private deep learning practical and accessible.

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