Data Attribution for Diffusion Models: Timestep-induced Bias in Influence Estimation
Tong Xie, Haoyu Li, Andrew Bai, Cho-Jui Hsieh
TL;DR
This work extends data attribution to diffusion models by introducing Diffusion-TracIn, which operates over the denoising timesteps, and Diffusion-ReTrac, a re-normalized variant to counteract a timestep-induced gradient-norm bias that inflates influence estimates. The authors show that gradient norms vary with timesteps, causing generally influential training samples and unstable attributions; they address this with a two-pronged approach: (i) sampling a sparse set of timesteps to approximate the diffusion trajectory and (ii) renormalizing gradient information to produce more localized, test-targeted attributions. Across image tracing, targeted attribution, and outlier-detection tasks, Diffusion-ReTrac yields substantially more diverse and intuitive influential training samples, reducing the share of generally influential samples and improving precision in attribution (e.g., higher unique-sample counts in top-k proponents). The proposed methods offer a practical, scalable pathway to fairer and more interpretable diffusion-model attributions, with some limitations related to replay-based estimation and the need for deeper theory on large-norm timesteps.
Abstract
Data attribution methods trace model behavior back to its training dataset, offering an effective approach to better understand ''black-box'' neural networks. While prior research has established quantifiable links between model output and training data in diverse settings, interpreting diffusion model outputs in relation to training samples remains underexplored. In particular, diffusion models operate over a sequence of timesteps instead of instantaneous input-output relationships in previous contexts, posing a significant challenge to extend existing frameworks to diffusion models directly. Notably, we present Diffusion-TracIn that incorporates this temporal dynamics and observe that samples' loss gradient norms are highly dependent on timestep. This trend leads to a prominent bias in influence estimation, and is particularly noticeable for samples trained on large-norm-inducing timesteps, causing them to be generally influential. To mitigate this effect, we introduce Diffusion-ReTrac as a re-normalized adaptation that enables the retrieval of training samples more targeted to the test sample of interest, facilitating a localized measurement of influence and considerably more intuitive visualization. We demonstrate the efficacy of our approach through various evaluation metrics and auxiliary tasks, reducing the amount of generally influential samples to $\frac{1}{3}$ of its original quantity.
