betaFeedback

WorksComputer Science

Optimal User-Level Private Stochastic Convex Optimization and Mean Estimation with Heavy Tails

Abstract

We study stochastic convex optimization with heavy-tailed stochastic gradients under (ε,δ)(\varepsilon, δ)-user-level differential privacy, which protects each user's entire collection of samples. Instead of assuming a uniformly bounded Lipschitz constant, we only assume bounds on the second- and kk-th moments of the random sample Lipschitz parameters. This allows for unbounded, heavy-tailed stochastic gradient distributions and can lead to sharper excess risk bounds. We characterize the minimax optimal excess population risk up to logarithmic factors. Our algorithm achieves the optimal rate with only O~(1/ε)\widetilde{O}(1/\varepsilon) users. As a byproduct of our algorithmic developments, we obtain tight bounds for user-level private mean estimation under norm-moment assumptions, improving over the guarantees of Esfandiari et al. (2022) and Zhao et al. (2024). Finally, for mean estimation under the directional-moment assumption of Agarwal et al. (2025), we close their remaining approximate-DP gap by removing the additional d/εd/\varepsilon user requirement and attaining the optimal sample complexity up to logarithmic factors.

Introduction

Stochastic convex optimization (SCO) is a fundamental problem in machine learning. Given samples from an unknown distribution PP, the goal is to minimize the population loss

min⁡w∈WF(w),F(w):=Ez∼P[f(w,z)],(1)\min_{w\in\mathcal{W}} F(w), \qquad F(w) := \mathbb{E}_{z\sim P}[f(w,z)], \tag*{(1)}

where W⊂Rd\mathcal{W}\subset\mathbb{R}^{d} is a compact convex domain of ℓ2\ell_{2}-diameter DD and f(⋅,z)f(\cdot,z) is convex. We measure the quality of a solution ww by its excess population risk, F(w)−F∗F(w)-F^{*}, where F∗:=min⁡w′∈WF(w′)F^{*}:=\min_{w'\in\mathcal{W}}F(w').

In many applications, the data used to train models contains sensitive information, and each person contributes multiple training examples: messages typed on a phone, repeated measurements from a patient, or interactions with an online service. Differential privacy (DP) provides a rigorous framework for protecting sensitive data [8]. In the user-level model, this protection extends to each user’s entire collection of samples: the algorithm’s output distribution must remain stable when all observations of one user are replaced. Motivated by these considerations, user-level private estimation and SCO have received substantial attention [15, 9, 5, 3, 18, 1].

Much of the user-level SCO literature assumes that the stochastic gradients are uniformly bounded [15, 3, 18]. The sample Lipschitz constant is sup⁡w∈W∥∇f(w,z)∥\sup_{w\in\mathcal{W}}\|\nabla f(w,z)\|, and uniform boundedness requires sup⁡zsup⁡w∈W∥∇f(w,z)∥≤L\sup_{z}\sup_{w\in\mathcal{W}}\|\nabla f(w,z)\|\leq L. The resulting excess risk guarantees scale with the worst-case Lipschitz parameter LL. In many problems, however, LL can be extremely large or infinite, making these guarantees overly pessimistic or vacuous.

Consequently, a recent line of work studies heavy-tailed DP SCO under a weaker assumption: bounded moments of the random sample Lipschitz parameter. Instead of assuming a bounded worst-case Lipschitz parameter, one assumes that, for public 0<G2≤Gk0<G_{2}\leq G_{k} and some k≥2k\geq2:

Ez∼P[sup⁡w∈W∥∇f(w,z)∥2]≤G22,Ez∼P[sup⁡w∈W∥∇f(w,z)∥k]≤Gkk.(2)\mathbb{E}_{z\sim P}\left[\sup_{w\in\mathcal{W}}\|\nabla f(w,z)\|^{2}\right]\leq G_{2}^{2}, \qquad \mathbb{E}_{z\sim P}\left[\sup_{w\in\mathcal{W}}\|\nabla f(w,z)\|^{k}\right]\leq G_{k}^{k}. \tag*{(2)}

Note that G2G_2 and GkG_k are public upper bounds, not exact moment values; Remark C.13 in the Appendix discusses misspecification.

