arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.17490cs.LGstat.ML
收藏

重新审视、扩展和增强Hessian-Free影响函数

Revisit, Extend, and Enhance Hessian-Free Influence Functions

Brandeis University(布兰迪大学);Tsinghua University(清华大学)

Ziao Yang, Han Yue, Jian Chen, Hongfu Liu

AI总结:

本文重新审视TracIn方法,扩展其应用至公平性和鲁棒性,并通过集成策略增强其性能,通过合成数据和噪声标签检测等实验验证有效性。

摘要:

影响函数是评估模型解释中样本影响、子集训练集选择、噪声标签检测等的关键工具。通过采用一阶泰勒扩展,影响函数可以在不需昂贵模型重新训练的情况下估计样本影响。然而,直接将影响函数应用于深度模型存在挑战,主要由于损失函数的非凸性质和模型参数的规模较大。这种困难不仅使计算Hessian矩阵的逆矩阵成本高昂,而且在某些情况下该逆矩阵不存在。各种方法,包括矩阵分解,已被探索以加速和近似Hessian矩阵的倒置,旨在使影响函数适用于深度模型。在本文中,我们重新审视一种特定但简单且有效的近似方法,即TracIn。该方法用单位矩阵替代Hessian矩阵的逆矩阵。我们深入探讨了为什么这种简单的近似方法表现良好。此外,我们扩展了其应用,不仅用于测量模型效用,还考虑公平性和鲁棒性。最后,我们通过集成策略增强了TracIn。为了验证其有效性,我们在合成数据和广泛的噪声标签检测、大规模语言模型微调样本选择以及对抗攻击防御方面进行了实验评估。

英文摘要:

Influence functions serve as crucial tools for assessing sample influence in model interpretation, subset training set selection, noisy label detection, and more. By employing the first-order Taylor extension, influence functions can estimate sample influence without the need for expensive model retraining. However, applying influence functions directly to deep models presents challenges, primarily due to the non-convex nature of the loss function and the large size of model parameters. This difficulty not only makes computing the inverse of the Hessian matrix costly but also renders it non-existent in some cases. Various approaches, including matrix decomposition, have been explored to expedite and approximate the inversion of the Hessian matrix, with the aim of making influence functions applicable to deep models. In this paper, we revisit a specific, albeit naive, yet effective approximation method known as TracIn. This method substitutes the inverse of the Hessian matrix with an identity matrix. We provide deeper insights into why this simple approximation method performs well. Furthermore, we extend its applications beyond measuring model utility to include considerations of fairness and robustness. Finally, we enhance TracIn through an ensemble strategy. To validate its effectiveness, we conduct experiments on synthetic data and extensive evaluations on noisy label detection, sample selection for large language model fine-tuning, and defense against adversarial attacks.

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

↑