Differentially Private Optimization with Sparse Gradients

Badih Ghazi, Cristóbal A Guzmán, Pritish Kamath, Ravi Kumar, Pasin Manurangsi

Abstract

Training high-dimensional machine learning models with Differential Privacy (DP) often suffers from the "curse of dimensionality," where noise scales with the total parameter count. This paper demonstrates that gradient sparsity—a prevalent feature in large-scale embedding models—can be leveraged to achieve error rates that scale only logarithmically with dimension. The authors introduce novel algorithms for mean estimation and stochastic convex optimization, providing tight upper and lower bounds that make DP practical for massive-scale recommendation and NLP systems.

Introduction: The Dimensionality Barrier in DP

Standard Differential Privacy (DP) mechanisms, such as DP-SGD, typically add noise proportional to the square root of the model dimension ($d$). In modern architectures like recommendation engines or Large Language Models (LLMs), where $d$ can reach billions, this noise often overwhelms the training signal, rendering the resulting models useless.

However, many high-dimensional models exhibit gradient sparsity. For instance, in models using embedding tables, a single training example updates only a tiny fraction of parameters. This paper investigates whether this sparsity can be exploited to design DP optimization algorithms whose performance is nearly independent of the total dimension.

Algorithmic Innovations

The authors propose several techniques to handle sparse data under privacy constraints:

  1. Convex Relaxation of Sparsity: For mean estimation, they utilize a "projection mechanism." By projecting onto an $\ell_1$-ball (a convex relaxation of the sparse set), they achieve computational efficiency while capturing the benefits of sparsity.
  2. Compressed Sensing for DP: Under approximate-DP ($(\varepsilon, \delta)$-DP), the authors employ random linear projections (sketches). This allows the recovery of sparse signals from noisy measurements with error rates depending on the sparsity level $s$ and $\log(d)$, rather than the full dimension $d$.
  3. Bias-Reduced Gradient Estimators: Private estimators are frequently biased, which can lead to divergence in iterative algorithms like SGD. The authors introduce a subsampled bias-reduced gradient estimator using a "telescopic" sum and random batch sizes to cancel out bias while maintaining manageable variance.
  4. Output Perturbation with $\ell_\infty$ Projection: For certain regimes, they solve a regularized problem and add noise to the final output. An $\ell_\infty$-projection step is applied to mitigate high-dimensional noise, leveraging the concentration properties of noise in high dimensions.

Theoretical Results and Bounds

The paper establishes a comprehensive set of convergence rates for various optimization settings. A key finding is the transition between different error regimes based on the amount of available data ($n$).

Comparison of sparse vs. non-sparse upper bounds for various DP settings.

As shown in the table above, the "New Upper bound (sparse)" significantly improves upon standard non-sparse bounds, particularly when the sparsity $s$ is much smaller than the dimension $d$. For example, in the $\varepsilon$-DP setting for Convex ERM, the error rate scales with $(s \ln(d) / \varepsilon n)^{1/3}$, a substantial improvement over dimension-dependent rates.

Furthermore, the authors provide lower bounds to demonstrate the optimality of their proposed algorithms.

The matching (up to logarithmic factors) upper and lower bounds for mean estimation confirm that these algorithms are nearly as good as mathematically possible.

Key Insights

  • Sparsity as a "Silver Bullet": Sparsity allows a transition from "polynomial in $d$" error to "poly-logarithmic in $d$" error, which is critical for the utility of high-dimensional private models.
  • The Bias Challenge: The "telescopic" debiasing technique is identified as a vital component for successfully integrating sparse DP estimators into iterative optimization frameworks.
  • Three Accuracy Regimes: The research identifies three data regimes: a small-data regime with constant error, an intermediate regime where sparsity provides the most benefit, and a large-data regime where the total dimension eventually impacts the rate.

Limitations and Future Directions

While the paper provides a strong theoretical foundation, several areas remain for future exploration:

  • Adaptivity: Current algorithms require prior knowledge of the sparsity level $s$. Developing adaptive algorithms that estimate $s$ on-the-fly is an open challenge.
  • Computational Complexity: Some mechanisms (e.g., the Sparse Exponential Mechanism) are theoretically optimal but computationally inefficient, serving primarily as existence proofs.
  • Non-convex Optimality: While rates for finding near-stationary points in non-convex problems are provided, their optimality remains unproven.
  • Practical Tuning: The bias-reduction techniques introduce new hyperparameters, such as the geometric distribution parameters for batch sizes, which may require careful tuning in real-world applications.

This summary is based on a theoretical research paper; no empirical datasets were used for evaluation. All results are validated through rigorous mathematical proofs.

Summary updated

BibTeX
@inproceedings{ghazi2024differentially,
  author = {Badih Ghazi and Cristóbal A Guzmán and Pritish Kamath and Ravi Kumar and Pasin Manurangsi},
  title = {{Differentially Private Optimization with Sparse Gradients}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=4Ktifp48WD},
}
Figure