Private Gradient Estimation is Useful for Generative Modeling

Bochao Liu, Shiming Ge, Pengju Wang, Liansheng Zhuang, Tongliang Liu, Wang, Weiping, Ge, Shiming

TL;DR

This paper introduces Private Gradient Estimation (PGE), a novel approach for training generative models that preserves differential privacy. PGE achieves this by using a differentially private network to estimate gradients of the data distribution, enabling the generation of high-resolution, realistic synthetic data without compromising user privacy.

What Problem Does This Paper Address?

Generative models, while powerful for tasks like image synthesis, pose a significant privacy risk. When trained on sensitive data, these models can inadvertently leak private information. Existing methods for achieving differential privacy in generative models often struggle with generating high-dimensional data, leading to blurry or unrealistic outputs, or require extensive pre-training to minimize data queries. This paper tackles the challenge of balancing strong privacy guarantees with the ability to generate high-quality, high-resolution synthetic data.

Methods

The core of PGE lies in its novel approach to private gradient estimation and generative modeling. Instead of directly generating data, PGE trains a network to estimate the gradient of the logarithmic data density. This estimation is made differentially private using Randomized Response (RR) applied to projection vectors, which is more efficient than traditional noise addition methods.

Key components of PGE include:

  • Energy-Based Models (EBMs): PGE utilizes EBMs, which are known for their training stability and fewer data queries compared to GANs and diffusion models, making them suitable for privacy-preserving learning.
  • Sliced Score Matching: This technique is used to train the network for gradient estimation.
  • Residual Enhancement Module: Inspired by masked autoencoders, this module is incorporated to improve the network's reconstruction ability, leading to better image quality.
  • Hamiltonian Dynamics MCMC Sampling: For generating samples, PGE employs a Markov Chain Monte Carlo (MCMC) approach based on Hamiltonian dynamics. This method is designed to be more accurate and efficient than standard Langevin dynamics for sampling from complex distributions.

Datasets

The paper evaluates PGE on the following standard image datasets:

  • MNIST
  • FashionMNIST (FMNIST)
  • CelebA (including variants CelebA-H and CelebA-G)
  • LSUN (bedroom category)

The authors note that their approach does not require pre-training on any specific dataset.

Key Insights and Ideas

  • Gradient Estimation as a Privacy Tool: The paper highlights that accurately estimating gradients of the data distribution, even in a privacy-preserving manner, is crucial for high-quality generative modeling.
  • Randomized Response for Projection Vectors: Applying RR to projection vectors offers a more efficient and effective way to achieve differential privacy compared to adding noise directly to gradients.
  • EBMs for Privacy-Preserving Generation: EBMs prove to be a more stable and query-efficient alternative to GANs and diffusion models for privacy-preserving generative tasks, especially for high-dimensional data.
  • Hamiltonian Dynamics for Better Sampling: Using Hamiltonian dynamics for MCMC sampling leads to more accurate and realistic sample generation compared to simpler methods like Langevin dynamics.
  • Residual Enhancement Improves Reconstruction: The integration of a residual enhancement module significantly boosts the model's ability to reconstruct image details, contributing to higher visual quality.

Key Results

  • Classification Accuracy: PGE consistently outperforms 14 state-of-the-art baselines by 4-6% across various datasets (MNIST, FMNIST, CelebA-H, CelebA-G) under different privacy budgets (ε=1 and ε=10), demonstrating strong data utility.
  • Perceptual Scores: On CelebA (64x64 resolution), PGE achieves the highest Inception Score (IS) of 2.14 and the lowest Frechet Inception Distance (FID) of 12.583 under ε=10, surpassing other methods, including those that require pre-training.
  • High-Resolution Generation: PGE successfully generates high-resolution images (up to 256x256) with impressive visual quality and detail, as evidenced by visualizations and FID scores on LSUN and CelebA.
  • Pure Differential Privacy: PGE guarantees pure ε-DP, meaning it has a failure probability of 0, which is a stronger guarantee than many other DP methods.

Limitations and Future Work

The authors acknowledge the following limitations:

  • Sampling Speed: PGE's iterative sampling process using Hamiltonian dynamics is significantly slower (up to 100x) than single-shot generation methods like GANs, especially for high-dimensional images.
  • Background Detail: Generated images, particularly on datasets like CelebA, sometimes lack detailed backgrounds.
  • Class Information Handling: PGE struggles with incorporating class information compared to classifier-guided diffusion models, as embedding labels directly into images lacks theoretical grounding.
  • Dataset Biases: The model may inadvertently learn dataset biases, which the authors plan to address through data preprocessing in future work.

Future work suggested includes developing a class-guided sampling approach and addressing dataset biases.

Summary updated

BibTeX
@inproceedings{liu2023private,
  author = {Bochao Liu and Shiming Ge and Pengju Wang and Liansheng Zhuang and Tongliang Liu and Wang, Weiping and Ge, Shiming},
  title = {{Private Gradient Estimation is Useful for Generative Modeling}},
  booktitle = {ACM Multimedia},
  year = {2023},
}
Figure