User-level Differentially Private Stochastic Convex Optimization: Efficient Algorithms with Optimal Rates

Daogao Liu, Hilal Asi

Abstract

This paper addresses the challenge of user-level Differentially Private Stochastic Convex Optimization (DP-SCO), where privacy guarantees must extend to the entire set of $m$ data items provided by a single user. We introduce a novel polynomial-time algorithm that achieves optimal convergence rates for both smooth and non-smooth convex functions. A key contribution of this work is the significant reduction in the required number of users, moving from a polynomial dependence on the problem dimension $d$ to a logarithmic one. This advancement bridges a critical gap in privacy-preserving machine learning, particularly for federated learning applications where user-level privacy is paramount.

Introduction

In privacy-preserving machine learning, Differentially Private Stochastic Convex Optimization (DP-SCO) is a fundamental problem. While traditional research has focused on item-level privacy—ensuring that a model does not leak information about any single data point—real-world scenarios like federated learning often involve users contributing multiple data points (e.g., text messages, photos). In these cases, item-level privacy is insufficient; user-level privacy is required to ensure the model remains insensitive to the addition or removal of an entire user's dataset.

Achieving optimal error rates for user-level DP-SCO has historically presented a difficult trade-off. Existing efficient algorithms often required the number of users $n$ to grow polynomially with the dimension $d$ of the model (specifically $n \ge \sqrt{d}/\epsilon$), or they required super-polynomial runtime to achieve better rates. This paper resolves these issues by designing an efficient algorithm that works for non-smooth functions and requires exponentially fewer users.

Methodology

The proposed approach builds upon multi-pass Differentially Private Stochastic Gradient Descent (DP-SGD), incorporating several algorithmic innovations to handle user-level constraints:

  1. Outlier-Removal Mean Estimation: The algorithm leverages the fact that user-level gradients (the average of $m$ items) naturally concentrate within a ball of radius $ au \approx 1/\sqrt{m}$. A new procedure, inspired by the "FriendlyCore" framework, scores user gradients based on local density and probabilistically removes outliers. Gaussian noise proportional to $ au$ is then added to ensure privacy.
  2. Decoupling Users from Training Rounds: Unlike standard private mean estimators that require the number of users $n$ to scale with $\sqrt{T}$ (where $T$ is the number of training rounds), the new outlier-removal estimator only requires $n$ to scale with $\log(T)$. This allows the algorithm to run for significantly more rounds.
  3. Randomized Smoothing: The ability to run more training rounds enables the use of randomized smoothing for non-smooth loss functions. By running DP-SGD over a smoothed version of the function, the algorithm achieves optimal rates even in non-smooth settings.
  4. Localization and Pre-checking: For strongly convex functions, a localization framework iteratively refines parameters. Additionally, an AboveThreshold mechanism verifies dataset concentration before outlier removal, protecting the privacy budget against worst-case datasets.

Key Results

The primary contribution of this work is the first polynomial-time algorithm to achieve optimal rates for non-smooth functions under user-level privacy.

Comparison of the proposed algorithm with state-of-the-art user-level DP-SCO methods.

As shown in the table above, the algorithm achieves an optimal excess risk of $O(1/\sqrt{nm} + \sqrt{d}/(n\sqrt{m}\epsilon))$ for general convex functions and $O(1/(nm) + d/(n^2 m \epsilon^2))$ for strongly convex functions. Notably, it achieves these rates with a requirement of only $n \ge \log(d)/\epsilon$ users, an exponential improvement in dimensional dependence over prior efficient methods.

Conclusion

This work provides a robust framework for user-level DP-SCO, offering both theoretical optimality and computational efficiency. By reducing the user-count requirement and extending applicability to non-smooth functions, it makes user-level privacy more practical for large-scale machine learning. Future research may explore the possibility of strictly linear-time algorithms for user-level DP-SCO, further closing the efficiency gap with item-level privacy methods.

Summary updated

BibTeX
@inproceedings{liu2024user,
  author = {Daogao Liu and Hilal Asi},
  title = {{User-level Differentially Private Stochastic Convex Optimization: Efficient Algorithms with Optimal Rates}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure