Abstract
Identifying the specific training data that influences the output of text-to-image (T2I) generative models is a critical challenge for copyright, ethics, and model interpretability. However, traditional data attribution methods are computationally prohibitive for large-scale diffusion models. This paper introduces Attribution by Customization (AbC), a novel framework that simulates ground-truth influence by injecting specific exemplar images into models via customization. Using a massive benchmark of over 4 million synthesized images, the authors evaluate and enhance feature-based attribution methods. Their findings demonstrate that fine-tuning general-purpose vision features (e.g., DINO, CLIP) significantly improves the ability to trace generated content back to its training sources, even across different domains and styles.
1. Introduction
Modern text-to-image models like Stable Diffusion and Midjourney produce high-fidelity images that often mirror the styles or subjects found in their training data. As these models see wider adoption, the need for data attribution—the ability to pinpoint which training samples most influenced a specific generated output—has become paramount. This is not merely a technical curiosity; it is central to addressing legal concerns regarding copyright and ethical questions about data ownership.
In standard machine learning contexts, attribution is often handled via influence functions or "leave-one-out" retraining. For diffusion models trained on billions of images, these approaches are computationally impossible. Furthermore, the lack of a "ground truth" dataset—where the influence of specific images is known—has historically prevented the rigorous evaluation of proposed attribution algorithms.
2. Attribution by Customization (AbC)
To overcome the lack of ground truth, the authors propose a proxy task called Attribution by Customization (AbC). Instead of attempting to trace influence backward through a pre-trained model, they force influence forward.
2.1 The "Add-one-in" Approach
The core of AbC involves taking a pre-trained model and fine-tuning it on a single "exemplar" image (or a small set of style images) using techniques like Custom Diffusion. By prompting this customized model to generate new images, the researchers create a dataset where the influence of the exemplar is guaranteed by construction.
2.2 Attribution as Retrieval
Under this framework, data attribution is framed as an information retrieval problem. Given a synthesized image, an effective attribution method should rank the known exemplar image higher than a large set of "distractor" images (e.g., random samples from LAION-400M). This allows for quantitative benchmarking using standard metrics like Recall@K.
3. Improving Attribution via Contrastive Learning
The authors found that while off-the-shelf vision models provide a baseline for attribution, they are not optimized for this specific task. To improve performance, they utilized their AbC dataset to train a linear mapping layer on top of frozen feature extractors like CLIP and DINO.
By employing a contrastive loss, the model learns to map synthesized images closer to their respective exemplars in the feature space. Additionally, the authors addressed the issue of "soft influence scores." Raw cosine similarities are often too similar to distinguish between high-impact and low-impact images. By learning a calibrated temperature and threshold for a softmax function, the method can assign meaningful percentage-based responsibility scores to training images.
4. Experimental Results
The study utilized a massive dataset comprising over 4 million synthesized images from 18,000 customized models, covering both object-centric (ImageNet) and artistic-style (BAM-FG, Artchive) domains.
4.1 Performance of Feature Extractors
Initial evaluations showed that general vision models (DINO, CLIP) outperformed specialized models designed for image copy detection (SSCD) or style matching (ALADIN). This suggests that data attribution requires a deep semantic understanding of the image rather than just low-level feature matching.
4.2 Gains from Fine-Tuning
The introduction of the learned linear layer provided significant improvements. For example, CLIP’s Recall@10 for object-centric attribution increased from approximately 27.7% to 37.6%.
4.3 Generalization and Scaling
One of the most promising results was the model's ability to generalize. Features tuned on specific object classes improved attribution on entirely unseen classes and different artistic datasets. Furthermore, models trained on single-image exemplars successfully scaled to models fine-tuned on up to 1,000 images (MSCOCO), indicating that the AbC proxy is a valid surrogate for general data attribution.
5. Discussion and Limitations
While AbC represents a significant step forward, several challenges remain:
- Compositional Attribution: Current methods analyze the image as a whole. Attributing different parts of a generated image (e.g., a character from one source and a background from another) remains an open problem.
- Domain Gap: There is a fundamental difference between the dynamics of few-shot customization and the massive-scale pre-training of base models.
- Hidden Influence: Images from the original pre-training set may still influence the customized model's output, introducing "noise" into the attribution benchmark.
6. Conclusion
The Attribution by Customization framework provides the first scalable, quantitative benchmark for data attribution in generative models. By demonstrating that semantic feature spaces can be fine-tuned to trace influence, this work lays the foundation for more transparent and accountable AI systems.
Summary updated