GUDA: Counterfactual Group-wise Training Data Attribution for Diffusion Models via Unlearning
Naoki Murata, Yuhta Takida, Chieh-Hsin Lai, Toshimitsu Uesaka, Bac Nguyen, Stefano Ermon, Yuki Mitsufuji
TL;DR
GUDA presents a scalable approach to group-wise data attribution for diffusion models by approximating counterfactual LOGO models through machine unlearning starting from the full-data model. Attribution is measured via differences in the ELBO between the full model and unlearned counterfactuals, enabling efficient estimation of group influence. The framework provides two instantiations: Guda-U for unconditional generation using ReTrack-style redirection and Guda-C for conditional text-to-image using weighted style anchors, with empirical validation on CIFAR-10 and UnlearnCanvas showing superior head-focused performance and substantial speedups over LOGO. This work advances model transparency and accountability by offering practical, scalable group-level attribution, suitable for copyright, data-provider compensation, and debugging in large diffusion pipelines.
Abstract
Training-data attribution for vision generative models aims to identify which training data influenced a given output. While most methods score individual examples, practitioners often need group-level answers (e.g., artistic styles or object classes). Group-wise attribution is counterfactual: how would a model's behavior on a generated sample change if a group were absent from training? A natural realization of this counterfactual is Leave-One-Group-Out (LOGO) retraining, which retrains the model with each group removed; however, it becomes computationally prohibitive as the number of groups grows. We propose GUDA (Group Unlearning-based Data Attribution) for diffusion models, which approximates each counterfactual model by applying machine unlearning to a shared full-data model instead of training from scratch. GUDA quantifies group influence using differences in a likelihood-based scoring rule (ELBO) between the full model and each unlearned counterfactual. Experiments on CIFAR-10 and artistic style attribution with Stable Diffusion show that GUDA identifies primary contributing groups more reliably than semantic similarity, gradient-based attribution, and instance-level unlearning approaches, while achieving x100 speedup on CIFAR-10 over LOGO retraining.
