Private Adaptive Gradient Methods for Convex Optimization

Hilal Asi, John C. Duchi, Alireza Fallah, Omid Javidbakht, Kunal Talwar

Overview

Training machine learning models with Differential Privacy (DP) typically relies on DP-SGD, an algorithm that adds random Gaussian noise to every gradient update. While effective for preserving privacy, standard DP-SGD applies isotropic noise—meaning it perturbs the gradient equally in every direction.

In non-private optimization, adaptive methods like AdaGrad are highly effective because they exploit the "geometry" of gradients. In many real-world datasets, some features are sparse or exhibit much higher variance than others. AdaGrad adapts to this by scaling stepsizes for each coordinate individually. However, in private settings, the standard isotropic noise is often so large that it completely drowns out this geometric signal. Consequently, private adaptive methods historically perform no better than basic DP-SGD, particularly in high-dimensional spaces.

This paper introduces PASAN (Private Adaptive SGD with Adaptive Noise) and PAGAN (Private AdaGrad with Adaptive Noise), the first differentially private variants of adaptive gradient methods that successfully preserve the geometry of optimization. By utilizing non-isotropic noise tailored to the gradients' distribution, these algorithms achieve near-optimal convergence rates and significant performance gains.

Methodology: Non-Isotropic Clipping and Noise

The core innovation of PASAN and PAGAN lies in their approach to clipping and noise addition. Instead of clipping gradients to a standard sphere and adding uniform noise, the proposed algorithms:

  1. Project gradients onto an ellipsoid that captures their natural geometry.
  2. Add Gaussian noise with a covariance matrix that matches the shape of that ellipsoid.

This ensures the noise is "shaped" like the data. If a particular coordinate has very small gradients, the algorithm adds proportionally less noise in that direction, preserving the underlying signal. To make this practical, the authors also introduce a fully private procedure to estimate the necessary gradient moments when they are not known in advance.

Key Insights and Theoretical Contributions

  • Geometry is a First-Class Citizen: The authors demonstrate that privacy does not have to be a "geometry-killer." By aligning the noise with the problem's natural coordinates, models can maintain the benefits of adaptivity even under strict privacy constraints.
  • Moving Beyond Worst-Case Bounds: Standard DP analyses often depend on the maximum possible gradient (the $L_\infty$ norm). This work shows that by depending on moments (such as the second moment), it is possible to derive much tighter convergence bounds that reflect the actual observed behavior of the gradients.
  • Theoretical Optimality: The authors prove that their algorithms are "minimax optimal." For certain common geometric settings (like $\ell_\infty$ and $\ell_2$ boxes), no private algorithm can fundamentally achieve better bounds than those proposed here.

Experimental Results

The researchers evaluated their methods on both controlled synthetic environments and real-world language modeling tasks.

Synthetic Absolute Regression: In a controlled environment designed with non-isotropic gradients, PAGAN demonstrated a clear advantage. As shown in the figure below, while standard private AdaGrad and DP-SGD struggled to minimize the loss efficiently, PAGAN converged much faster. As the privacy budget ($\epsilon$) increased, PAGAN's trajectory closely mimicked the behavior of non-private adaptive methods.

Sample loss vs. iterate for synthetic regression across different privacy budgets.

Language Modeling (WikiText-2): The authors also trained a recurrent neural network (LSTM) with over 2 million parameters on the WikiText-2 dataset. Using a subset of WikiText-103 as a "public proxy" to help estimate gradient moments, PAGAN significantly outperformed DP-SGD. At a privacy level of $\epsilon=3$, PAGAN achieved a test perplexity of 228.72, compared to 240.32 for standard DP-SGD, marking a meaningful step toward effective large-scale private language models.

Limitations and Future Work

While the results are promising, the paper notes several areas for future exploration:

  • Convexity vs. Non-Convexity: The theoretical proofs focus strictly on convex optimization. While the empirical results on non-convex LSTMs are strong, extending the theoretical guarantees to the non-convex regime remains an open challenge.
  • Public Data Reliance: The most effective versions of these algorithms benefit from a small amount of "public" (non-private) data to estimate the gradient geometry. Navigating the trade-off between using public proxies versus purely private estimation requires careful consideration in practice.
  • Hyperparameter Sensitivity: Like many adaptive methods, PAGAN introduces new hyperparameters (such as the projection threshold) that require careful tuning to achieve peak performance.

Summary updated

BibTeX
@inproceedings{asi2021private,
  author = {Hilal Asi and John C. Duchi and Alireza Fallah and Omid Javidbakht and Kunal Talwar},
  title = {{Private Adaptive Gradient Methods for Convex Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=B9WBYCH_x5},
}
Figure