Data Attribution for Text-to-Image Models by Unlearning Synthesized Images
Sheng-Yu Wang, Aaron Hertzmann, Alexei A. Efros, Jun-Yan Zhu, Richard Zhang
TL;DR
This work tackles data attribution for text-to-image diffusion models by proposing an unlearning-based counterfactual framework to identify training images that most influence a given synthesis. The method unlearns the synthesized image via an elastic weight consolidation objective and a Newton update, then scores training samples by how much they are forgotten, with updates focused on cross-attention KV. It is evaluated with a gold-standard leave-K-out retraining on MSCOCO and the Customized Model Benchmark, where it outperforms influence-function and feature-matching baselines across K and model categories. The approach offers a practical, model-aware way to attribute training data, with implications for accountability, data provenance, and potential compensation in AI-generated content.
Abstract
The goal of data attribution for text-to-image models is to identify the training images that most influence the generation of a new image. Influence is defined such that, for a given output, if a model is retrained from scratch without the most influential images, the model would fail to reproduce the same output. Unfortunately, directly searching for these influential images is computationally infeasible, since it would require repeatedly retraining models from scratch. In our work, we propose an efficient data attribution method by simulating unlearning the synthesized image. We achieve this by increasing the training loss on the output image, without catastrophic forgetting of other, unrelated concepts. We then identify training images with significant loss deviations after the unlearning process and label these as influential. We evaluate our method with a computationally intensive but "gold-standard" retraining from scratch and demonstrate our method's advantages over previous methods.