This assumption allows for unbounded, heavy-tailed stochastic gradients and can yield sharper excess risk bounds when GkG_k is much smaller than LL. For instance, for squared-loss regression with W\mathcal{W} contained in a ball of radius RR, we have sup⁡w∈W∥∇f(w,(x,y))∥≤R∥x∥2+∣y∣∥x∥\sup_{w\in\mathcal{W}}\lVert\nabla f(w,(x,y))\rVert\le R\lVert x\rVert^2+|y|\lVert x\rVert. Thus, if moments of the features and responses are bounded, then (2) holds even when data is unbounded and L=∞L=\infty. Heavy-tailed private estimation and SCO have been studied extensively under item-level privacy, which protects one data point at a time (Kamath et al., 2020; Wang et al., 2020; Kamath et al., 2022a; Lowy and Razaviyayn, 2023; Asi et al., 2024; Lowy, 2026), and sharp rates are known in several of these settings. Much less is understood about the user-level setting, however.

There are nn users, each holding mm observations, and all nmnm observations are drawn i.i.d. from PP. Our main contribution is to characterize the minimax optimal excess population risk under second- and kkth-moment bounds (2) up to logarithmic factors.

Our contributions

Before addressing SCO, we study the simpler problem of mean estimation with bounded norm-moments: for a sample z∼Pz\sim P with unknown mean μ\mu, assume Ez∼P∥z−μ∥j≤G~jj\mathbb{E}_{z\sim P}\lVert z-\mu\rVert^j\le\widetilde{G}_j^j for j∈{2,k}j\in\{2,k\}. Let Pk(G~2,G~k)\mathcal{P}_k(\widetilde{G}_2,\widetilde{G}_k) denote this distribution class. We use G~j\widetilde{G}_j for these centered moments and reserve GjG_j for the raw SCO moments in (2). Despite recent progress [9, 25], existing error bounds for user-level private mean estimation with norm-moment bounds are not tight in every parameter regime. Similarly, naively applying an optimal item-level DP estimator to user averages is suboptimal. See Table 1 for a summary. Furthermore, mean estimation provides a key building block for our SCO algorithm. This leads to:

Table 1: Norm-moment mean estimation with user-level (ε,δ)(\varepsilon, \delta)-DP: constant-probability Euclidean errors. Logarithmic factors are suppressed. Our lower bound assumes (28).

ResultError boundRestrictions
Esfandiari et al. [9] upper boundG~2dnεm\frac{\widetilde{G}_2\sqrt{d}}{n\varepsilon\sqrt{m}}1/ε≲n≲d/ε1/\varepsilon\lesssim n \lesssim\sqrt{d}/\varepsilon
Zhao et al. [25] upper bound\mathcal{E}_{n,m}(\widetilde{G}__k,\widetilde{G}_k)n≳d/εn \gtrsim d/\varepsilon; known Rpublic≥∥μ∥R_{\mathrm{public}} \ge\lVert\mu\rVert
Naive item-level reduction (Appendix A)Gnm+Gm(dnε)1−1/k\frac{G}{\sqrt{nm}}+\frac{G}{\sqrt{m}}\left(\frac{\sqrt{d}}{n\varepsilon}\right)^{1-1/k}G~2=G~k=G\widetilde{G}_2=\widetilde{G}_k=G; n≳d/εn\gtrsim\sqrt{d}/\varepsilon
Our matching boundsEn,m(G~2,G~k)\mathcal{E}_{n,m}(\widetilde{G}_2,\widetilde{G}_k)n≳1/εn\gtrsim1/\varepsilon
Too few users (Esfandiari et al. [9], Lemma 5.1)No finite uniform errorn≤log⁡(1/δ)/(3ε)n\le\log(1/\delta)/(3\varepsilon); δ≤ε2\delta\le\varepsilon^2

Table 1.

Question 1. What is the minimax optimal ℓ2\ell_2-error for user-level private mean estimation under norm-moment bounds?

Contribution 1: Optimal rates for user-level DP mean estimation with norm-moment bounds. We answer Question 1 by providing novel tight upper and lower bounds under user-level (ε,δ)(\varepsilon,\delta)-DP (up to logarithms). The minimax optimal ℓ2\ell_2-error rate scales as

