SurrogateSHAP: Training-Free Contributor Attribution for Text-to-Image (T2I) Models

MingYu Lu, Soham Gadgil, Chris Lin, Chanwoo Kim, Su-In Lee

As generative AI models like Stable Diffusion and FLUX.1 evolve into commercial powerhouses, a critical ethical and economic question has emerged: How do we fairly compensate the creators and individuals whose data trained these models?

Establishing a principled framework for valuing data contributors is essential for building sustainable data marketplaces and ensuring fair compensation. While game theory provides a gold-standard solution known as the "Shapley value," applying it to modern Text-to-Image (T2I) models has historically been computationally impossible.

To bridge this gap, researchers have introduced SurrogateSHAP, a retraining-free framework that accurately attributes model success to data contributors up to 23x faster than traditional methods.

The Dual Bottleneck of Data Attribution

In cooperative game theory, the Shapley value calculates a player's (or data contributor's) exact value by measuring their marginal contribution across all possible combinations of other players. However, applying this to deep learning introduces a "dual bottleneck":

  1. The Retraining Nightmare: Calculating a true Shapley value requires retraining the model from scratch for every possible subset of data contributors. For a T2I model that takes weeks and millions of dollars to train once, doing this thousands of times is a non-starter.
  2. Combinatorial Explosion: The number of possible data subsets grows exponentially with the number of contributors. Even if retraining were instantaneous, evaluating every combination to capture complex interactions between data groups is mathematically intractable.

Existing shortcuts, such as influence functions, often fail to capture the synergistic interactions between different data groups or struggle to optimize for non-linear, human-centric metrics like "aesthetic quality."

Introducing SurrogateSHAP

SurrogateSHAP bypasses these computational hurdles through two clever engineering innovations:

1. The Training-Free Proxy Game

Instead of retraining a model on a subset of data, the authors treat the fully-trained model as a "mixture of experts." They approximate a subset-trained model by performing inference using only the prompts or labels associated with that specific subset. The researchers provide a theoretical bound proving that this inference-only proxy closely tracks the behavior of a truly retrained model. This reveals a surprising insight: the class-conditional distributions of a pretrained model are stable enough to act as a high-fidelity surrogate, eliminating the need to observe the weights of a retrained model.

2. Tree-Based Acceleration

To solve the combinatorial explosion, SurrogateSHAP samples a small number of these "proxy" subsets and uses the resulting utility scores to train a Gradient Boosted Tree (XGBoost). Because decision trees are highly effective at capturing non-linear interactions and synergies between features, the researchers can then apply TreeSHAP—an algorithm that calculates exact Shapley values for tree models analytically—to derive the final attribution scores instantly.

Experimental Setup and Key Findings

The researchers evaluated SurrogateSHAP across a diverse spectrum of model architectures, datasets, and utility metrics:

  • CIFAR-20 (DDPM-CFG): Measured basic image quality using Frechet Inception Distance (FID) and Inception Score.
  • ArtBench (Stable Diffusion v1.5): Attributed "aesthetic scores" to 258 different Post-Impressionist artists.
  • Fashion-Product (FLUX.1): Measured product diversity and perceptual quality across 100 brands using a state-of-the-art 12-billion parameter model.

Superior Accuracy and Speed

SurrogateSHAP proved to be both highly accurate and remarkably efficient. Using the Linear Datamodel Score (LDS)—a metric that measures how well an attribution method predicts the utility of unseen data combinations—SurrogateSHAP significantly outperformed baselines like D-TRAK and DAS. On the CIFAR-20 FID task, it achieved a 51.21% LDS, whereas some prior methods exhibited negative correlations.

Because the framework relies entirely on inference rather than retraining, it delivered massive computational speedups: 23.4x faster on CIFAR-20 and 12.8x faster on ArtBench.

Metric-Agnostic Attribution

Unlike traditional attribution methods that rely on gradients of the loss function, SurrogateSHAP is "metric-agnostic." It can attribute value based on the outcomes users actually care about, such as aesthetic beauty, prompt alignment, or output diversity, rather than just mathematical loss.

Real-World Application: Auditing Model Bias

Beyond financial compensation, data attribution is a powerful tool for AI safety. The researchers demonstrated this using the ISIC Dermatology dataset to audit a model for clinical bias across ten different hospital sites.

SurrogateSHAP successfully localized a "spurious correlation" to a specific hospital (Hospital 7). Images from this site contained distinct hair artifacts that the model was incorrectly associating with melanoma. By identifying this source, researchers could remove the problematic contributor's data and effectively fix the bias, highlighting SurrogateSHAP's utility in auditing safety-critical generative models.

Limitations and Future Directions

While SurrogateSHAP represents a major leap forward, the authors note a few constraints:

  • Prompt Space Overlap: The method works best when contributors map to distinct labels or prompt tokens. If two artists have highly overlapping styles and text descriptions, attribution becomes less precise.
  • Metric Sensitivity: Because scores are tied to specific metrics, a contributor might be deemed "valuable" for image quality but "harmful" for diversity. Human oversight remains necessary to define what constitutes "utility."
  • Outlier Pruning Risks: Using these scores blindly for dataset pruning could inadvertently remove minority data or niche artistic styles if the chosen utility metric does not explicitly value them.

Future work will explore extending this framework to unlabeled data where clear metadata tags are unavailable, and integrating SurrogateSHAP directly into decentralized data marketplaces to enable automated, fair royalty payments for creators.

Summary updated

BibTeX
@inproceedings{lu2026surrogateshap,
  author = {MingYu Lu and Soham Gadgil and Chris Lin and Chanwoo Kim and Su-In Lee},
  title = {{SurrogateSHAP: Training-Free Contributor Attribution for Text-to-Image (T2I) Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=Zdx1hFJarp},
}

Loading related content...

Figure