Balancing Utility and Privacy: Dynamically Private SGD with Random Projection

Zhanhong Jiang, Md Zahid Hasan, Nastaran Saadati, Aditya Balu, Chao Liu +1 more
9/11/2025
cs.LG

No official code found. Best implementation: zahid-isu/d2p2 (0 stars, Apache-2.0, last commit 2025-09-01).

Abstract

Stochastic optimization is a pivotal enabler in modern machine learning, producing effective models for various tasks. However, several existing works have shown that model parameters and gradient information are susceptible to privacy leakage. Although Differentially Private SGD (DPSGD) addresses privacy concerns, its static noise mechanism impacts the error bounds for model performance. Additionally, with the exponential increase in model parameters, efficient learning of these models using stochastic optimizers has become more challenging. To address these concerns, we introduce the Dynamically Differentially Private Projected SGD (D2P2-SGD) optimizer. In D2P2-SGD, we combine two important ideas: (i) dynamic differential privacy (DDP) with automatic gradient clipping and (ii) random projection with SGD, allowing dynamic adjustment of the tradeoff between utility and privacy of the model. It exhibits provably sub-linear convergence rates across different objective functions, matching the best available rate. The theoretical analysis further suggests that DDP leads to better utility at the cost of privacy, while random projection enables more efficient model learning. Extensive experiments across diverse datasets show that D2P2-SGD remarkably enhances accuracy while maintaining privacy. Our code is available here.

View on arXivView PDF

Code Implementations(1)

zahid-isu/d2p2Community66%
Apache-2.0

Balancing Utility and Privacy: Dynamically Private SGD with Random Projection (TMLR 2025)

00Shell, PythonApr 29, 20241 years agoApache-2.0
differential-privacygradient-descentmachine-learningoptimizationsgd-optimizer

Similar Papers

Cite this paper

@article{jiang2025balancing,
  title  = {Balancing Utility and Privacy: Dynamically Private SGD with Random Projection},
  author = {Zhanhong Jiang and Md Zahid Hasan and Nastaran Saadati and Aditya Balu and Chao Liu and Soumik Sarkar},
  year   = {2025},
  eprint = {2509.09485},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.09485v2}
}

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/2509.09485.svg)](https://codeofpaper.com/paper/2509.09485)

Discussion