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

注意力不是解释

Attention is not Explanation

Northeastern University(东北大学)

Sarthak Jain, Byron C. Wallace

摘要:

注意力机制在神经NLP模型中得到了广泛的应用。除了提高预测性能外,这些通常被吹捧为提供透明度:配备了注意力的模型提供了关注输入设备的分布,这通常被(至少是隐含地)表示为传达输入的相对重要性。然而,目前还不清楚注意力权重和模型输出之间存在什么关系。在这项工作中,我们在各种NLP任务中进行了广泛的实验,旨在评估注意力权重为预测提供有意义的“解释”的程度。我们发现,他们基本上没有。例如,学习的注意力权重通常与基于梯度的特征重要性度量不相关,并且可以识别非常不同的注意力分布,但仍然产生等效的预测。我们的研究结果表明,标准的注意力模块并不能提供有意义的解释,也不应该被当作有意义的解释。所有实验的代码可在https://github.com/successar/AttentionExplanation上获得。

英文摘要:

Attention mechanisms have seen wide adoption in neural NLP models. In addition to improving predictive performance, these are often touted as affording transparency: models equipped with attention provide a distribution over attended-to input units, and this is often presented (at least implicitly) as communicating the relative importance of inputs. However, it is unclear what relationship exists between attention weights and model outputs. In this work, we perform extensive experiments across a variety of NLP tasks that aim to assess the degree to which attention weights provide meaningful `explanations' for predictions. We find that they largely do not. For example, learned attention weights are frequently uncorrelated with gradient-based measures of feature importance, and one can identify very different attention distributions that nonetheless yield equivalent predictions. Our findings show that standard attention modules do not provide meaningful explanations and should not be treated as though they do. Code for all experiments is available at https://github.com/successar/AttentionExplanation.

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

↑