Introduction
Diffusion models have transformed image synthesis through iterative denoising, defining trajectories from noise to coherent data. However, as models like Stable Diffusion become ubiquitous, they raise thorny questions about privacy and copyright. If a model generates an image that looks suspiciously like a copyrighted work, how do we prove it was "memorized" from the training set versus being a novel creation?
Researchers have developed a new framework for "data provenance" in diffusion models, moving beyond simple membership checks to a more robust ternary classification: is an image part of the training set (member), a novel generation (belonging), or from an external source? By analyzing the entire temporal trajectory of an image through the denoising process, this method achieves near-perfect attribution even when traditional attacks fail.
The Problem with Current Attribution
Current techniques, known as Membership Inference Attacks (MIAs), usually try to threshold the model's loss: if the loss is low, the image was likely in the training set. However, the authors identify two fatal flaws in this approach:
- The Synthetic Spoiler: Model-generated images naturally have very low loss, meaning they "fool" traditional MIAs into thinking they are training samples.
- Distribution Shifts: Existing methods are brittle. If the "external" data looks slightly different from the training data (a distribution shift), simple baselines that don't even look at the model can sometimes outperform sophisticated attacks.
Methods: Analyzing the Denoising Trajectory
The authors propose a "white-box" framework that leverages the temporal dynamics of the diffusion process. Instead of looking at a single point in time, they treat the denoising process as a trajectory.
Key components of this approach include:
- Trajectory Feature Extraction: For a given image, the method calculates the denoising loss ($L_t$), the gradient with respect to the input ($\nabla_x L_t$), and the gradient with respect to the model parameters ($\nabla_\theta L_t$) across the entire range of timesteps ($t=0$ to $T$).
- Linear Probing: These features are concatenated into a high-dimensional vector. A simple linear classifier is then trained on this vector to distinguish between the three classes (Member, Belonging, External).
- Challenging the "Goldilocks Zone": Previous research suggested that membership information is only visible in a narrow window of intermediate noise levels. This paper argues that valuable "fingerprints" are scattered across the entire trajectory, and using the whole path provides much higher robustness.
Datasets and Baselines
The study utilizes several standard benchmarks to simulate realistic origin attribution scenarios:
- CIFAR-10 & CIFAR-10.1: Used for basic membership testing and evaluating distribution shifts.
- CelebA-HQ 256: A high-resolution face dataset used to train the primary diffusion models.
- FFHQ-256: Used as the "external" dataset for CelebA-HQ experiments to test how the model handles data that is similar (faces) but from a different source.
- Generative Baselines: To test model attribution, they compared their DDPM (Denoising Diffusion Probabilistic Model) against outputs from DDIM, WaveDiff, and DDGAN.
Key Insights
- Loss is Not Enough: Relying solely on denoising loss is insufficient because synthetic images (the "belonging" class) mimic the low-loss profile of training data.
- Gradients are the "Fingerprint": Including gradient information ($\nabla_x L_t$ and $\nabla_\theta L_t$) provides a much richer signal of how the model "perceives" the data, making it harder for synthetic or external data to masquerade as training members.
- The Power of the Whole Path: By sampling timesteps across the entire diffusion process (e.g., $t=0, 1, \dots, 999$), the classifier captures global patterns in how an image is reconstructed, which are far more informative than any single "Goldilocks" step.
- Unifying Provenance: The paper argues that Membership Inference and Model Attribution should not be separate tasks. A single ternary classifier is a more realistic and powerful tool for real-world data forensics.
Results
The proposed trajectory-based method significantly outperforms existing state-of-the-art attacks:
- Near-Perfect Accuracy: On the CelebA-HQ dataset, the ternary classification (Member vs. Belonging vs. External) achieved an AUC of 99.3%.
- Robustness to Shifts: While representative threshold-based methods failed when faced with distribution shifts (sometimes performing worse than a "model-blind" ResNet baseline), the trajectory method remained highly effective.
- Data Extraction: The authors showed they could filter 30,000 model generations down to a subset of 1,700 that were highly similar to training members, effectively identifying instances of model memorization.
- Model Attribution: In an "open-world" setting, the method could accurately attribute an image to a specific DDPM model even when compared against other high-quality generators like DDGAN.
Limitations and Future Work
- Computational Cost: Extracting features across the entire trajectory requires multiple passes through the diffusion model, making the attack roughly as slow as the original image generation process. This is fine for forensics but less ideal for real-time applications.
- Open-World Attribution: While the method works well for known models, the authors acknowledge that failure cases occur with certain architectures like DDGAN, suggesting that more work is needed to make attribution truly universal across all generative architectures.
- Foundation Models: The current study focuses on models trained on specific datasets (like CelebA). Extending this to massive, closed-source foundation models (like DALL-E 3) remains a significant challenge due to the lack of white-box access.
Summary updated