arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2105.08855cs.CL
收藏

有效的注意力揭示了可解释性

Effective Attention Sheds Light On Interpretability

University of Washington(华盛顿大学);Allen Institute for AI(艾伦人工智能研究所)

Kaiser Sun, Ana Marasović

摘要:

一个Transformer自注意子层的注意矩阵可以被分解为两个分量,并且只有其中一个分量(有效注意)对模型输出有贡献。这让我们不禁要问,视觉化的有效注意力是否会给出与标准注意力不同的结论。使用一个子集的GLUE任务和BERT,我们进行了分析,比较两个注意矩阵,并表明他们的解释不同。有效注意与语言建模预训练相关的特征(如分隔符标记)关联较少,并且它更有可能说明由模型捕获的语言特征,用于解决最终任务。鉴于发现的差异,我们建议使用有效的注意力来研究Transformer的行为,因为它与设计的模型输出更相关。

英文摘要:

An attention matrix of a transformer self-attention sublayer can provably be decomposed into two components and only one of them (effective attention) contributes to the model output. This leads us to ask whether visualizing effective attention gives different conclusions than interpretation of standard attention. Using a subset of the GLUE tasks and BERT, we carry out an analysis to compare the two attention matrices, and show that their interpretations differ. Effective attention is less associated with the features related to the language modeling pretraining such as the separator token, and it has more potential to illustrate linguistic features captured by the model for solving the end-task. Given the found differences, we recommend using effective attention for studying a transformer's behavior since it is more pertinent to the model output by design.

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

↑