arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.11844cs.LGcs.CLcs.CY
收藏

语言数据影响力的先声夺人

First is Better Than Last for Language Data Influence

Google Inc.(谷歌公司);Carnegie Mellon University(卡内基梅隆大学)

Chih-Kuan Yeh, Ankur Taly, Mukund Sundararajan, Frederick Liu, Pradeep Ravikumar

摘要:

识别有影响力的训练样本的能力使我们能够调试训练数据并解释模型行为。这样做的现有技术是基于训练数据通过模型参数的影响流。对于NLP应用中的大型模型,通过所有模型参数来研究此流在计算上通常是不可行的,因此技术通常选择最后一层权重。然而,我们观察到,由于连接到最后一层权重的激活包含“共享逻辑”,因此通过最后一层权重计算的受影响的数据容易出现“抵消效应”,其中不同示例的数据影响具有相互矛盾的大幅度。消除效应降低了影响力分数的区分能力,根据此度量删除有影响力的示例通常不会改变模型的行为。为了减轻这种情况,我们提出了一种称为TracIn-WE的技术,该技术修改了一种称为TracIn的方法,以在词嵌入层而不是最后一层上操作,其中消除效果不太严重。一个潜在的问题是,基于词嵌入层的影响可能不会编码足够高级别的信息。然而,我们发现梯度(与嵌入不同)不会受到这种影响,可能是因为它们链接到更高的层。我们表明,TracIn-WE显着优于其他数据影响方法应用在最后一层显着的情况下删除评估三种语言分类任务的不同模型。此外,TracIn-WE不仅可以在整个训练输入的水平上产生分数,还可以在训练输入中的单词水平上产生分数,这是调试的进一步帮助。

英文摘要:

The ability to identify influential training examples enables us to debug training data and explain model behavior. Existing techniques to do so are based on the flow of training data influence through the model parameters. For large models in NLP applications, it is often computationally infeasible to study this flow through all model parameters, therefore techniques usually pick the last layer of weights. However, we observe that since the activation connected to the last layer of weights contains "shared logic", the data influenced calculated via the last layer weights prone to a ``cancellation effect'', where the data influence of different examples have large magnitude that contradicts each other. The cancellation effect lowers the discriminative power of the influence score, and deleting influential examples according to this measure often does not change the model's behavior by much. To mitigate this, we propose a technique called TracIn-WE that modifies a method called TracIn to operate on the word embedding layer instead of the last layer, where the cancellation effect is less severe. One potential concern is that influence based on the word embedding layer may not encode sufficient high level information. However, we find that gradients (unlike embeddings) do not suffer from this, possibly because they chain through higher layers. We show that TracIn-WE significantly outperforms other data influence methods applied on the last layer significantly on the case deletion evaluation on three language classification tasks for different models. In addition, TracIn-WE can produce scores not just at the level of the overall training input, but also at the level of words within the training input, a further aid in debugging.

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

↑