Efficient Differentially Private Fine-Tuning of Diffusion Models

Jing Liu, Andrew Lowy, Toshiaki Koike-Akino, Kieran Parsons, Ye Wang · DOI

Introduction

Training deep learning models on sensitive data—such as medical records or private personal images—requires rigorous privacy guarantees to prevent the leakage of individual information. Differential Privacy (DP), typically implemented through DP-SGD, provides a mathematical framework for these guarantees. However, applying DP to large-scale models often results in a significant degradation of model utility and a massive increase in computational and memory overhead.

Recent research has demonstrated that Diffusion Models (DMs) can be fine-tuned with DP on private data to generate high-quality synthetic samples. These samples can then be used to train downstream classifiers without further privacy risks. Despite this promise, fully fine-tuning a large diffusion model with DP-SGD remains resource-intensive. This paper introduces DP-LoDA, a framework that leverages parameter-efficient adapters specifically designed for convolutional architectures to make DP training more accessible and efficient.

Methodology: The DP-LoDA Framework

The authors propose a multi-stage pipeline designed to bridge the gap between public knowledge and private data adaptation. The workflow is divided into three primary phases:

  1. Pre-training: A "classifier-free" diffusion model is first trained on a large, non-sensitive public dataset (e.g., SVHN or ImageNet32).
  2. DP-Tuning with LoDA: Instead of full-model fine-tuning, the authors introduce Low-Dimensional Adaptation (LoDA). The original model weights are frozen, and only the small LoDA adapters are updated using DP-SGD on the private dataset. This drastically reduces the number of gradients that must be tracked and "noised."
  3. Plug-in and Generation: The fine-tuned parameters are plugged back into the model to generate synthetic images, which are subsequently used to train a standard downstream classifier (e.g., ResNet9).
The DP-LoDA framework workflow, illustrating the transition from public pre-training to private fine-tuning and final synthetic data generation for downstream tasks.

Technical Implementation: LoDA Adapters

While Low-Rank Adaptation (LoRA) is popular for Large Language Models, it is primarily designed for linear layers. The authors argue that standard LoRA implementations ignore the spatial structure of convolutional weights prevalent in diffusion U-Net architectures.

To address this, LoDA attaches a small, parallel adapter to each convolutional layer. As shown in the architecture diagram below, the adapter consists of a bottleneck structure: a convolutional layer ($B$) that reduces the channel dimension to a small value $r$, a non-linear activation function (LeakyReLU), and a second convolutional layer ($A$) that projects the channels back to the original dimension. This "native" fit for convolutions allows the model to capture spatial dependencies more effectively than matrix-based rank adaptations.

Detailed architecture of the Low-Dimensional Adaptation (LoDA) module, showing the parallel bottleneck structure added to standard convolutional layers.

Experimental Results

The study evaluates DP-LoDA across several datasets, comparing it against full DP-Diffusion and standard DP-SGD baselines.

  • CIFAR-10: At a privacy budget of $\epsilon=10$, DP-LoDA achieved 63.5% accuracy. While slightly lower than full DP-Diffusion (69.7%), it significantly outperformed standard DP-SGD on a classifier (48.3%) and other generative baselines like DP-MERF (13.2%).
  • Low-Data Regime (1% CIFAR-10): In a setting with only 500 private samples, DP-LoDA achieved 53.6% accuracy. Remarkably, this outperformed a classifier trained directly on the real 1% data without any privacy protection (52.5%), suggesting that DP-tuned generative models can serve as powerful privacy-preserving data augmentors.
  • MNIST: DP-LoDA reached 95.0% accuracy, nearly matching the performance of full DP-Diffusion (95.9%) and surpassing DP-LDM (94.3%).

Conclusion and Future Work

DP-LoDA demonstrates that parameter-efficient fine-tuning is not only a matter of computational convenience but a strategic advantage in differentially private settings. By limiting the number of trainable parameters, the method reduces the impact of DP noise and improves stability in low-data regimes.

Future research directions include extending DP-LoDA to Latent Diffusion Models (LDMs) to further enhance efficiency and testing the scalability of the approach on higher-resolution, complex datasets such as medical imaging. Additionally, optimizing the bottleneck dimension ($r$) remains a key area for hyperparameter exploration.

Summary updated

BibTeX
@inproceedings{liu2024efficient,
  author = {Jing Liu and Andrew Lowy and Toshiaki Koike-Akino and Kieran Parsons and Ye Wang},
  title = {{Efficient Differentially Private Fine-Tuning of Diffusion Models}},
  booktitle = {NextGenAISafety @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=Lra7Hn7Jcn},
}
Figure