Learning to Weight Parameters for Training Data Attribution

Shuangqi Li, Hieu Le, Jingyi Xu, Mathieu Salzmann

Introduction

Data attribution is the process of identifying which training examples most influenced a specific model output. This is critical for model transparency, copyright protection, and data governance. Traditional methods often assume all model parameters contribute equally to attribution. This paper introduces a self-supervised method to learn importance weights for different parameter groups, significantly improving attribution accuracy across various domains.

The Challenge: Parameter Heterogeneity

Deep neural networks are functionally heterogeneous. Different layers and modules specialize in different tasks—some capture low-level textures, while others handle high-level semantics. Standard gradient-based attribution methods (like TracIn or TRAK) often treat all parameters uniformly or use noisy approximations of the Hessian matrix. This "one-size-fits-all" approach leads to poor attribution quality because "noisy" layers are given the same weight as "highly informative" ones. The authors address this by explicitly learning which parameter groups provide the most reliable attribution signal.

Methodology: Parameter-Weighted Data Attribution

The proposed framework partitions model parameters into $M$ disjoint groups (e.g., layers or blocks) and learns a non-negative weight vector $w$ to scale their contributions.

  1. Weighted Attribution Score: The attribution score is calculated as a weighted sum of the gradient similarities from each parameter group.
  2. Self-Supervised Learning: Since ground-truth attribution labels are unavailable, the authors use a bootstrapping approach. Top-scoring training examples from a base method (like TracIn) serve as "pseudo-positives."
  3. SNR-Grounded Objective: Weights are optimized to maximize the Signal-to-Noise Ratio (SNR) of the attribution score, effectively up-weighting consistent signals and down-weighting noise.
  4. Fine-Grained Attribution: By using specific query sets, the method can learn specialized weights (e.g., for style vs. subject) to isolate specific semantic influences.

Key Insights: Where Does Attribution Signal Come From?

Empirical analysis reveals that attribution strength is far from uniform across a model's architecture.

LDS distribution across parameter groups, blocks, and functionalities.

As shown in Figure 4, in diffusion models, "up-block" layers and self-attention modules (specifically attn1.to_out) provide significantly stronger attribution signals than "down-blocks" or cross-attention layers. This confirms that certain parts of the network are more "responsible" for the final output's characteristics.

Heatmap showing the variation of attribution strength across different layers and attention components.

Furthermore, different layers exhibit semantic specialization. For example, style attribution might peak in earlier layers, while background or subject information is concentrated in specific attention components across different depths (Figure 6). This heterogeneity allows for "fine-grained" attribution that can distinguish between different conceptual elements of a generated output.

Experimental Results

The method was evaluated across image classification (ImageNet), language modeling (Llama3-8B), and image generation (Diffusion).

  • Accuracy Gains: On ImageNet with ResNet-18, the Linear Datamodeling Score (LDS)—a standard metric for attribution accuracy—improved from 11.39% to 23.92%.
  • Mislabeled Data Detection: The approach significantly improved the AUC for detecting corrupted training labels, outperforming unweighted baselines by up to 8 points.
  • Scalability: On Llama3-8B, the weighted approach improved the "Tail-patch score," demonstrating effectiveness for modern, large-scale models.
  • Fine-Grained Disentanglement: In experiments with a synthetic dataset (SB-Pokemon), the method successfully separated subject and style, identifying relevant training images even when styles differed significantly.

Conclusion and Future Work

Learning to weight parameter groups offers a powerful and efficient way to enhance data attribution. The optimization process is fast, typically converging in under a minute. While currently operating at the block level, future work could explore more granular parameter-wise weighting. Additionally, these learned weights could facilitate more precise model editing or the "unlearning" of specific copyrighted content by identifying exactly which training data and parameters are responsible for specific outputs.

Summary updated

BibTeX
@inproceedings{li2026learning,
  author = {Shuangqi Li and Hieu Le and Jingyi Xu and Mathieu Salzmann},
  title = {{Learning to Weight Parameters for Training Data Attribution}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=EhUkQp9Yah},
}
Figure