Private Training & Data Generation by Clustering Embeddings

Felix Zhou, Samson Zhou, Vahab Mirrokni, Alessandro Epasto, Vincent Cohen-AddadarXiv 2025

Abstract

Deep neural networks often use large, high-quality datasets to achieve high performance on many machine learning tasks. When training involves potentially sensitive data, this process can raise privacy concerns, as large models have been shown to unintentionally memorize and reveal sensitive information, including reconstructing entire training samples. Differential privacy (DP) provides a robust framework for protecting individual data and in particular, a new approach to privately training deep neural networks is to approximate the input dataset with a privately generated synthetic dataset, before any subsequent training algorithm. We introduce a novel principled method for DP synthetic image embedding generation, based on fitting a Gaussian Mixture Model (GMM) in an appropriate embedding space using DP clustering. Our method provably learns a GMM under separation conditions. Empirically, a simple two-layer neural network trained on synthetically generated embeddings achieves state-of-the-art (SOTA) classification accuracy on standard benchmark datasets. Additionally, we demonstrate that our method can generate realistic synthetic images that achieve downstream classification accuracy comparable to SOTA methods. Our method is quite general, as the encoder and decoder modules can be freely substituted to suit different tasks. It is also highly scalable, consisting only of subroutines that scale linearly with the number of samples and/or can be implemented efficiently in distributed systems.

Introduction

Training deep neural networks on sensitive information—such as medical records or private user photos—presents a significant privacy risk. Models are prone to "unintentional memorization," where attackers can reconstruct training samples from model weights. Differential Privacy (DP) is the gold standard for mitigating this, typically implemented via DP-SGD. However, DP-SGD is computationally expensive and difficult to tune.

An alternative is DP Synthetic Data Generation, which creates a "safe" version of the dataset. Historically, synthetic images have struggled with quality, limiting their utility for high-accuracy downstream tasks. This paper addresses this gap with a training-free method that leverages public pre-trained models and DP clustering to generate high-quality synthetic embeddings and images.

Methodology: The Cluster-then-Learn Pipeline

The proposed method, Algorithm 1: DP Synthetic Generation, avoids complex generative model training on private data. Instead, it operates in a high-quality embedding space:

  1. Encoding: Private images are mapped to 768-dimensional embeddings using a public encoder (e.g., CLIP).
  2. DP Clustering: A private $k$-means algorithm partitions these embeddings into $k$ clusters.
  3. GMM Fitting: Means and covariances are privately estimated for each cluster, fitting a Gaussian Mixture Model (GMM).
  4. Generation: New synthetic embeddings are sampled from the GMM.
  5. Decoding (Optional): Synthetic embeddings are passed through a public decoder (e.g., StableUnCLIP) to produce images.
Synthetic images generated by the proposed GMM-based method demonstrate the ability to capture class-specific features while maintaining privacy.

This modular approach is "training-free," requiring no backpropagation during the private steps, which ensures high scalability and ease of implementation.

Experimental Results

The method was evaluated on CIFAR-10, CIFAR-100, and the CAMELYON17 medical dataset.

Performance Comparison

Surprisingly, training on synthetic embeddings often outperformed direct private training (DP-SGD). On CIFAR-10, the method achieved 97.0% accuracy (vs. 96.6% for DP-SGD). On CAMELYON17, it reached 93.1% accuracy, significantly surpassing the previous DP-Diffusion SOTA of 91.1%.

A side-by-side comparison of synthetic images (left) generated by the model versus real images (right) from the CIFAR-10 dataset.

Key Insights

  • Embedding Space Advantages: Moving to a CLIP embedding space makes data more separable and easier to model with simple Gaussians.
  • Post-Processing Power: Once GMM parameters are privately estimated, an infinite amount of synthetic data can be generated without further privacy loss, allowing for "unlimited" training of downstream models.
  • Scalability: The reliance on linear-time subroutines makes the method suitable for large-scale and distributed systems.

Conclusion and Limitations

While the method achieves SOTA results, it depends on the availability of high-quality public encoders and decoders. Its performance may vary on niche datasets significantly different from the public models' pre-training data. Future work includes exploring more sophisticated image enhancement or quality-aware filtering to further improve visual fidelity.

Summary updated

BibTeX
@misc{zhou2025private,
  author = {Felix Zhou and Samson Zhou and Vahab Mirrokni and Alessandro Epasto and Vincent Cohen-Addad},
  title = {{Private Training \& Data Generation by Clustering Embeddings}},
  year = {2025},
  eprint = {2506.16661},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.16661},
}
Figure