Influence Functions for Scalable Data Attribution in Diffusion Models
Bruno Mlodozeniec, Runa Eschenhagen, Juhan Bae, Alexander Immer, David Krueger, Richard Turner
TL;DR
This work extends influence-function theory to diffusion models, addressing data attribution and interpretability by formulating Hessian-based attributions with scalable approximations. It advocates using an (E)K-FAC approximation of the generalized Gauss-Newton for the diffusion objective, recasting prior diffusion-attribution methods as design choices within this framework. Empirical results show improved data-attribution performance (e.g., LDS) over prior approaches and reduced need for hyperparameter tuning, though challenges remain in accurately predicting post-retraining measurement changes and in proxying marginal probabilities. The findings advance data-centric safety and copyright-attribution discussions for diffusion models and point to future work on better marginal-probability proxies and enhanced Hessian-approximation strategies.
Abstract
Diffusion models have led to significant advancements in generative modelling. Yet their widespread adoption poses challenges regarding data attribution and interpretability. In this paper, we aim to help address such challenges in diffusion models by developing an influence functions framework. Influence function-based data attribution methods approximate how a model's output would have changed if some training data were removed. In supervised learning, this is usually used for predicting how the loss on a particular example would change. For diffusion models, we focus on predicting the change in the probability of generating a particular example via several proxy measurements. We show how to formulate influence functions for such quantities and how previously proposed methods can be interpreted as particular design choices in our framework. To ensure scalability of the Hessian computations in influence functions, we systematically develop K-FAC approximations based on generalised Gauss-Newton matrices specifically tailored to diffusion models. We recast previously proposed methods as specific design choices in our framework and show that our recommended method outperforms previous data attribution approaches on common evaluations, such as the Linear Data-modelling Score (LDS) or retraining without top influences, without the need for method-specific hyperparameter tuning.
