Helpful or Harmful Data? Fine-tuning-free Shapley Attribution for Explaining Language Model Predictions

Jingtan Wang, Xiaoqiang Lin, Rui Qiao, Chuan-Sheng Foo, K. H. Low
2/12/2026

No official code found. Best implementation: JTWang2000/FreeShap (14 stars, last commit 2024-05-29).

Abstract

The increasing complexity of foundational models underscores the necessity for explainability, particularly for fine-tuning, the most widely used training method for adapting models to downstream tasks. Instance attribution, one type of explanation, attributes the model prediction to each training example by an instance score. However, the robustness of instance scores, specifically towards dataset resampling, has been overlooked. To bridge this gap, we propose a notion of robustness on the sign of the instance score. We theoretically and empirically demonstrate that the popular leave-one-out-based methods lack robustness, while the Shapley value behaves significantly better, but at a higher computational cost. Accordingly, we introduce an efficient fine-tuning-free approximation of the Shapley value (FreeShap) for instance attribution based on the neural tangent kernel. We empirically demonstrate that FreeShap outperforms other methods for instance attribution and other data-centric applications such as data removal, data selection, and wrong label detection, and further generalize our scale to large language models (LLMs). Our code is available at https://github.com/JTWang2000/FreeShap.

View on arXivView PDF

Code Implementations(1)

JTWang2000/FreeShapCommunity100%

Fine-tuning-free Shapley value (FreeShap) for instance attribution

141Shell, PythonMay 29, 20242 years ago

Similar Papers

Cite this paper

@article{wang2026helpful,
  title  = {Helpful or Harmful Data? Fine-tuning-free Shapley Attribution for Explaining Language Model Predictions},
  author = {Jingtan Wang and Xiaoqiang Lin and Rui Qiao and Chuan-Sheng Foo and K. H. Low},
  year   = {2026},
  eprint = {2406.04606},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2406.04606},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.04606.svg)](https://codeofpaper.com/paper/2406.04606)

Discussion