arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.03731cs.CL
收藏

注意力可以解释吗?

Is Attention Interpretable?

Paul G. Allen School of Computer Science & Engineering(保罗·G·艾伦计算机科学与工程学院);University of Washington(华盛顿大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)

Sofia Serrano, Noah A. Smith

摘要:

注意力机制最近已经提高了一系列NLP任务的性能。由于注意力层显式地对输入组件的表示进行加权,因此通常还假设注意力可用于识别模型认为重要的信息(例如,特定的上下文化单词标记)。我们通过在已经训练好的文本分类模型中操纵注意力权重并分析其预测结果的差异来测试这一假设是否成立。虽然我们观察到较高的注意力权重与对模型预测的较大影响相关的一些方式,但我们也发现了许多不成立的方式,即,其中,基于梯度的注意力权重排名比它们的大小更好地预测它们的效果。我们的结论是,虽然注意力噪音预测输入组件的整体重要性的模型,它绝不是一个故障安全指标。

英文摘要:

Attention mechanisms have recently boosted performance on a range of NLP tasks. Because attention layers explicitly weight input components' representations, it is also often assumed that attention can be used to identify information that models found important (e.g., specific contextualized word tokens). We test whether that assumption holds by manipulating attention weights in already-trained text classification models and analyzing the resulting differences in their predictions. While we observe some ways in which higher attention weights correlate with greater impact on model predictions, we also find many ways in which this does not hold, i.e., where gradient-based rankings of attention weights better predict their effects than their magnitudes. We conclude that while attention noisily predicts input components' overall importance to a model, it is by no means a fail-safe indicator.

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

↑