MGE: A Membership Guided Data Extraction Attack against Diffusion Models

Yuchang Mei, Longqiang Wang, Haoyang Jiang, Mingyang Yi, Shaolei Zhang, Keman Huang, Wuqiong Pan, Ju FanarXiv 2026

TL;DR

MGE (Membership Guided Extraction) is a novel attack framework that transforms training data extraction from diffusion models into a guided, conditional generation task. By using membership inference signals to steer the denoising process, it extracts significantly more unique training samples with much higher efficiency than traditional "generate-and-filter" methods.

What Problem Does This Paper Address?

Diffusion models (DMs) have revolutionized image generation, but they have a dark side: they tend to memorize their training data. This "unintended memorization" poses a severe privacy risk, as sensitive or copyrighted images can be leaked.

Existing Data Extraction Attacks (DEAs) typically follow a "generate-and-filter" paradigm. Attackers generate thousands of random images and then use a secondary classifier to check if any of them match the training set. This is like looking for a needle in a haystack—it's computationally expensive and relies heavily on luck. The authors of MGE ask a more direct question: Can we force the model to generate its training data by treating "membership in the training set" as a steering signal?

Methods

The core idea of MGE is to formulate data extraction as conditional generation, where the "condition" is simply that the generated image must belong to the training set.

Figure 2: An overview of our proposed Membership Guidance Extraction MGE. MGE, which is based on Bayes’ rule, consists of two main modules: adversarial guidance and parallel branch decoding. It aims to transform the data extraction attack into a conditional generation process with signals constructed by a membership inference attacker.

Key technical components include:

  • MIA Classifier Guidance: They use a Membership Inference Attack (MIA) classifier as a guide. Since standard MIA outputs are discrete (member vs. non-member), they use a differentiable Sigmoid surrogate. This allows them to calculate gradients that steer each step of the diffusion process toward the training data distribution.
  • Adversarial Guidance: Classifiers can be easily "hacked" by adversarial samples—images that look like noise to humans but fool the classifier. To fix this, MGE incorporates random data augmentations (color jitter, resizing, translation, cutout) during the guidance step, ensuring the model generates robust, high-fidelity images.
  • Parallel Branch Decoding: To boost both speed and diversity, MGE starts with a single noise vector and, at a specific timestep, replicates it into multiple branches. Each branch then continues denoising with a different random seed, allowing one "seed" of an idea to blossom into several unique training samples.
  • One-step Prediction: For efficiency, they estimate the final image using a fast one-step approximation rather than expensive multi-step denoising during each guidance step.

Datasets

The authors evaluated MGE across a wide variety of benchmarks:

  • Standard Image Sets: CIFAR-10, CIFAR-100, and Tiny-ImageNet.
  • High-Resolution Faces/Animals: FFHQ and AFHQv2.
  • Large-Scale Foundation Models: Stable Diffusion v1.5 (trained on LAION-5B).

Key Insights and Ideas

  • Extraction as Steering: The most important "aha moment" is that steering the model is far more effective than blind sampling. By using the model's own "reconstruction error" as a guidance signal, the attack becomes an active search rather than a passive wait.
  • The "Adversarial Sample" Trap: Without proper precautions, the model often generates "junk" that technically satisfies the membership classifier but isn't a real image. The authors found that data augmentation is the key to forcing the model to generate recognizable, high-quality training data.
  • Diversity vs. Precision: Surprisingly, more "precise" multi-step guidance actually leads to severe mode collapse (extracting the same few images repeatedly). The "noisier" one-step approximation used in MGE actually helps the attack discover a wider variety of unique training samples.
Figure 4: Comparison of images generated without and with adversarial guidance augmentation when constructing the guidance signal.

Key Results

MGE consistently outperformed existing baselines in three key metrics: Quantity (unique images found), ASR (Attack Success Rate), and Efficiency (unique images per minute).

  • Higher Yield: On CIFAR-100, MGE extracted 358 unique images from $2^{17}$ generations, compared to just 129 for the best baseline.
  • Efficiency Gains: On CIFAR-10, MGE achieved an efficiency of 0.78 unique extractions per minute—nearly 10x faster than the standard DDPM baseline.
  • Foundation Model Vulnerability: MGE successfully extracted 27 unique images from Stable Diffusion v1.5, nearly 4x more than the baseline "generate-and-filter" approach.
Figure 1: Examples of images extracted from pretrained diffusion models by our proposed MGE on different datasets.

Limitations and Future Work

Despite its success, MGE still produces many duplicates, indicating a degree of mode collapse toward the most "easily memorized" samples. The authors also note that while the primary method requires white-box access to calculate gradients, a "zeroth-order" (black-box) estimation is possible but slower.

Future work may focus on reducing output redundancy to further improve extraction efficiency and developing more robust privacy-preserving mechanisms to defend against such active steering attacks.

Summary updated

Abstract

Recently, diffusion models have achieved remarkable performance in image generation. However, their inherent memory properties introduce a potential safety risk of training data leakage, i.e., data extraction attack. To illustrate such risk, we propose a membership guided extraction (MGE) framework to effectively extract training data from a pre-trained diffusion model. Our core idea is to formulate the data extraction as a conditional generation, where the condition signal is from a membership inference classifier. To improve the success rate and efficiency of MGE, we propose adversarial gradient and parallel branch decoding. Our experiments on image generation benchmarks demonstrate that our MGE can extract hundreds of images, which shows that more attention should be paid to privacy-preserving of diffusion model.
BibTeX
@misc{mei2026mge,
  author = {Yuchang Mei and Longqiang Wang and Haoyang Jiang and Mingyang Yi and Shaolei Zhang and Keman Huang and Wuqiong Pan and Ju Fan},
  title = {{MGE: A Membership Guided Data Extraction Attack against Diffusion Models}},
  year = {2026},
  eprint = {2611.10678},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10678},
}

Loading related content...

Figure