Taming Hyperparameter Sensitivity in Data Attribution: Practical Selection Without Costly Retraining

Weiyi Wang, Junwei Deng, Yuzheng Hu, Shiyuan Zhang, Xirui Jiang, Runting Zhang, Han Zhao, Jiaqi W. Ma

Introduction

Data attribution methods—tools designed to identify which training samples most heavily influenced a model's prediction—have become a cornerstone of "Data-Centric AI." By quantifying the contribution of individual data points, researchers can debug models, detect mislabeled data, and understand model behavior. However, these methods are highly sensitive to hyperparameters.

Despite a recent surge in new attribution techniques, tuning them usually requires thousands of costly model retrainings. This paper introduces a "retraining-free" surrogate indicator that allows researchers to select optimal regularization values for influence-based methods at a fraction of the computational cost, effectively taming the hidden costs of data attribution.

The Tuning Bottleneck

To know if a data attribution method is accurate, researchers rely on gold-standard metrics like the Linear Datamodeling Score (LDS). Unfortunately, calculating LDS requires retraining the model on hundreds or thousands of different data subsets to verify if the predicted influence matches the actual change in model behavior.

This creates a severe "tuning bottleneck." Attribution methods like Influence Functions (IF) are not plug-and-play; they rely heavily on hyperparameters such as regularization ($\lambda$) and projection dimensions. Because evaluating these hyperparameters via LDS is prohibitively expensive, most practitioners default to standard values. As this study demonstrates, these defaults are often highly sub-optimal, leaving significant performance on the table.

Methodology: Benchmarking and the Surrogate Indicator

The authors address this challenge through a two-stage approach:

  1. Large-Scale Benchmarking: They conducted the first systematic empirical study of hyperparameter sensitivity across popular attribution methods, including Influence Functions (IF), TRAK, TracIn, and LoGra. The study spans diverse architectures and data types, including image (MNIST, CIFAR-2), text (WikiText2), and audio (MAESTRO), utilizing the dattri library for standardized implementation.
  2. The Surrogate Indicator: Focusing on the critical regularization term ($\lambda$) used in Influence Functions, the authors developed a theoretical framework to predict attribution quality without retraining. They propose a surrogate indicator ($\xi_{z',\lambda}$) that measures the alignment (or "angle") between the model's gradient and the update direction.
  3. If $\lambda$ is too small, the calculation becomes numerically unstable.
  4. If $\lambda$ is too large, the regularization washes out the actual data structure.
  5. By finding a $\lambda$ where this surrogate indicator is approximately $0.5$, users can pinpoint a high-performing hyperparameter configuration entirely retraining-free.

Key Insights and Ideas

The comprehensive benchmarking revealed several critical, and sometimes counter-intuitive, behaviors of data attribution methods.

Comprehensive benchmark results showing hyperparameter entanglement, the 'Golden Middle' of regularization, and the effect of training epochs.
  • The "Golden Middle" of Regularization: The authors proved that LDS performance typically follows a uni-modal (hump-shaped) curve relative to $\lambda$. Their surrogate indicator successfully identifies the peak of this hump.
  • Hyperparameters are Entangled: Hyperparameters do not act in isolation. For example, as you increase the "projection dimension" (a technique used to speed up computations), the model becomes increasingly sensitive to the regularization term. Tuning one requires tuning the other.
  • More Training $\neq$ Better Attribution: Counter-intuitively, using a model checkpoint from a later training epoch does not always yield better attribution scores. In several cases, earlier checkpoints provided more reliable data influence signals.
  • Universality: Although the surrogate was derived specifically for Influence Functions, it generalizes surprisingly well to other methods like TRAK, suggesting a fundamental mathematical link between these algorithms.

Key Results

By utilizing the surrogate-selected $\lambda$, the authors achieved significantly higher LDS scores compared to default settings.

LDS performance across different Influence Function solvers based on regularization.
  • Massive Performance Gains: Proper tuning unlocks the true potential of these methods. For instance, in an IF (CG) setup on MNIST, selecting the optimal regularization led to a 3x increase in attribution accuracy compared to poorly tuned baselines.
  • Downstream Success: In practical tasks like "mislabel detection" or "data removal," the selected hyperparameters consistently outperformed the defaults. In data removal experiments on CIFAR-2, the authors' method identified influential points so accurately that removing them caused a much sharper drop in model accuracy than the baselines (e.g., 56.3% accuracy vs. 69.3% for the TRAK default).
  • Unprecedented Efficiency: The proposed selection process is exceptionally lightweight. It requires only the existing model parameters and a small validation set, entirely bypassing the thousands of retrainings usually required to compute LDS.

Limitations and Future Work

The primary limitation of this work is its scope: the theoretical surrogate is specifically designed for the regularization term in influence-based methods. While highly effective, it does not yet provide an automated way to tune other hyperparameters like the projection dimension or checkpoint selection.

Additionally, the study primarily relies on the LDS metric for evaluation. Future work should investigate whether these hyperparameter sensitivities persist across other evaluation metrics like "Brittleness" or highly specific downstream tasks. Ultimately, this paper serves as a vital call to action, encouraging the AI community to treat hyperparameters as first-class citizens in data attribution research rather than mere afterthoughts.

Summary updated

BibTeX
@inproceedings{wang2025taming,
  author = {Weiyi Wang and Junwei Deng and Yuzheng Hu and Shiyuan Zhang and Xirui Jiang and Runting Zhang and Han Zhao and Jiaqi W. Ma},
  title = {{Taming Hyperparameter Sensitivity in Data Attribution: Practical Selection Without Costly Retraining}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=qVDEM93mCP},
}
Figure