论用注意力矩阵进行解释
On Explaining with Attention Matrices
AI总结:
该研究针对注意力权重是否可解释的争议,提出 efficient attention 以分离注意力矩阵的有效成分,并证明其在上下文 NLP 任务中对模型输出具有因果作用。
摘要:
本文探讨了 transformer 模型中注意力权重(AW)与预测输出之间被广泛讨论的、可能存在的解释性联系。与直觉以及关于注意力的早期研究相反,近期的既有研究提出了形式论证和经验证据,表明 AW 不具有解释相关性。我们证明这些形式论证是不正确的。我们引入并有效计算了 efficient attention,它在 AW 发挥解释作用的任务和模型中分离出注意力矩阵的有效成分。我们表明,在需要上下文信息的 NLP 任务中,efficient attention 对预测模型输出具有因果作用(提供最低限度的必要充分条件);并且与文献[7]相反,我们证明 efficient attention 矩阵是概率分布,且能够被有效计算。因此,它们应在解释基于注意力的模型行为方面发挥重要作用。我们提供了支持该方法的经验实验,在四个数据集上用多种指标说明了 efficient attention 的各种性质。
英文摘要:
This paper explores the much discussed, possible explanatory link between attention weights (AW) in transformer models and predicted output. Contrary to intuition and early research on attention, more recent prior research has provided formal arguments and empirical evidence that AW are not explanatorily relevant. We show that the formal arguments are incorrect. We introduce and effectively compute efficient attention, which isolates the effective components of attention matrices in tasks and models in which AW play an explanatory role. We show that efficient attention has a causal role (provides minimally necessary and sufficient conditions) for predicting model output in NLP tasks requiring contextual information, and we show, contrary to [7], that efficient attention matrices are probability distributions and are effectively calculable. Thus, they should play an important part in the explanation of attention based model behavior. We offer empirical experiments in support of our method illustrating various properties of efficient attention with various metrics on four datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。