En,m(G~2,G~k):=G~2nm+G~2dnεm+min⁡{G~2(dnmε)1/2,G~k(dnmε)1−1/k}.(3)\mathcal{E}_{n,m}(\widetilde{G}_2,\widetilde{G}_k) := \frac{\widetilde{G}_2}{\sqrt{nm}}+\frac{\widetilde{G}_2\sqrt{d}}{n\varepsilon\sqrt{m}}+\min\left\{\widetilde{G}_2\left(\frac{\sqrt{d}}{nm\varepsilon}\right)^{1/2},\widetilde{G}_k\left(\frac{\sqrt{d}}{nm\varepsilon}\right)^{1-1/k}\right\}. \tag*{(3)}

Our estimator attains the optimal error rate up to logarithmic factors whenever the number of users n≥Ω~k(1/ε)n\ge\widetilde{\Omega}_k(1/\varepsilon) — a user threshold that is information-theoretically necessary (for finite uniform error when δ≤ε2\delta\le\varepsilon^2) up to logarithmic factors [9 Lemma 5.1].

The three terms in En,m(G~2,G~k)\mathcal{E}_{n,m}(\widetilde{G}_2,\widetilde{G}_k) reflect non-private sampling error, the user-level privacy cost of typical (subgaussian) fluctuations of user averages, and the privacy cost of rare large observations. The second term is the optimal privacy term for bounded-data user-level mean estimation [9 Corollary 4.2 and Theorem 5.2], whereas the third term has the form of the optimal item-level DP heavy-tailed error with nmnm observations [4, 17], while accounting for both second- and kkth-moment constraints.

These results improve the guarantees of prior user-level mean estimators: see Table 1 and Appendix A. Using our mean estimation results and techniques, we next tackle stochastic convex optimization.

Question 2. What is the minimax optimal excess population risk for user-level DP SCO under second- and kkth-moment bounds (2)?

Contribution 2: Optimal rates for user-level DP SCO with bounded moments. We answer Question 2 by providing tight upper and lower bounds (up to logarithms). With n≥Ω~k(1/ε)n\ge\widetilde{\Omega}_k(1/\varepsilon) users, the optimal rate under (2) is

Θ~k(Dmin⁡{G2,En,m(G2,Gk)}),(4)\widetilde{\Theta}_k\left(D\min\{G_2,\mathcal{E}_{n,m}(G_2,G_k)\}\right), \tag*{(4)}

where En,m(G2,Gk)\mathcal{E}_{n,m}(G_2,G_k) is the expression in (3) evaluated at the raw SCO moment bounds. Table 2 compares our result with prior SCO guarantees.

