Optimal Differentially Private Learning with Public Data

Andrew Lowy, Zeman Li, Tianjian Huang, Meisam Razaviyayn · OpenReview

Abstract

Differential privacy (DP) ensures that training a machine learning model does not leak private data. In practice, we may have access to auxiliary public data that is free of privacy concerns. In this work, we assume access to a given amount of public data and settle the following fundamental open questions:

  1. What is the optimal (worst-case) error of a DP model trained over a private data set while having access to side public data?
  2. How can we harness public data to improve DP model training in practice? We consider these questions in both the local and central models of pure and approximate DP. To answer the first question, we prove tight (up to log factors) lower and upper bounds that characterize the optimal error rates of three fundamental problems: mean estimation, empirical risk minimization, and stochastic convex optimization. We show that the optimal error rates can be attained (up to log factors) by either discarding private data and training a public model, or treating public data like it is private and using an optimal DP algorithm. To address the second question, we develop novel algorithms that are "even more optimal" (i.e. better constants) than the asymptotically optimal approaches described above. For local DP mean estimation, our algorithm is optimal including constants. Empirically, our algorithms show benefits over the state-of-the-art.

Introduction

Differential Privacy (DP) is the gold standard for protecting individual privacy in machine learning, but it often introduces a significant "utility gap" where private models underperform compared to non-private ones. However, real-world scenarios often provide access to small amounts of public data—information from volunteers, synthetic datasets, or public repositories like Wikipedia—that are exempt from privacy constraints. This paper establishes the theoretical limits and practical potential of using such public data to enhance DP training.

Theoretical Framework: Semi-Differential Privacy

The authors introduce the concept of Semi-Differential Privacy (Semi-DP), a framework where privacy guarantees apply strictly to the private portion of a dataset. Through new mathematical techniques, including a generalized fingerprinting lemma and a Semi-DP Fano’s method, the research characterizes the optimal error rates for fundamental learning problems.

Optimal error rates for Mean Estimation and Stochastic Convex Optimization (SCO) in Semi-DP and Semi-LDP settings.

A surprising theoretical insight is that two "naive" strategies are often asymptotically optimal: either discarding private data to train solely on public data, or treating public data as if it were private. However, while the asymptotic "Big-O" rates may not change, the constant factors do. In DP, reducing these constants is the difference between a usable model and a failed deployment.

Algorithmic Innovations

To move beyond asymptotic optimality and achieve practical gains, the paper proposes two key innovations:

  1. Weighted-Gaussian Estimator: Instead of treating all data equally, this estimator assigns different weights to public and private samples based on the privacy budget ($\epsilon$), dimension ($d$), and public data volume. This allows for more effective noise calibration.
  2. Semi-DP-SGD: This algorithm integrates the weighted estimator into Stochastic Gradient Descent. Gradients from private data are clipped and privatized, then combined with noise-free gradients from public data. This simultaneous use of data throughout training proves superior to the common practice of "warm-starting" (pre-training) on public data alone.

Empirical Results

The proposed methods were evaluated on synthetic benchmarks and real-world datasets like CIFAR-10. A striking finding is that public data acts as a stabilizer; because public gradients are noise-free, they provide a "ground truth" direction that prevents DP-SGD from diverging even when privacy noise is high.

Comparison of Test Loss vs. public data ratio ($n_{pub}/n$) for various algorithms at $\epsilon = 2$.

On CIFAR-10, the Semi-DP-SGD algorithm reduced test error by 8–9% for logistic regression and up to 18.9% for Wide-ResNet-16-4 models compared to standard DP-SGD. Furthermore, in linear regression tasks where standard DP-SGD completely diverged, Semi-DP-SGD converged with low error using a public data size of only 10% of the private data ($n_{pub} = 0.1n$).

Conclusion and Future Work

This work demonstrates that while public data may not shift asymptotic error rates, it provides critical constant-factor improvements and optimization stability. Future research directions include exploring the impact of out-of-distribution public data, extending tight theoretical bounds to non-convex neural networks, and developing fully private hyperparameter tuning methods to ensure the entire training pipeline respects the privacy budget.

Summary updated

BibTeX
@inproceedings{lowy2024optimal,
  author = {Andrew Lowy and Zeman Li and Tianjian Huang and Meisam Razaviyayn},
  title = {{Optimal Differentially Private Learning with Public Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=NFEJQn7vX0},
}
Figure