Skip to main content
QUICK REVIEW

[论文解读] Estimating Training Data Influence by Tracking Gradient Descent

Garima Pruthi, Frederick Liu|arXiv (Cornell University)|Feb 19, 2020
Adversarial Robustness in Machine LearningComputer Science参考文献 29被引用 6
一句话总结

TracIn 是一种可扩展的方法,通过追踪随机梯度下降(SGD)训练过程中的梯度下降动态,来估计单个训练数据点对模型预测的影响。它使用一阶近似、模型检查点以及选择性层分析,高效地计算任何使用随机梯度下降训练的深度学习模型的影响分数,从而实现可解释且可操作的数据清洗。

ABSTRACT

We introduce a method called TracIn that computes the influence of a training example on a prediction made by the model. The idea is to trace how the loss on the test point changes during the training process whenever the training example of interest was utilized. We provide a scalable implementation of TracIn via: (a) a first-order gradient approximation to the exact computation, (b) saved checkpoints of standard training procedures, and (c) cherry-picking layers of a deep neural network. In contrast with previously proposed methods, TracIn is simple to implement; all it needs is the ability to work with gradients, checkpoints, and loss functions. The method is general. It applies to any machine learning model trained using stochastic gradient descent or a variant of it, agnostic of architecture, domain and task. We expect the method to be widely useful within processes that study and improve training data.

研究动机与目标

  • 开发一种用于估计单个训练样本对模型预测影响的方法。
  • 在无需模型微调或架构修改的情况下,实现高效且可扩展的影响估计。
  • 通过识别具有影响力或存在问题的训练样本,支持以数据为中心的 AI 工作流。
  • 提供一种通用解决方案,适用于任何使用 SGD 训练的模型,无论其架构或任务如何。

提出的方法

  • TracIn 通过追踪在训练过程中当特定训练样本被更新时,测试损失的变化来计算影响。
  • 它使用影响分数的一阶近似来降低计算成本,避免精确计算二阶导数。
  • 该方法利用标准训练过程中保存的模型检查点,高效重建梯度轨迹。
  • 它应用选择性挑选(cherry-picking)技术,仅选择深层网络中最相关的层,从而减少计算开销。
  • 影响分数源自测试样本梯度与优化过程中训练样本梯度的内积。
  • 该方法与模型架构、损失函数和学习任务无关,具有广泛的适用性。

实验结果

研究问题

  • RQ1如何高效估计单个训练样本对模型预测的影响?
  • RQ2影响估计能否在大规模深度学习模型中实现可扩展且实用?
  • RQ3该方法是否能在不同架构、数据集和学习任务中保持泛化能力?
  • RQ4影响分数能否帮助识别误标或异常的训练样本?

主要发现

  • TracIn 仅使用梯度和检查点,无需重新训练模型,即可提供对训练数据影响的可扩展且准确的近似。
  • 实验表明,即使采用一阶近似,该方法与精确影响分数的相关性仍非常高。
  • TracIn 在多种数据集和架构上均成功识别出误标样本和具有影响力的训练实例。
  • 该方法计算效率高,适用于任何使用 SGD 训练的模型,包括视觉和语言模型。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。