arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.04606cs.LGcs.AI
收藏

有益还是有害的数据?用于解释语言模型预测的免微调Shapley归因

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

National University of Singapore(新加坡国立大学);Institute for Infocomm Research (I2R), Agency for Science, Technology and Research (A*STAR)(新加坡科技研究局信息通信研究所)

Jingtan Wang, Xiaoqiang Lin, Rui Qiao, Chuan-Sheng Foo, Bryan Kian Hsiang Low

AI总结:

本文针对实例归因分数对数据集重采样缺乏鲁棒性的问题,提出基于神经正切核的免微调Shapley值近似方法FreeShap,在实例归因及数据移除、数据选择、错误标签检测等任务中优于现有方法,并可扩展到大型语言模型。

摘要:

基础模型日益增长的复杂性凸显了可解释性的必要性,尤其是对于微调这一最广泛使用的将模型适配到下游任务的训练方法而言。实例归因作为一类解释方法,通过实例分数将模型预测归因于每个训练样本。然而,实例分数的鲁棒性,特别是对数据集重采样的鲁棒性,一直被忽视。为弥补这一不足,我们提出了一个关于实例分数符号的鲁棒性概念。我们从理论和实验上证明,流行的基于留一法的方法缺乏鲁棒性,而Shapley值表现显著更好,但计算成本更高。据此,我们基于神经正切核引入了一种高效的免微调Shapley值近似方法(FreeShap),用于实例归因。我们通过实验证明,FreeShap在实例归因以及其他以数据为中心的应用(如数据移除、数据选择和错误标签检测)中优于其他方法,并进一步将我们的方法扩展到大型语言模型(LLMs)。我们的代码可在 https://github.com/JTWang2000/FreeShap 获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