Abstract
Diffusion models (DMs) are one of the most widely used generative models for producing high-quality images. However, a flurry of recent papers points out that DMs are least private forms of image generators, by extracting a significant number of near-identical replicas of training images from DMs. Existing privacy-enhancing techniques for DMs, unfortunately, do not provide a good privacy-utility tradeoff. In this paper, we aim to improve the current state of DMs with differential privacy (DP) by adopting the Latent Diffusion Models (LDMs). LDMs are equipped with powerful pre-trained autoencoders that map the high-dimensional pixels into lower-dimensional latent representations, in which DMs are trained, yielding a more efficient and fast training of DMs. Rather than fine-tuning the entire LDMs, we fine-tune only the attention modules of LDMs with DP-SGD, reducing the number of trainable parameters by roughly 90% and achieving a better privacy-accuracy trade-off. Our approach allows us to generate realistic, high-dimensional images (256x256) conditioned on text prompts with DP guarantees, which, to the best of our knowledge, has not been attempted before. Our approach provides a promising direction for training more powerful, yet training-efficient differentially private DMs, producing high-quality DP images.
Introduction
Diffusion Models (DMs) have revolutionized generative modeling, yet they face a critical challenge: memorization. Studies have demonstrated that DMs can recreate near-identical replicas of training data, posing severe risks when models are trained on sensitive information like medical records or private faces. While Differential Privacy (DP) via DP-SGD offers a solution by adding noise during training, it typically forces a trade-off between privacy, image quality, and computational efficiency. Standard DP diffusion models often result in blurry, low-resolution outputs and require prohibitive computational resources.
The DP-LDM Framework
To overcome these bottlenecks, the authors propose DP-LDMs, a framework that leverages Latent Diffusion Models to improve the privacy-utility frontier. The core innovation lies in two strategies:
- Operating in Latent Space: Instead of training on raw, high-dimensional pixels, the model utilizes a pre-trained autoencoder to compress images into a lower-dimensional latent representation. This reduction in dimensionality allows the DP-SGD algorithm to operate more efficiently.
- Selective Fine-tuning: The framework adopts a "Non-Private Step" (pre-training on public data) followed by a "Private Step" (fine-tuning on sensitive data). During the private step, only the attention modules and conditioning embedders are updated, accounting for approximately 10% of the total parameters.
Technical Implementation and Selective Fine-tuning
The researchers found that fine-tuning the attention modules within the "output blocks" of the UNet backbone was significantly more effective than updating the "input blocks." This selective approach is inspired by successes in Large Language Models, where attention layers are primary drivers for distribution adaptation.
Interestingly, the authors observed that fine-tuning the entire attention module outperformed Low-Rank Adaptation (LoRA) under DP constraints. The low-rank constraint appeared too restrictive to accommodate the noise introduced by DP-SGD, suggesting that full attention fine-tuning is a more robust strategy for private adaptation.
Experimental Results
The model was evaluated across standard benchmarks (MNIST, CIFAR-10, CelebA) and high-resolution tasks (CelebAHQ 256x256).
- Image Quality: On CIFAR-10 ($ε=10$), DP-LDMs achieved a state-of-the-art FID of 8.4, outperforming previous methods like DP-Diffusion (9.8).
- Computational Efficiency: While previous SOTA methods required up to 1,250 GPU hours, DP-LDMs achieved superior results in just 15 GPU hours.
- High-Resolution Generation: This work marks the first successful generation of realistic 256x256 images from text prompts under DP guarantees.
- Downstream Utility: Synthetic images generated by DP-LDMs were of sufficient quality to train a separate classifier to 96.4% accuracy on CelebA.
Conclusion and Future Work
DP-LDMs represent a significant leap in private generative modeling, demonstrating that high-resolution, text-conditioned image generation is possible with rigorous privacy guarantees. However, the method remains dependent on the availability of relevant public pre-training data. Future research will likely focus on narrowing the quality gap at strict privacy levels ($ε=1$) and developing better metrics for the perceptual interpretation of privacy parameters in visual data.
Summary updated