Abstract
As diffusion models (DMs) become the standard for high-quality image synthesis, they introduce significant risks regarding privacy and copyright. This paper presents a novel white-box framework for data provenance by analyzing the temporal dynamics of the entire denoising trajectory. By extracting internal model signals—specifically loss and gradients—across all time steps, the authors demonstrate a robust method for Membership Inference and Origin Attribution. This approach effectively distinguishes between training "members," model-generated "belonging" samples, and "external" data, achieving state-of-the-art performance even under distribution shifts.
The Challenge of Data Forensics in Diffusion
Diffusion models have a tendency to memorize sensitive training data, leading to potential reproduction of copyrighted or private information. Current "data forensics" tools designed to determine the relationship between a model and a specific image face three critical limitations:
- Synthetic vs. Real Ambiguity: Membership Inference Attacks (MIAs) often struggle to differentiate a model's training data from its own novel generations.
- Distribution Shift Brittleness: Many methods fail when "external" data differs slightly from the training distribution, sometimes performing worse than simple image classifiers that do not even access the diffusion model.
- The "Goldilocks Zone" Myth: Previous research focused on a narrow set of intermediate denoising steps, ignoring the rich information embedded in the full trajectory.
Methodology: Analyzing the Denoising Trajectory
The proposed framework treats the diffusion process as a source of high-dimensional features. Instead of a single snapshot, it analyzes the path from noise to data ($t=0$ to $T-1$).
Trajectory Feature Extraction
For each time step $t$, three key signals are extracted:
- Denoising Loss ($L_t$): Measures how accurately the model predicts the added noise.
- Input Gradient ($\nabla_x L_t$): Captures the local structure of the image as perceived by the model.
- Parameter Gradient ($\nabla_\theta L_t$): Reflects the model's "surprise" at the data point relative to its learned weights.
Origin Attribution (OA)
These features are concatenated into a trajectory representation. A simple linear probe is then trained on a small fraction of the data (under 3.4%) to perform ternary classification:
- Member: Part of the model's original training set.
- Belonging: Generated by the model itself (synthetic).
- External: From an entirely different source or model.
Key Insights and Results
The research yields several critical findings regarding the nature of diffusion model memorization and attribution:
- The Power of Temporal Dynamics: The evolution of features across the full trajectory provides a unique "fingerprint" that is significantly more robust than single-step analysis. The "Goldilocks zone" conjecture is shown to be incomplete.
- Synthetic Data as a Distractor: Interestingly, synthetic data often achieves a lower denoising loss than actual training data. This explains why traditional threshold-based MIAs frequently misidentify model generations as training members.
- Superior Performance: On the CelebA-HQ dataset, the framework achieved an AUC of 99.3% for unified Origin Attribution, significantly outperforming existing state-of-the-art methods like GSA.
- Robustness to Distribution Shifts: Unlike previous methods that relied on simple distribution differences, this approach maintains high accuracy even when external data (e.g., FFHQ) is visually similar to training data (CelebA-HQ).
Conclusion and Future Directions
By leveraging the internal gradients and loss trajectories of diffusion models, this framework provides a powerful tool for auditing model memorization and ensuring data provenance. While extracting these features is computationally intensive—comparable to a full inference pass—it offers a level of forensic detail previously unavailable. Future work will explore scaling these techniques to massive foundational models like Stable Diffusion and investigating robustness against adversarial attempts to mask image origins.
Summary updated