概述
They matter because they turn an opaque model into something auditable for copyright, debugging, and trust.
深入探讨
Influence functions come from robust statistics and were adapted to deep learning by Koh and Liang in 2017. The core question is counterfactual: how would the model's loss on a test point change if a particular training example were removed or up-weighted? Rather than actually retraining (which is hopelessly expensive), influence functions approximate that change using calculus. They compute the gradient of the loss for the training point and the test point, then connect them through the inverse Hessian of the loss, which captures the curvature of the model's parameter space. Under Koh and Liang’s standard upweighting-on-test-loss convention, I_up,loss measures how infinitesimally increasing a training point’s weight changes the loss on a chosen test point. A positive value means upweighting raises test loss (a harmful influence); a negative value means it lowers test loss (a helpful influence). Removing a point reverses the sign of the first-order estimated change. Other influence scores may target predictions or use a different sign convention, so define the quantity before interpreting its sign. The result is a ranked list of the most responsible training examples.
现实世界的实施
追踪哪些受版权保护的书籍对语言模型生成的段落影响最大,以进行法律和许可分析
通过显示错误标记的训练图像来调试错误分类,这些图像将模型推向错误的答案
检测对特定预测产生巨大影响的中毒或异常训练示例
审核信用或招聘模型,以显示哪些历史记录推动了有争议的决策
训练数据归因影响函数的未来
预计基于影响力的归因将成为人工智能问责的基础设施。监管机构和法院在调查受版权保护的文本是否形成输出时需要示例级别的出处,而开发人员将使用它来显示标签错误或有毒的数据。 TRAK 和梯度草图等更便宜的近似方法正在将归因推向实时,将其与遗忘相结合可以让团队在无需完全重新训练的情况下消除文档的影响。
付诸实践
为什么这很重要
- 成本与预算. 多年来,架构决策决定着性能和运营成本。
- 更清晰的判决. 技术教育帮助团队选择正确的堆栈,而不仅仅是最新的堆栈。
- 质量控制. 更好的工程选择可以减少生产中的可靠性事故。
留意
- 优化一项基准测试可以隐藏更广泛的系统弱点。
- 基础设施和维护成本常常被低估。
- 随着系统变得更加复杂,安全性和可观察性差距可能会扩大。
后续步骤
- 在实施之前定义延迟、质量和成本目标。
- 在实际负载和数据条件下进行基准测试。
- 仪器监控错误、漂移和用户影响。
- 在扩展之前准备回滚和事件响应路径。
不断探索
常见问题
What is Influence Functions for Training Data Attribution?
影响函数估计每个训练示例对模型预测的影响程度,让您可以将输出追溯到导致该结果的数据。它们很重要,因为它们将不透明的模型变成了可审核版权、调试和信任的模型。
影响函数近似什么反事实问题?
影响函数估计扰动训练示例的权重对测试点损失的影响,近似留一法再训练而不这样做。
哪个数学对象使得大型模型的精确影响计算变得困难?
经典的影响力公式需要对所有参数进行 Hessian 矩阵求逆,这对于具有数十亿参数的模型来说是不可行的。
谁在 2017 年的一篇著名论文中将影响函数应用于现代深度学习?
Pang Wei Koh 和 Percy Liang 于 2017 年发表的论文“通过影响函数理解黑盒预测”将该技术引入深度学习。
根据Koh和Liang的标准I_up,loss约定,负值表示什么?
For I_up,loss, a negative derivative means increasing the training point’s weight decreases the selected test loss; removing it has the opposite first-order effect.
Anthropic 使用哪种近似将影响函数扩展到大型语言模型?
Anthropic 的 2023 年研究使用 EK-FAC 来近似逆 Hessian,从而能够对大型语言模型进行影响分析。