Model Inversion Attacks Through Target-Specific Conditional Diffusion Models

Ouxiang Li, Yanbin Hao, Zhicai Wang, Bin Zhu, Shuo Wang, Zaixi Zhang, Fuli Feng · DOI

Introduction

Model Inversion Attacks (MIAs) represent a significant privacy vulnerability in machine learning. In these attacks, an adversary attempts to reconstruct sensitive training data—such as private facial images or medical records—by querying a target classifier. Historically, high-performing MIAs have relied on Generative Adversarial Networks (GANs) to serve as image priors. However, GANs are prone to instability and mode collapse. When an attacker optimizes latent variables to maximize a classifier's confidence, the resulting images often suffer from severe fidelity degradation, appearing distorted or "deep-fried."

To address these challenges, the authors propose Diff-MI, a novel framework that replaces GANs with target-specific conditional diffusion models (CDMs). By leveraging the inherent stability of diffusion processes and a two-step optimization strategy, Diff-MI achieves a superior balance between reconstruction accuracy and image realism, reducing the Fréchet Inception Distance (FID) by an average of 20% compared to state-of-the-art methods.

The Diff-MI Framework

The Diff-MI framework operates in two distinct stages: the creation of a target-specific generative prior and an iterative reconstruction process.

The two-step Diff-MI framework: Target-Specific CDM training followed by Iterative Image Reconstruction.

Step 1: Target-Specific Conditional Diffusion Model (CDM)

Rather than using a generic generator, the authors develop a CDM tailored to the specific target classifier. This involves:

  1. Pre-training: A CDM is trained on a public dataset to learn general visual features. Images are labeled using "pseudo-labels" generated by the target classifier itself, aligning the generator with the target's internal logic.
  2. Fine-tuning: To bridge the distributional gap between public and private data, the authors fine-tune a specific subset of the CDM's layers—the middle block of the U-Net. This targeted fine-tuning "distills" the target's specific knowledge into the generative process without compromising the overall image quality learned during pre-training.

Step 2: Iterative Image Reconstruction (IIR)

Reconstruction is treated as a combinatorial optimization problem rather than a standard sampling task. The framework minimizes a joint loss function consisting of a Prior Loss ($L_{prior}$), which keeps the image on the manifold of realistic images, and a Classification Loss ($L_{cls}$), which forces the image to match the target identity.

The authors enhance this process with a top-k max-margin loss. Unlike standard cross-entropy, this loss considers the top $k$ classes, encouraging the model to find features that are both representative of the target and distinct from similar classes. A p-reg loss is also applied to regularize images within the feature space.

Experimental Evaluation

The researchers evaluated Diff-MI across diverse domains, including face recognition (CelebA, FFHQ, FaceScrub), fine-grained bird classification (CUB-200-2011), and medical imaging (ChestX-Ray, CheXpert). They paid particular attention to the "distributional shift" scenario, where public training data differs significantly from the private target data.

Visual comparison of reconstruction progress and final fidelity against state-of-the-art PLG-MI and private samples.

Key Results

Diff-MI demonstrates a clear advantage over state-of-the-art GAN-based attacks:

  • Superior Fidelity: The method achieved an average 20% decrease in FID. In human preference studies, participants preferred Diff-MI reconstructions for their realism and similarity to targets over 50% of the time compared to baselines.
  • High Accuracy: On the CelebA dataset with a VGG16 target, Diff-MI reached a 93.47% Top-1 attack accuracy, proving that fidelity does not have to come at the cost of reconstruction success.
  • Medical Robustness: In specialized domains like medical imaging, the model saw a 45% reduction in FID, highlighting the diffusion model's ability to capture complex, non-natural distributions that often baffle GANs.

Conclusion

Diff-MI marks a significant shift in Model Inversion Attacks by demonstrating that diffusion models are inherently more robust to the aggressive optimization required for data reconstruction. By fine-tuning the "middle block" of the U-Net and utilizing soft labels, the attack extracts more information from target classifiers while maintaining high visual fidelity. While the computational cost of training target-specific CDMs remains a hurdle, future work involving large-scale pre-trained models like Stable Diffusion may provide a path toward more efficient and powerful privacy-probing tools.

Summary updated

BibTeX
@misc{li2024model,
  author = {Ouxiang Li and Yanbin Hao and Zhicai Wang and Bin Zhu and Shuo Wang and Zaixi Zhang and Fuli Feng},
  title = {{Model Inversion Attacks Through Target-Specific Conditional Diffusion Models}},
  year = {2024},
  eprint = {2407.11424},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.11424},
}
Figure