NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Distilling Diffusion Score Discrepancy for Efficient Training Data Attribution

Shixuan Liu, Joan Serrà, Kin Wai Cheuk, Jinju Kim, Woosung Choi, Yukara Ikemiya, Wei-Hsiang Liao, Jiaqi W. Ma, Yuki MitsufujiarXiv 2026

TL;DR

This paper introduces a highly efficient way to trace which training images influenced a specific output from a diffusion model. By formulating attribution based on "score discrepancy"—how much the model's internal generative direction changes when a sample is removed—and distilling this into a compact embedding model (TIDE), the authors achieve millisecond-speed attribution that is four to five orders of magnitude faster than current gradient-based methods.

What Problem Does This Paper Address?

As diffusion models become central to AI content generation, questions about copyright, memorization, and data influence have become urgent. Training Data Attribution (TDA) aims to answer: "Which specific training images made this generated cat look like this?"

However, existing TDA methods face a "trilemma" of speed, accuracy, and formulation:

  1. Cost: Methods like counterfactual retraining (removing a sample and retraining from scratch) are gold standards but computationally impossible at scale.
  2. Proxies: Many efficient methods use training loss as a proxy. But in generative models, a change in loss doesn't always translate to a visible change in the generated image.
  3. Scalability: Gradient-based methods (like TRAK) often require storing massive per-sample gradients or performing expensive computations for every new query.

Methods

The authors propose a two-step solution: TID (the teacher) and TIDE (the student).

1. TID: Training-data Influence via score Discrepancy

Instead of looking at loss, TID looks at the score field—the vector field that guides the diffusion process. It measures how much the score at a query point would shift if a specific training sample were removed.

  • K-FAC Curvature: To make this practical without retraining, they use a first-order Taylor expansion preconditioned by Kronecker-factored approximate curvature (K-FAC). This is more accurate than the random projections used in previous methods and avoids the need to store massive gradient files.
  • Aligned Draws: They found that using the exact same noise and timesteps for both the query and the training samples ("alignment") is crucial for ranking accuracy.

2. TIDE: TID Embeddings

TID is accurate but still requires a backward pass for every query. To fix this, the authors distill TID into a small student model called TIDE.

  • Internal Activations: TIDE doesn't use a separate image encoder (like CLIP). Instead, it hooks into the diffusion model's own internal transformer activations.
  • Online Distillation: The student is trained alongside the teacher using a "top-heavy" ranking loss (LambdaRank), ensuring the student is especially good at identifying the most influential samples.
  • Real-time Retrieval: Once trained, TIDE produces low-dimensional embeddings. Attributing a new image becomes a simple, lightning-fast nearest-neighbor search in embedding space.
Overview of the TID/TIDE architecture and distillation process

Datasets

The researchers evaluated their approach across three distinct settings:

  • CIFAR-10: Unconditional image generation (32x32).
  • ArtBench-10: Class-conditional artwork generation (64x64).
  • MS-COCO: Complex text-to-image generation using CLIP text embeddings (64x64).

For evaluation, they used seed consistency: they identified the top 2% most influential images for a query, removed them, retrained the model from scratch, and measured how much the new generation drifted from the original.

Key Insights and Ideas

  • Score is the Right Metric: Generative models are defined by their score functions, not just their ability to minimize a training loss. Differentiating the score directly leads to more faithful attribution.
  • The "Nuisance" of Gradient Magnitude: A surprising finding (RQ3) was that normalizing gradient factors—essentially ignoring how strongly a model responds to a sample and focusing only on the direction of the response—actually improves ranking accuracy.
  • Internal Representations are Sufficient: The fact that TIDE can reproduce TID's rankings using only forward activations suggests that the diffusion model's internal state already contains most of the information needed to determine data influence.

Key Results

  • Accuracy: TID matches or outperforms state-of-the-art unlearning-based methods (like MUCS) on ArtBench-10 and MS-COCO.
  • Speed: TIDE is the star of the show. It retains most of TID's accuracy while being 10,000x to 100,000x faster per query. It can attribute a sample in milliseconds—literally faster than the model can generate the image itself.
  • Qualitative Impact: As seen in Figure 1, removing samples identified by TID/TIDE causes significant visible drift in the regenerated images, whereas random removal leaves them nearly identical.
Figure 1: Qualitative comparison of five target queries from each dataset. Top row: original gen- erations from the full-data model. Rows below: regenerations from the same initial noise after removing the samples attributed by each method. Random removal leaves regenerations nearly un- changed, whereas removal by MUCS, TID, and TIDE induces a visible drift.
Figure 2: Attribution accuracy versus warm-cache per-query cost on CIFAR-10 (left), ArtBench (middle), and MS-COCO (right). The horizontal axis is logarithmic; cacheable training-side artifacts are precomputed. Markers with different fills connected by dotted lines trace the variation with M.

Limitations and Future Work

  • Model Specificity: Currently, a TIDE student is specific to the model and dataset it was trained on. You can't easily "transfer" a TIDE model from one diffusion backbone to another.
  • Theoretical Gap: While the empirical results are strong, a general theory explaining exactly why forward activations are sufficient to represent gradient-based influence remains an open research question.
  • Future Directions: The authors suggest exploring "attribution transfer" across different backbones and reusing gradient information from the initial pre-training phase to make the distillation process even cheaper.

Summary updated

BibTeX
@misc{liu2026distilling,
  author = {Shixuan Liu and Joan Serrà and Kin Wai Cheuk and Jinju Kim and Woosung Choi and Yukara Ikemiya and Wei-Hsiang Liao and Jiaqi W. Ma and Yuki Mitsufuji},
  title = {{Distilling Diffusion Score Discrepancy for Efficient Training Data Attribution}},
  year = {2026},
  eprint = {2609.38776},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38776},
}
Figure