Linear-Time User-Level DP-SCO via Robust Statistics

Badih Ghazi, Ravi Kumar, Daogao Liu, Pasin ManurangsiarXiv 2025

Abstract

User-level differentially private stochastic convex optimization (DP-SCO) has garnered significant attention due to the paramount importance of safeguarding user privacy in modern large-scale machine learning applications. Current methods, such as those based on differentially private stochastic gradient descent (DP-SGD), often struggle with high noise accumulation and suboptimal utility due to the need to privatize every intermediate iterate. In this work, we introduce a novel linear-time algorithm that leverages robust statistics, specifically the median and trimmed mean, to overcome these challenges. Our approach uniquely bounds the sensitivity of all intermediate iterates of SGD with gradient estimation based on robust statistics, thereby significantly reducing the gradient estimation noise for privacy purposes and enhancing the privacy-utility trade-off. By sidestepping the repeated privatization required by previous methods, our algorithm not only achieves an improved theoretical privacy-utility trade-off but also maintains computational efficiency. We complement our algorithm with an information-theoretic lower bound, showing that our upper bound is optimal up to logarithmic factors and the dependence on $\epsilon$. This work sets the stage for more robust and efficient privacy-preserving techniques in machine learning, with implications for future research and application in the field.

Introduction

In modern machine learning, safeguarding privacy is critical. While item-level Differential Privacy (DP) protects individual data points, user-level DP is a more rigorous standard: it ensures that the presence or absence of an entire user’s data (which might include many items, $m$) does not significantly affect the model. This is particularly relevant in federated learning and large-scale data collection where a single user contributes a significant corpus of information.

The challenge in User-Level DP-SCO is twofold:

  1. Utility vs. Privacy: Standard methods like DP-SGD often accumulate too much noise because they must privatize every intermediate gradient update.
  2. Efficiency: Existing algorithms that achieve optimal error rates are often computationally expensive (super-polynomial or high-degree polynomial time), making them impractical for large-scale applications like training Large Language Models (LLMs).

This research introduces a "best of both worlds" solution: an algorithm that is both computationally efficient (linear time) and provides high utility under the strict constraints of user-level DP.

Methodology

The proposed approach departs from standard $\ell_2$-norm (Euclidean) analysis, focusing instead on the $\ell_\infty$-norm setting. This shift allows the researchers to leverage the inherent stability of robust statistics. The methodology centers on several technical innovations:

Coordinate-wise Robust Statistics

The algorithm employs robust estimators, such as the median or trimmed mean, for each coordinate of the gradient. In one dimension, these statistics are "1-Lipschitz," meaning a slight change in one input results in a bounded change in the output. This property is used to bound the sensitivity of the entire optimization trajectory, effectively reducing the amount of noise that must be added to maintain privacy.

Debiasing and Localization

Because robust statistics can be biased, the algorithm calculates a standard mean and "projects" it onto a small ball centered at the robust statistic. This ensures the estimate remains unbiased when data is well-behaved while maintaining stability for privacy. Furthermore, a multi-phase localization framework is utilized to iteratively refine the solution, using smaller step sizes and reduced noise in later stages to home in on the optimum.

Stability via Diagonal Dominance

To ensure the optimization does not diverge under noise, the authors assume the objective functions have diagonally dominant Hessians. This ensures that gradient descent steps are "contractive" in the $\ell_\infty$-norm, meaning the trajectories of two neighboring datasets stay close together over time, which is essential for bounding sensitivity.

Key Results

The research establishes both upper and lower bounds for the DP-SCO problem, demonstrating the efficiency and near-optimality of the proposed algorithm.

  • Upper Bound: The algorithm achieves a utility rate (excess risk) of: $$\tilde{O}\left( \frac{d}{\sqrt{nm}} + \frac{d^{3/2}}{n\sqrt{m}\epsilon^2} \right)$$ where $n$ is the number of users, $m$ is items per user, $d$ is the dimension, and $\epsilon$ is the privacy budget.

  • Efficiency: The algorithm runs in linear time ($O(nm)$ gradient evaluations), matching the efficiency of non-private SGD and making it suitable for large-scale production environments.

  • Optimality: The authors provide an information-theoretic lower bound of $\tilde{\Omega}\left( \frac{d}{\sqrt{nm}} + \frac{d^{3/2}}{n\sqrt{m}\epsilon} \right)$, showing their result is optimal up to logarithmic factors and the specific power of $\epsilon$.

Discussion and Future Work

While this work provides a significant advancement in linear-time private optimization, it introduces new questions. The requirement for diagonally dominant Hessians is a specific structural assumption that may not hold for all complex models, such as deep neural networks. Relaxing this assumption is a primary direction for future research.

Additionally, the current techniques are specifically tailored for the $\ell_\infty$ space. Extending these robust-statistical methods to the more common $\ell_2$ setting remains a significant technical challenge due to the lack of "1-Lipschitz" robust statistics in high-dimensional Euclidean space. Finally, closing the slight gap between the upper bound ($\epsilon^{-2}$) and the lower bound ($\epsilon^{-1}$) remains an open theoretical objective.

Summary updated

BibTeX
@misc{ghazi2025linear,
  author = {Badih Ghazi and Ravi Kumar and Daogao Liu and Pasin Manurangsi},
  title = {{Linear-Time User-Level DP-SCO via Robust Statistics}},
  year = {2025},
  eprint = {2502.08889},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.08889},
}
Figure