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

通过广义影响函数深入理解黑箱预测

Generalized Influence Functions for Better Model Change Estimates

POSTECH(浦项科技大学)

Hyeonsu Lyu, Jonggyu Jang, Sehyun Ryu, Hyun Jong Yang

AI总结:

本文提出广义影响函数,通过选择与输入数据相关的少量参数并消除无关参数的干扰梯度变化,以更准确地估计训练数据对黑箱模型预测的影响,实验表明仅更新5%参数即可优于传统影响函数。

摘要:

影响函数(Influence functions, IFs)阐明了训练数据如何改变模型行为。然而,大规模模型日益增长的规模和非凸性使得影响函数变得不准确。我们推测这种脆弱性来自一阶近似,它可能在与所考察数据无关的参数中引起干扰性变化。然而,仅仅从所选参数计算影响可能会产生误导,因为它无法消除未选参数对所分析数据的隐藏影响。因此,我们的方法引入了广义影响函数(generalized IFs),在精确估计目标参数影响的同时,消除固定参数上的干扰梯度变化。我们通过基于输出和基于梯度的参数选择方法,识别出与输入数据密切相关的目标更新参数。我们在类别移除和标签更改任务上,用影响函数的多种替代方案验证了广义影响函数。实验符合“少即是多”的理念,表明在所有任务中,仅更新模型5%的参数就能产生比其他影响函数更准确的结果。我们相信,我们的提议可以作为一种基础工具,用于优化模型、进行数据分析,并超越影响函数的局限性来增强AI可解释性。代码可在 https://github.com/hslyu/GIF 获取。

英文摘要:

Influence functions (IFs) approximate the effect of removing or reweighting training data on a trained model, but their linear approximation often lacks the accuracy required for reliable post hoc model editing. We identify two culprits and propose generalized influence functions (GIFs) and pseudo-LiSSA (p-LiSSA) to address each in turn. First, classical IFs update all parameters indiscriminately, leading to unnecessary updates to data-irrelevant parameters. GIFs instead restrict edits to a data-relevant subspace and leave the remaining parameters fixed. We theoretically show that GIFs achieve a tighter error bound than classical IFs when the parameter subset is properly selected, and that effective subspace selection requires avoiding low-curvature directions while retaining a sufficiently large component of the target gradient. Second, LiSSA iterations are destabilized by negative Hessian eigenvalues, which existing methods handle via $\ell_2$ damping, at the cost of a biased inverse-Hessian-vector product (iHVP) estimate. p-LiSSA eliminates this bias by solving the restricted inverse-Hessian problem without such damping. We further show that the presence of low-curvature directions slows p-LiSSA convergence, and that the data-relevant subspace selected by GIFs mitigates this. Across five image and text unlearning benchmarks, GIFs update only 10% of the parameters yet preserve accuracy up to 2.12 percentage points better than IF-based baselines, while improving unlearning performance by up to 2.73 percentage points. Moreover, p-LiSSA improves restricted iHVP estimation by reducing the residual by 9.6$\times$ over existing iHVP baselines, while using 19.8% less memory with comparable computation time. Code is available at https://github.com/hslyu/GIF.

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

↑