References

  1. [1]Sushant Agarwal, Gautam Kamath, Mahbod Majid, Argyris Mouzakis, Rose Silver, and Jonathan Ullman. Private mean estimation with person-level differential privacy. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2819–2880, 2025. doi: 10.1137/1.9781611978322.92. URL https://epubs.siam.org/doi/10.1137/1.9781611978322.92.
  2. [3]Hilal Asi, Daogao Liu, and Kevin Tian. Private stochastic convex optimization with heavy tails: Near-optimality from simple reductions. In Advances in Neural Information Processing Systems, volume 37, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/6cc066e48b391a749c2161f271fda80b-Abstract-Conference.html.arxiv.org/abs/2406.02789
  3. [4]Rina Foygel Barber and John C. Duchi. Privacy and statistical risk: Formalisms and minimax bounds. arXiv preprint arXiv:1412.4451, 2014.arxiv.org/abs/1412.4451
  4. [5]Raef Bassily and Ziteng Sun. User-level private stochastic convex optimization with optimal rates. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 1838–1851, 2023. URL https://proceedings.mlr.press/v202/bassily23a.html.
  5. [6]John Duchi. Lecture notes on statistics and information theory, 2023. URL https://web.stanford.edu/class/stats311/lecture-notes.pdf.
  6. [7]Cynthia Dwork and Aaron Roth. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3–4):211–407, 2014. doi: 10.1561/0400000042. URL https://www.cis.upenn.edu/~aaroth/Papers/privacybook.pdf.DOI
  7. [8]Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of Cryptography Conference, pages 265–284, 2006.
  8. [9]Hossein Esfandiari, Vahab Mirrokni, and Shyam Narayanan. Tight and robust private mean estimation with few users. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 16383–16412, 2022. URL https://proceedings.mlr.press/v162/narayanan22a.html.arxiv.org/abs/2110.11876
  9. [10]Gautam Kamath, Jerry Li, Vikrant Singhal, and Jonathan Ullman. Privately learning high-dimensional distributions. In Proceedings of the 32nd Conference on Learning Theory, volume 99 of Proceedings of Machine Learning Research, pages 1853–1902, 2019. URL https://proceedings.mlr.press/v99/kamath19a.html.arxiv.org/abs/1805.00216
  10. [13]Gautam Kamath, Argyris Mouzakis, and Vikrant Singhal. New lower bounds for private estimation and a generalized fingerprinting lemma. In Advances in Neural Information Processing Systems, volume 35, pages 24405–24418, 2022b. URL https://papers.neurips.cc/paper_files/paper/2022/hash/9a6b278218966499194491f55ccf8b75-Abstract-Conference.html.arxiv.org/abs/2205.08532
  11. [14]Pravesh Kothari, Pasin Manurangsi, and Ameya Velingker. Private robust estimation by stabilizing convex relaxations. In Proceedings of Thirty Fifth Conference on Learning Theory, volume 178 of Proceedings of Machine Learning Research, pages 723–777. PMLR, 2022. URL https://proceedings.mlr.press/v178/kothari22a.html.arxiv.org/abs/2112.03548
  12. [15]Daniel Levy, Ziteng Sun, Kareem Amin, Satyen Kale, Alex Kulesza, Mehryar Mohri, and Ananda Theertha Suresh. Learning with user-level privacy. In Advances in Neural Information Processing Systems, volume 34, pages 12466–12479, 2021.arxiv.org/abs/2102.11845
  13. [16]Andrew Lowy. Optimal rates for pure ε-differentially private stochastic convex optimization with heavy tails. arXiv preprint arXiv:2604.06492, 2026.arxiv.org/abs/2604.06492
  14. [17]Andrew Lowy and Meisam Razaviyan. Private stochastic optimization with large worst-case lipschitz parameter: Optimal rates for (non-smooth) convex losses and extension to non-convex losses. In Proceedings of the 34th International Conference on Algorithmic Learning Theory, volume 201 of Proceedings of Machine Learning Research, pages 986–1054, 2023.
  15. [18]Andrew Lowy, Daogao Liu, and Hilal Asi. Faster algorithms for user-level private stochastic convex optimization. In Advances in Neural Information Processing Systems, volume 37, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/ae338b3fe6624798efa80b6581924028-Abstract-Conference.html.arxiv.org/abs/2410.18391
  16. [19]Mattes Mollenhauer and Christian Fiedler. Fuk–nagaev inequality in smooth banach spaces: Optimum bounds for distributions of heavy-tailed martingales. arXiv preprint arXiv:2512.10012, 2025.arxiv.org/abs/2512.10012
  17. [21]Arkadi Nemirovski, Anatoli Juditsky, Guanghui Lan, and Alexander Shapiro. Robust stochastic approximation approach to stochastic programming. SIAM Journal on Optimization, 19(4):1574–1609, 2009.DOI
  18. [23]Eliad Tsfadia, Edith Cohen, Haim Kaplan, Yishay Mansour, and Uri Stemm er. Friendlycore: Practical differentially private aggregation. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 21828–21863, 2022. URL https://proceedings.mlr.press/v162/tsfadia22a.html.arxiv.org/abs/2110.10132
  19. [25]Puning Zhao, Lifeng Lai, Li Shen, Qingming Li, Jiafei Wu, and Zhe Liu. A huber loss minimization approach to mean estimation under user-level differential privacy. In Advances in Neural Information Processing Systems, volume 37, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/ead8e195df586b9e7c10fcd114a6b9d1-Abstract-Conference.html.arxiv.org/abs/2405.13453

Paper details

vlnc:W_f9ff5zaz
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Generative AI tools

View statement
Looking for related papers…
Contents