Bypassing the Ambient Dimension: Private SGD with Gradient Subspace Identification

Yingxue Zhou, Steven Wu, Arindam Banerjee

Overview

Standard differentially private training (DP-SGD) suffers from a "curse of dimensionality" where the noise added to protect privacy scales with the number of model parameters. This paper introduces Projected DP-SGD (PDP-SGD), which leverages the fact that gradients in deep networks often reside in a low-dimensional subspace. By using a tiny public dataset to identify this subspace and projecting noisy gradients onto it, the authors significantly improve model accuracy in high-privacy regimes.

The Curse of Dimensionality in DP-SGD

Differential Privacy (DP) is the gold standard for training machine learning models on sensitive data. The most common algorithm, DP-SGD, works by clipping gradients and adding Gaussian noise to them. However, there is a major catch: the amount of noise needed to maintain privacy scales with the ambient dimension ($p$)—the total number of parameters in the model.

In the era of over-parameterized deep learning, where models have millions or billions of parameters ($p \gg n$, where $n$ is the number of samples), this noise becomes a "noise floor" that destroys utility. Existing theoretical lower bounds suggested this dependence on $p$ was inevitable. The authors of this paper set out to circumvent this limitation by exploiting the inherent structure of neural network gradients.

Projected DP-SGD (PDP-SGD)

The core idea behind the authors' approach is Gradient Subspace Identification. Empirical evidence suggests that during training, stochastic gradients don't wander aimlessly through the $p$-dimensional space; they mostly stay within a much smaller, low-dimensional subspace.

Eigenvalues of the gradient second-moment matrix for standard SGD, demonstrating that gradients predominantly reside in a low-dimensional subspace.

To capitalize on this, the authors propose a two-step modular framework:

  1. Subspace Identification: The algorithm uses a small auxiliary public dataset (which does not require privacy protections) to estimate the top $k$ eigenvectors of the gradient second-moment matrix. This defines a $k$-dimensional "active" subspace where $k \ll p$.
  2. Projected DP-SGD: During private training, the algorithm computes the gradient on the private data, adds noise, and then projects that noisy gradient onto the $k$-dimensional subspace identified in step 1.

By projecting, the algorithm effectively filters out the noise in the $p-k$ dimensions that don't contribute much to learning, drastically reducing the total noise variance while preserving the useful signal.

Theoretical Insights

  • The Logarithmic Advantage: The most striking theoretical insight is that the number of public samples needed to identify the subspace only grows logarithmically with the model dimension $p$. This means the method is theoretically well-suited for massive models.
  • Public Data as a Compass: The public data doesn't need to be large enough to train the model itself. It only needs to be "similar enough" to the private data to point the gradients in the right general direction.
  • Generic Chaining for Privacy: The authors used advanced probabilistic tools (Talagrand’s generic chaining) to prove that reusing the same public dataset across multiple training iterations doesn't compromise the "closeness" of the identified subspace to the true population subspace.

Empirical Evaluation and Results

The authors evaluated their method on standard benchmarks, including MNIST and Fashion MNIST. To simulate a realistic scenario, they used a private training set of 10,000 samples and a tiny public dataset of only 100–150 samples. They demonstrated that even such a small public "hint" is enough to identify a useful subspace.

  • Superior Accuracy: In high-privacy regimes (low $\epsilon$, which corresponds to a small privacy "budget"), PDP-SGD significantly outperformed standard DP-SGD. For example, on MNIST with $\epsilon \approx 0.23$, PDP-SGD maintained high accuracy while standard DP-SGD's performance degraded significantly.
  • Noise Reduction: The projection step effectively reduced the error rate by a factor related to $p/k$. Since $p$ (parameters) is often $\approx 25,000$ in their tests and $k$ (subspace) was set to 50–70, the noise reduction is substantial.
  • Failure of Random Projections: The authors tested a version using random Gaussian projections (RPDP-SGD) and found it performed poorly. This confirms that the success of PDP-SGD relies specifically on identifying the correct data-driven subspace.

Limitations and Future Work

  • Public Data Dependency: The method requires access to a public dataset from the same distribution as the private data. While often feasible (e.g., using non-sensitive medical images to help train on a private medical database), such data isn't always available.
  • The "Eigen-gap": The theoretical performance depends on the "eigen-gap"—how much the top $k$ gradient directions stand out from the rest. If gradients are very "flat" or spread out across many dimensions, the benefits of projection diminish.
  • Computational Overhead: Computing the top eigenvectors (using methods like Lanczos) adds computational cost. While the authors showed that updating the subspace infrequently helps, it remains an additional step compared to standard SGD.
  • Scaling to Large Models: While the theory suggests logarithmic scaling, the empirical tests were limited to relatively small CNNs on MNIST/Fashion MNIST. Testing on large-scale Transformers or ImageNet remains an area for future exploration.

Summary updated

BibTeX
@inproceedings{zhou2021bypassing,
  author = {Yingxue Zhou and Steven Wu and Arindam Banerjee},
  title = {{Bypassing the Ambient Dimension: Private SGD with Gradient Subspace Identification}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=7dpmlkBuJFC},
}
Figure