NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Differentially Private Image Classification by Learning Priors from Random Processes

Xinyu Tang, Ashwinee Panda, Vikash Sehwag, Prateek Mittal

Introduction

Training machine learning models with Differential Privacy (DP) is essential for protecting sensitive data against leaks and membership inference attacks. However, the standard optimization algorithm, DP-SGD, typically suffers from a significant "utility gap." Compared to non-private training, DP-SGD models are often much less accurate because the algorithm must clip gradients and inject random noise into every update to satisfy privacy guarantees.

To mitigate this, a common practice is to pretrain models on large "public" datasets like ImageNet before fine-tuning them privately. However, this approach is fundamentally flawed: much of the data scraped from the web contains sensitive information, such as faces or medical details, that users never consented to share. This creates a paradox where a "private" model is built upon a foundation of privacy-violating data. This research introduces DP-RandP, a framework that asks: Can we achieve the performance benefits of pretraining using only synthetic, non-sensitive data generated by random processes?

The DP-RandP Framework

The authors propose a three-phase training pipeline designed to maximize the utility of synthetic priors without consuming the privacy budget during the initial learning phase.

  1. Phase I: Learning Priors (Cost: 0 Privacy Budget): The model's feature extractor is pretrained on synthetic images generated by random processes—such as fractal noise, untrained GANs, or mathematical textures—using self-supervised contrastive learning. Because this data is purely mathematical and contains no real-world information, it consumes zero privacy budget.
  2. Phase II: Linear Probing (Cost: Small $\epsilon_1$): The feature extractor is frozen, and only a new linear classification head is trained on the private data. By limiting the trainable parameters, the noise added by DP-SGD has a smaller relative impact, allowing the model to adapt quickly to the private domain.
  3. Phase III: Full Fine-Tuning (Cost: Remaining $\epsilon_2$): The entire network is unfrozen and trained end-to-end. This allows the features learned from synthetic noise to "co-adapt" with the classification head for the specific private task.

Data Sources for Synthetic Pretraining

The effectiveness of DP-RandP relies on the quality of the synthetic priors. The researchers utilized several random processes to generate pretraining data, including StyleGAN-Oriented patterns, Shaders-21k, and Dead Leaves textures. These datasets provide the model with basic visual structures like edges, gradients, and textures that are transferable to real-world tasks.

Examples of programmatically generated synthetic images used to learn visual priors without using real-world data.

Key Insights: Why Synthetic Priors Work

A primary finding of the study is that initialization is the bottleneck in private training. At low privacy budgets (low $\epsilon$), the noise in DP-SGD is so high that models starting from random "cold" initializations often fail to converge. A "warm start" from synthetic data provides the necessary structural foundation to get the optimization moving.

The performance gap between 'Warm' starts (using noise priors) and 'Cold' starts (no prior) as the noise multiplier increases.

Furthermore, the research highlights the robustness of simplicity. Linear probing (Phase II) is remarkably effective under high noise. By restricting the number of trainable parameters early in the process, the model avoids being overwhelmed by the noise added to the gradients. This suggests that you don't need to see a real-world object to learn that certain shapes and textures are useful for vision; priors learned from mathematical noise are remarkably transferable.

Experimental Results

DP-RandP represents a significant leap for the "no public data" setting in DP research, setting new benchmarks across several datasets:

  • CIFAR-10: At a strict privacy budget of $\epsilon=1$, DP-RandP achieved 72.3% accuracy, a massive improvement over the previous state-of-the-art of 60.6%.
  • Medical Data (Camelyon17): The method reached 92.36% accuracy, outperforming several contemporary methods that relied on real ImageNet data for pretraining.
  • ImageNet: The framework established a new state-of-the-art for private training from scratch, reaching 39.39% accuracy at $\epsilon=8$.

Conclusion and Future Work

While synthetic pretraining is a major step forward, a performance gap remains when compared to models pretrained on massive real-world datasets like JFT-300M. Additionally, the three-phase approach introduces hyperparameter complexity, particularly regarding the split of the privacy budget ($\epsilon$) between phases. Future research may explore extending these synthetic priors to other domains, such as Natural Language Processing (NLP) or speech recognition, to determine if similar mathematical foundations can bolster privacy in those fields.

Summary updated

BibTeX
@article{tang2025differentially,
  author = {Xinyu Tang and Ashwinee Panda and Vikash Sehwag and Prateek Mittal},
  title = {{Differentially Private Image Classification by Learning Priors from Random Processes}},
  journal = {J. Priv. Confidentiality},
  year = {2025},
  doi = {10.29012/jpc.910},
}
Figure