Choosing Public Datasets for Private Machine Learning via Gradient Subspace Distance

Xin Gu, Gautam Kamath, Zhiwei Steven Wu
3/2/2023
stat.MLcs.CRcs.CV

No official code found. Best implementation: XinGuu/Gradient-Subspace-Distance (0 stars, last commit 2025-07-23).

Abstract

Differentially private stochastic gradient descent privatizes model training by injecting noise into each iteration, where the noise magnitude increases with the number of model parameters. Recent works suggest that we can reduce the noise by leveraging public data for private machine learning, by projecting gradients onto a subspace prescribed by the public data. However, given a choice of public datasets, it is not a priori clear which one may be most appropriate for the private task. We give an algorithm for selecting a public dataset by measuring a low-dimensional subspace distance between gradients of the public and private examples. We provide theoretical analysis demonstrating that the excess risk scales with this subspace distance. This distance is easy to compute and robust to modifications in the setting. Empirical evaluation shows that trained model accuracy is monotone in this distance.

View on arXivView PDF

Code Implementations(1)

PyTorch implementation of the paper "Choosing Public Datasets for Private Machine Learning via Gradient Subspace Distance" [SaTML 2025]

00Jupyter NotebookMay 28, 20241 years ago

Similar Papers

Cite this paper

@article{gu2023choosing,
  title  = {Choosing Public Datasets for Private Machine Learning via Gradient Subspace Distance},
  author = {Xin Gu and Gautam Kamath and Zhiwei Steven Wu},
  year   = {2023},
  eprint = {2303.01256},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.01256v2}
}

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

Discussion