As generative AI becomes deeply integrated into commercial products, the massive datasets required to train diffusion models like Stable Diffusion and DALL-E 2 have sparked significant ethical and legal debates. These datasets are often scraped from the internet, raising questions about how to fairly credit and compensate the original creators, such as artists and photographers.
To implement fair payment or incentive structures, stakeholders need a reliable way to trace a model's performance back to specific data contributors. This mini-paper explores a novel framework called Sparsified-FT Shapley, designed to fairly and efficiently credit the individuals whose data fuels diffusion models.
The Challenge of Data Attribution
While "data attribution" is an active area of research, current methods suffer from two major limitations when applied to generative models:
- Local vs. Global Properties: Most existing attribution methods focus on local properties—for instance, explaining why a model generated a specific pixel or a single image. However, stakeholders and organizations typically care about global properties, such as the model's overall aesthetic quality, its demographic diversity, or its general accuracy.
- Computational Cost: The gold standard for fair attribution is the Shapley value, a concept derived from cooperative game theory that uniquely satisfies mathematical axioms of fairness (like symmetry and efficiency). Unfortunately, calculating exact Shapley values requires retraining a model on thousands of different data subsets. For massive diffusion models that take days or weeks to train, this is computationally impossible.
Methodology: Sparsified Fine-Tuning
To make Shapley value estimation practical without sacrificing fairness, the researchers introduce Sparsified Fine-Tuning (Sparsified-FT). Instead of retraining a full model from scratch for every subset of data contributors, the framework uses a highly efficient three-step approximation.
- Pruning: The process begins with a fully trained model. The researchers prune it by removing weights with small magnitudes, creating a "sparser" version of the network. This leverages the "Lottery Ticket" hypothesis, relying on the idea that a sparse sub-network can approximate the performance of a dense one while being significantly faster to run and train.
- Fine-Tuning: Instead of training from random noise, the pruned model is fine-tuned on specific subsets of contributor data for a small number of steps.
- KernelSHAP Estimation: Finally, a sampling-based version of the Shapley value (KernelSHAP) is used to aggregate these efficient fine-tuning runs into a final "importance score" for each contributor.
The authors provide theoretical proofs demonstrating that as the number of fine-tuning steps increases, the error in the estimated Shapley value remains bounded, making Sparsified-FT a reliable proxy for the true value.
Experimental Setup
The framework was evaluated across three distinct scenarios, each targeting a different global property:
- CIFAR-20: A subset of CIFAR-100 where 20 "contributors" (one per class) provided labeled images. The target metric was the Inception Score, a measure of image quality and variety.
- CelebA-HQ: 50 celebrity identities served as contributors. The target metric was demographic diversity, measured via the entropy of demographic clusters.
- ArtBench (Post-Impressionism): 258 artists served as contributors for a Stable Diffusion model fine-tuned via LoRA. The target metric was aesthetic quality, specifically the 90th percentile of aesthetic scores.
Key Results
The Sparsified-FT Shapley framework demonstrated significant improvements in both accuracy and speed compared to existing attribution methods.
- Superior Accuracy: The framework significantly outperformed existing methods like TRAK and D-TRAK. In the CIFAR-20 task, it achieved a Linear Datamodeling Score (LDS) of ~61.48%, compared to just ~10.90% for D-TRAK. It maintained this strong performance across CelebA-HQ and ArtBench as well.
- Massive Speedups: By mitigating the inference bottleneck, Sparsified-FT was 5.3x to 18.6x faster than retraining from scratch. For the ArtBench dataset, evaluating a single subset took only 10.5 minutes, compared to over 3 hours for traditional retraining.
- Identifying High-Value Contributors: Qualitatively, the framework successfully identified which data sources drove model utility. In CIFAR-20, top contributors were those with the lowest "label noise" (clearer objects). In CelebA-HQ, the top contributors were those belonging to non-majority demographic groups, proving the method can accurately identify the data driving model diversity.
Limitations and Future Work
While a significant step forward, the framework does have limitations. Primarily, it requires "white-box" access to the model (weights and gradients) and the training data, making it difficult to apply to closed-source models like GPT-4 or DALL-E 3. Furthermore, while much faster than retraining, it still requires running many fine-tuning jobs, which establishes a computational floor that may remain expensive for models with billions of parameters.
Future research directions include exploring "unlearning" techniques—removing the influence of specific data without any retraining—and extending this attribution framework to Large Language Models (LLMs), where data compensation remains equally contentious.
Summary updated