Differentially Private Coordinate Descent for Composite Empirical Risk Minimization

Paul Mangold, Aurélien Bellet, Joseph Salmon, Marc Tommasi

Introduction

Training machine learning models with Differential Privacy (DP) traditionally relies on Differentially Private Stochastic Gradient Descent (DP-SGD). However, DP-SGD struggles significantly when dataset features are imbalanced. To address this, researchers have introduced Differentially Private Coordinate Descent (DP-CD), a method that updates models one feature (coordinate) at a time. By adapting step sizes and noise to individual features, DP-CD achieves significantly better utility and runs up to 5 times faster than DP-SGD, especially on imbalanced data.

The Problem with DP-SGD

Machine learning models can inadvertently memorize and leak sensitive training data. To prevent this, researchers use Differentially Private Empirical Risk Minimization (DP-ERM) to train models with mathematical privacy guarantees.

Currently, the standard algorithm for solving DP-ERM is DP-SGD. However, DP-SGD has a major flaw: it applies a single, global step size to update all parameters simultaneously. This step size is bottlenecked by the "steepest" or most sensitive feature in the dataset. If a dataset is highly imbalanced—where some features vary wildly and others barely change—DP-SGD is forced to take tiny, overly cautious steps, drowning the learning process in privacy-preserving noise.

The DP-CD Approach

The authors propose DP-CD (Differentially Private proximal Coordinate Descent) to tackle this gap by handling feature imbalance natively. Instead of updating the entire model at once using a noisy full gradient, DP-CD randomly selects a single coordinate (feature), computes its partial derivative across the entire dataset, adds Gaussian noise, and updates just that one parameter.

Key methodological contributions include:

  • Novel Theoretical Analysis: By tracking optimization error using coordinate-weighted norms rather than global norms, the authors mathematically prove that DP-CD can safely take much larger step sizes than DP-SGD.
  • Smart Gradient Clipping: DP algorithms require "clipping" gradients to bound their sensitivity. Tuning a separate clipping threshold for every single coordinate is a hyperparameter nightmare. The authors derive a clever mathematical rule to automatically scale coordinate-wise clipping thresholds from a single global hyperparameter.
  • Private Smoothness Estimation: DP-CD needs to know the "smoothness" (variance/scale) of each feature to set its step sizes. The authors provide a method to privately estimate these constants using a small fraction of the total privacy budget.

Key Insights

  • Imbalance is an Opportunity: Because DP-CD treats each coordinate separately, it can take large steps on "flat" coordinates and small steps on "steep" ones. DP-SGD, by contrast, is stuck with the worst-case step size for everything.
  • Lower Sensitivity Per Step: A partial derivative (one coordinate) naturally has a lower sensitivity to any single data point than a full gradient vector. This means less noise needs to be added per update to guarantee the same level of privacy.
  • No Subsampling Required: DP-SGD relies heavily on "privacy amplification by subsampling." Because DP-CD computes the partial gradient over the full dataset, it avoids the complex mathematical approximations required for subsampling.

Empirical Results and Performance

The authors evaluated their method on real datasets for generalized linear models, including the Electricity dataset ($\ell_2$-regularized logistic regression) and the California Housing dataset (LASSO regression), as well as a challenging high-dimensional Synthetic Sparse LASSO dataset.

Performance comparison of DP-CD vs DP-SGD on Electricity and California datasets.
  • Massive Utility Gains: On naturally imbalanced datasets (Electricity and California), DP-CD achieved an order of magnitude lower relative error compared to DP-SGD.
  • Surprising Robustness: Even when the datasets were artificially balanced by standardizing the features (giving DP-SGD a fair fight), DP-CD still outperformed DP-SGD. On the challenging Sparse LASSO task, DP-SGD completely failed to learn, while DP-CD made steady progress.
  • Speed: Because coordinate-wise updates are computationally cheap, DP-CD runs about 4 to 5 times faster than DP-SGD in wall-clock time for a given number of passes over the data.
  • Theoretical Optimality: The authors proved new mathematical lower bounds for DP-ERM based on coordinate-wise smoothness, showing that DP-CD matches these theoretical limits up to logarithmic factors.

Limitations and Future Work

While highly effective, the authors acknowledge that if a dataset's features are perfectly balanced and extremely correlated, DP-CD could theoretically perform worse than DP-SGD (up to a factor of $p$, the number of features). However, this scenario is rare in real-world machine learning, and empirical results did not suffer from it. Additionally, privately estimating the smoothness constants requires sacrificing a small portion of the privacy budget (e.g., 10%), slightly reducing the budget available for actual training.

Future work may explore "active set" methods, dynamically allocating the privacy budget to the most "important" coordinates with the largest gradients, rather than picking them uniformly at random. Integrating adaptive clipping techniques could also further improve performance on balanced datasets.

Summary updated

BibTeX
@inproceedings{mangold2022differentially,
  author = {Paul Mangold and Aurélien Bellet and Joseph Salmon and Marc Tommasi},
  title = {{Differentially Private Coordinate Descent for Composite Empirical Risk Minimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=jAggGdWY2g},
}
Figure