NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diffusion Attribution Score: Evaluating Training Data Influence in Diffusion Models

Jinxu Lin, Linwei Tao, Minjing Dong, Chang Xu

As generative AI models like Stable Diffusion become ubiquitous, questions surrounding copyright, privacy, and data influence have taken center stage. If a model generates an image that closely mimics a specific artist's style, how can we definitively prove which training images were responsible?

This paper introduces the Diffusion Attribution Score (DAS), a novel framework designed to accurately trace the "ancestry" of AI-generated images back to their training data. By directly measuring shifts in the model's predicted distribution rather than relying on indirect loss functions, DAS achieves state-of-the-art performance in data attribution while remaining computationally feasible for large-scale models.

The Flaw in Existing Attribution Methods

The task of identifying which training samples influenced a specific output is known as data attribution. Existing methods typically approach this by observing how the "diffusion loss" (the error in predicting noise) changes when a specific image is removed from the training set.

However, the authors argue that loss is a poor proxy for influence. Two models might have the exact same loss value but generate wildly different images because they are "wrong" in different directions. Current methods measure how much the model's error changes, but they fail to capture how the model's actual behavior shifts.

Consider a "Cat-to-Dog" intuition: If a model trained on cats and dogs generates a cat, removing all cat samples might force it to generate a dog instead. The overall loss might stay exactly the same (because the model is still perfectly good at generating dogs), but the output has changed completely. Loss-based methods miss this nuance; DAS is designed to capture it.

The DAS Methodology

To solve this, the authors propose measuring the direct KL-divergence between the distribution predicted by the full model and a hypothetical model trained without a specific sample. Because retraining a model thousands of times to test each sample is computationally impossible, they employ several mathematical approximations:

  1. Linearization: They approximate the model's complex output function as a linear one around its optimal parameters.
  2. Newton’s Method & Sherman-Morrison: These classical mathematical tools are used to estimate how model parameters would change if one data point were removed, bypassing the need for actual retraining.
  3. High-Dimensional Tracking: Unlike previous methods that reduce model output to a simple scalar, the DAS formula treats the noise predictor's output as a high-dimensional feature, preserving the "directional" information of the data's influence.

To scale DAS for massive models, the team introduced critical speed-up techniques, including Random Projection (reducing gradient dimensionality), Normalization (stabilizing gradients across diffusion timesteps), and Model Compression (focusing attribution calculations only on the critical "up-blocks" of the U-Net architecture).

Key Results and Performance

The researchers evaluated DAS across several datasets, including CIFAR-10, CelebA, ArtBench, and Stable Diffusion models fine-tuned with LoRA. The primary metric used for evaluation is the Linear Datamodeling Score (LDS), which measures how well an attribution method predicts the actual change in model output after data is removed.

DAS consistently outperformed all baselines, establishing a new state-of-the-art.

LDS performance on CIFAR datasets

As shown in the CIFAR evaluations above, DAS achieved significantly higher LDS scores. For instance, on CIFAR-2 (Validation, 100 timesteps), DAS achieved an LDS of ~43.08% compared to the previous best, D-TRAK, at ~33.74%.

LDS performance on ArtBench datasets

This performance gap is maintained in more complex, style-heavy contexts like the ArtBench dataset. Furthermore, DAS is highly efficient: using DAS with only 10 diffusion timesteps frequently outperforms previous methods (like D-TRAK) that utilize a full 100 timesteps.

In visual "counterfactual" tests, the authors used DAS to identify and remove the top 1,000 most influential images for a specific generation. The resulting retrained models showed significantly larger visual deviations from the original outputs than models where data was removed using competing attribution methods, validating that DAS successfully identifies the most impactful training data.

Limitations and Future Work

While highly effective, DAS has a few limitations:

  • Computational Cost: Though vastly faster than retraining, calculating and storing large gradient matrices remains resource-intensive for the largest models (like SDXL).
  • Assumption of Additivity: The framework assumes the influence of individual images is additive, which may not fully capture complex, non-linear interactions between groups of training images.
  • Domain Specificity: The current work is tailored specifically to image generation. Applying DAS to other generative domains, such as Large Language Models (LLMs) or audio generation, remains an exciting open area for future research.

Summary updated

BibTeX
@inproceedings{lin2025diffusion,
  author = {Jinxu Lin and Linwei Tao and Minjing Dong and Chang Xu},
  title = {{Diffusion Attribution Score: Evaluating Training Data Influence in Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=kuutidLf6R},
}
Figure