Differentially private training of residual networks with scale normalisation

Helena Klause, Alexander Ziller, Daniel Rueckert, Kerstin Hammernik, Georgios KaissisarXiv 2022 · DOI

Abstract

Training deep learning models with Differential Privacy (DP) typically incurs a substantial "privacy-utility trade-off." This work identifies "scale mixing" in Residual Networks (ResNets) as a key factor hindering performance under Differentially Private Stochastic Gradient Descent (DP-SGD). We introduce ScaleNorm, a minimal architectural modification that normalizes the sum of the convolutional and residual paths. Our results show that ScaleNorm stabilizes activation distributions and flattens the loss landscape, leading to a state-of-the-art 82.5% top-1 accuracy on CIFAR-10 when training from scratch.

Introduction

Differentially Private Stochastic Gradient Descent (DP-SGD) provides rigorous privacy guarantees but often at the cost of model accuracy. In ResNets, a specific bottleneck arises from the interaction between the normalized convolutional path and the unnormalized shortcut (residual) path. This "scale mixing" leads to skewed activation distributions, which are further destabilized by the noise injection inherent in DP-SGD.

Methodology: ScaleNorm

To address scale mixing, we propose ScaleNorm. In a standard residual block, the output is defined as $V_A = \text{Activation}(\text{ConvPath}(V_{in}) + V_{in})$. ScaleNorm inserts an additional normalization layer—specifically Group Normalization, due to its compatibility with DP-SGD—immediately after the addition operation but before the final activation.

Comparison of standard residual block (A) and the proposed ScaleNorm block (B).

This modification ensures that the signal is "reset" at every block, preventing scale mismatches from compounding through the network's depth. We evaluated this approach using ResNet-9 and WideResNet-16/4 architectures, incorporating training techniques such as augmentation multiplicity and weight averaging to maximize performance.

Analysis of Activation Distributions

The primary benefit of ScaleNorm is its ability to force activations ($V_A$) to be more symmetric and centered. Without this normalization, the distribution of values following the residual addition becomes increasingly skewed, making optimization difficult for the noisy DP-SGD optimizer.

Activation distributions for the convolutional path ($V_F$), residual path ($V_R$), and combined output ($V_A$) with and without ScaleNorm.

Furthermore, Hessian analysis reveals that ScaleNorm significantly reduces the Hessian trace and maximum eigenvalues. This indicates a flatter, smoother loss landscape, which is more conducive to convergence when gradients are clipped and noisy.

Experimental Results

ScaleNorm consistently outperformed baseline ResNets across multiple benchmarks and privacy budgets ($\epsilon$):

  • CIFAR-10: Achieved a new state-of-the-art 82.5% accuracy at $\epsilon = 8.0$ using a ScaleWRN-16/4.
  • ImageNette: Reached 67.1% accuracy at $\epsilon = 9.88$, compared to 65.0% for the baseline.
  • Tiny ImageNet: Demonstrated superior performance in Top-5 accuracy, reaching 50.8% at $\epsilon = 70$.

Notably, the performance gain from ScaleNorm is much more pronounced in private training than in non-private settings, suggesting it specifically addresses the challenges posed by DP-SGD noise.

Conclusion

ScaleNorm provides a simple yet effective solution to the scale mixing problem in private ResNet training. By stabilizing internal distributions and smoothing the loss landscape, it enables deeper networks to reach higher accuracies within strict privacy budgets. Future work will explore the applicability of similar normalization strategies in other architectures like Vision Transformers.

Summary updated

BibTeX
@misc{klause2022differentially,
  author = {Helena Klause and Alexander Ziller and Daniel Rueckert and Kerstin Hammernik and Georgios Kaissis},
  title = {{Differentially private training of residual networks with scale normalisation}},
  year = {2022},
  eprint = {2203.00324},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.00324},
}
Figure