Differentially Private Non-convex Learning for Multi-layer Neural Networks

Hanpu Shen, Cheng-Long Wang, Zihang Xiang, Yiming Ying, Di WangarXiv 2023

Abstract

This paper addresses the challenge of Differentially Private (DP) stochastic optimization for multi-layer fully connected neural networks. While private convex optimization is well-understood, the non-convex landscape of deep learning has lacked rigorous utility guarantees regarding excess population risk. We provide a theoretical framework that progresses from Generalized Linear Models (GLMs) to multi-layer networks. By leveraging convex surrogate losses and Neural Tangent Kernel (NTK) theory, we establish the first excess population risk bounds for DP-SGD in deep networks. Our findings demonstrate that for well-specified models, utility can remain invariant to data dimensionality, providing a crucial bridge between DP theory and deep learning practice.

Introduction

Differential Privacy (DP) is the gold standard for protecting individual privacy in machine learning, yet its application to non-convex optimization remains a "wild west" of theoretical uncertainty. Most existing research on DP neural networks focuses on reaching stationary points—where the gradient is zero—but fails to quantify the excess population risk, which measures how close a model is to the global optimum.

This research provides a much-needed theoretical foundation for this problem. By analyzing the dynamics of fully connected networks through the lens of linearization and surrogate losses, the authors offer a comprehensive study of how privacy noise impacts the final utility of deep learning models.

Theoretical Framework

The study decomposes the problem into three stages of increasing architectural complexity:

1. Non-convex Generalized Linear Models (GLMs)

The analysis begins with models lacking hidden layers. The authors introduce a convex surrogate loss function to approximate the non-convex population risk. This allows the use of modified Phased SGD to achieve privacy. A significant finding in this stage is that for "well-specified" models (where data follows a specific noisy structure), the private error is independent of the data's dimensionality ($d$), a major advantage for high-dimensional tasks.

2. Two-Layer Networks

The framework extends to networks with one hidden layer using sigmoid or ReLU activations. By treating the hidden layer as a high-dimensional feature map within a Reproducing Kernel Hilbert Space (RKHS), the authors provide utility guarantees for these non-convex structures in well-specified scenarios.

3. Multi-layer Networks and DP-SGD

For deep, fully connected networks, the authors analyze the standard DP-SGD algorithm. To handle the non-convexity, they utilize Neural Tangent Kernel (NTK) theory, which suggests that very wide neural networks behave like linear models during training. This linearization allows the decomposition of excess population risk into three parts:

  • Convergence Error: The speed at which SGD settles.
  • Approximation Error: How well the NTK model represents the actual network.
  • Privacy Error: The utility cost of the noise added for DP.

Key Insights and Results

  • Dimension Independence: In well-specified models, the excess population risk bound is approximately $\tilde{O}(\frac{1}{\sqrt{n}} + \frac{\sqrt{\theta}}{n\epsilon})$, where $\theta$ is the rank of the data matrix. This suggests that privacy does not necessarily scale poorly with the number of features.
  • The Agnostic Penalty: When models are "misspecified" (the agnostic setting), the sample complexity must depend linearly on the dimension $d$, highlighting the importance of model fit in private learning.
  • Clipping and Utility: The research suggests that the gradient clipping threshold ($C$) used in DP-SGD does not inherently destroy utility, provided the learning rate is appropriately adjusted.
  • Empirical Validation: Using the MNIST dataset, the authors demonstrated that as network width ($m$) increases, the approximation error drops toward zero, validating the use of NTK theory for analyzing private deep networks.

Limitations and Future Work

A primary remaining hurdle is the "Overparameterization Paradox." Current theoretical guarantees require the sample size ($n$) to be larger than the network width ($m$), whereas modern deep learning typically operates where $m \gg n$. Additionally, the algorithms proposed for two-layer ReLU networks are currently computationally inefficient. Future research should focus on removing the dependency on the total number of weights in utility bounds, potentially by assuming low-rank gradients or restricted Lipschitz continuity.

Summary updated

Abstract

This paper focuses on the problem of Differentially Private Stochastic Optimization for (multi-layer) fully connected neural networks with a single output node. In the first part, we examine cases with no hidden nodes, specifically focusing on Generalized Linear Models (GLMs). We investigate the well-specific model where the random noise possesses a zero mean, and the link function is both bounded and Lipschitz continuous. We propose several algorithms and our analysis demonstrates the feasibility of achieving an excess population risk that remains invariant to the data dimension. We also delve into the scenario involving the ReLU link function, and our findings mirror those of the bounded link function. We conclude this section by contrasting well-specified and misspecified models, using ReLU regression as a representative example. In the second part of the paper, we extend our ideas to two-layer neural networks with sigmoid or ReLU activation functions in the well-specified model. In the third part, we study the theoretical guarantees of DP-SGD in Abadi et al. (2016) for fully connected multi-layer neural networks. By utilizing recent advances in Neural Tangent Kernel theory, we provide the first excess population risk when both the sample size and the width of the network are sufficiently large. Additionally, we discuss the role of some parameters in DP-SGD regarding their utility, both theoretically and empirically.
BibTeX
@misc{shen2023differentially,
  author = {Hanpu Shen and Cheng-Long Wang and Zihang Xiang and Yiming Ying and Di Wang},
  title = {{Differentially Private Non-convex Learning for Multi-layer Neural Networks}},
  year = {2023},
  eprint = {2310.08425},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.08425},
}
Figure