The Cost of Shuffling in Private Gradient Based Optimization

Shuli Jiang, Pranay Sharma, Zhiwei Steven Wu, Gauri Joshi
2/5/2025
cs.LG

No official code found. Best implementation: 11hifish/private_shuffled_G (0 stars, last commit 2025-04-01).

Abstract

We consider the problem of differentially private (DP) convex empirical risk minimization (ERM). While the standard DP-SGD algorithm is theoretically well-established, practical implementations often rely on shuffled gradient methods that traverse the training data sequentially rather than sampling with replacement in each iteration. Despite their widespread use, the theoretical privacy-accuracy trade-offs of private shuffled gradient methods (\textit{DP-ShuffleG}) remain poorly understood, leading to a gap between theory and practice. In this work, we leverage privacy amplification by iteration (PABI) and a novel application of Stein's lemma to provide the first empirical excess risk bound of \textit{DP-ShuffleG}. Our result shows that data shuffling results in worse empirical excess risk for \textit{DP-ShuffleG} compared to DP-SGD. To address this limitation, we propose \textit{Interleaved-ShuffleG}, a hybrid approach that integrates public data samples in private optimization. By alternating optimization steps that use private and public samples, \textit{Interleaved-ShuffleG} effectively reduces empirical excess risk. Our analysis introduces a new optimization framework with surrogate objectives, adaptive noise injection, and a dissimilarity metric, which can be of independent interest. Our experiments on diverse datasets and tasks demonstrate the superiority of \textit{Interleaved-ShuffleG} over several baselines.

View on arXivView PDF

Code Implementations(1)

The Cost of Shuffling in Private Gradient Based Optimization

00PythonJan 31, 20251 years ago

Similar Papers

Cite this paper

@article{jiang2025cost,
  title  = {The Cost of Shuffling in Private Gradient Based Optimization},
  author = {Shuli Jiang and Pranay Sharma and Zhiwei Steven Wu and Gauri Joshi},
  year   = {2025},
  eprint = {2502.03652},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.03652v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.03652.svg)](https://codeofpaper.com/paper/2502.03652)

Discussion