Differentially Private Prototypes for Imbalanced Transfer Learning

Dariush Wahdany, Matthew Jagielski, Adam Dziedzic, Franziska Boenisch

Standard Differential Privacy (DP) training techniques, such as DP-SGD, often struggle when datasets are highly imbalanced or when strict privacy guarantees are required. In these scenarios, the iterative addition of noise to gradients can overwhelm the signal from minority classes, leading to poor model performance and the effective "erasure" of rare data points. This paper introduces Differentially Private Prototype Learning (DPPL), a novel approach designed to bypass iterative training and maintain high accuracy even under extreme imbalance and tight privacy budgets.

The Challenge: Why DP-SGD Fails Minority Classes

Training machine learning models with DP typically relies on DP-SGD, which adds noise to gradients at every step. This iterative noise addition is particularly damaging in three cases:

  1. High Privacy Regimes: When the privacy budget ($\epsilon$) is small ($\epsilon \le 1$), the noise level required is high.
  2. Low Data Regimes: With few training examples, the signal is too weak to survive the noise.
  3. Imbalanced Datasets: Minority classes have weak gradient signals that are easily drowned out by noise and gradient clipping.

The authors propose a non-iterative alternative that leverages the power of pre-trained encoders to create class-specific representations privately.

Methodology: Differentially Private Prototype Learning (DPPL)

DPPL shifts the problem from training a classifier to a few-shot prototype matching task. Instead of updating model weights, DPPL uses a fixed, pre-trained encoder to extract features and then computes a single "prototype"—a representative point in the embedding space—for each class.

The DPPL pipeline: from private data and public encoders to private prototype estimation and inference.

The authors introduce two primary methods for private prototype generation:

  • DPPL-Mean: This method calculates the average embedding for all private data points within a class and adds Gaussian noise to ensure privacy.
  • DPPL-Public: This breakthrough approach uses private data to score potential prototypes from a public dataset (e.g., ImageNet). By using the DP Exponential Mechanism, it privately selects the best-matching public data point to serve as the class prototype.

Because prototypes are computed per-class, the method is inherently balanced; a minority class receives exactly one prototype, preventing it from being overshadowed by majority classes.

Key Results and Insights

The effectiveness of DPPL is most evident in high-imbalance scenarios. The authors tested their approach on datasets like CIFAR100 modified to have an Imbalance Ratio (IR) of up to 100.

Performance comparison across different privacy budgets for a dataset with an Imbalance Ratio (IR) of 50.

Dominance in High Privacy

At strict privacy budgets ($\epsilon \approx 0.1$), DPPL-Public significantly outperforms state-of-the-art baselines. By avoiding iterative noise, it preserves the utility of minority classes that would otherwise be lost. Interestingly, while DPPL-Public excels at low $\epsilon$, DPPL-Mean tends to perform better as the privacy budget increases, suggesting that the optimal strategy depends on the desired privacy level.

The Role of Public Data and Encoders

A core insight of this work is that public data can serve as a "catalog" for prototypes. Privately selecting an existing public image is often more privacy-efficient than computing a high-dimensional mean from private data. However, this relies on two factors: the diversity of the public dataset and the quality of the pre-trained encoder. High-capacity models like ViT-H-14 were found to be essential for generating useful embeddings, whereas older architectures like ResNet-50 struggled.

Conclusion

DPPL provides a robust framework for private transfer learning, particularly when data is scarce or imbalanced. By moving away from iterative gradient-based training and leveraging public "catalogs" for prototypes, it achieves a new state-of-the-art in high-privacy regimes, ensuring that minority classes are protected without sacrificing overall model utility.

Summary updated

BibTeX
@inproceedings{wahdany2025differentially,
  author = {Dariush Wahdany and Matthew Jagielski and Adam Dziedzic and Franziska Boenisch},
  title = {{Differentially Private Prototypes for Imbalanced Transfer Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i20.35395},
}
Figure