arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.07714cs.CLcs.AIcs.LG
收藏

从信息论的角度重新审视注意权重

Revisiting Attention Weights as Explanations from an Information Theoretic Perspective

Infinity Lab(无限实验室);Stevens Institute of Technology(史蒂文斯理工学院)

Bingyang Wen, K. P. Subbalakshmi, Fan Yang

摘要:

注意力机制最近在一系列NLP任务上表现出令人印象深刻的性能,注意力分数通常用作模型可解释性的代理。然而,关于注意力权重实际上是否可以用来确定模型中最重要的输入,存在争议。我们从信息论的角度来处理这个问题,通过测量模型输出和隐藏状态之间的互信息。通过大量的实验,我们得出以下结论:(i)加法和深度注意力机制可能更好地保留隐藏状态和模型输出之间的信息(ii)消融研究表明,加法注意可以主动学习解释其输入的隐藏表征的重要性;(iii)当注意力值几乎相同时,注意力值的排序与互信息的排序不一致(iv)使用温度低于1的Gumbel-Softmax,与softmax相比,往往会产生更偏斜的注意力分数分布,因此是可解释设计的更好选择;(v)某些构建块在保持互信息的有序列表和注意力权重顺序之间的相关性方面更好(例如,BiLSTM编码器和Additive attention的组合)。我们的研究结果表明,当注意力机制与其他模型元素仔细结合时,它确实有潜力成为模型解释的捷径。

英文摘要:

Attention mechanisms have recently demonstrated impressive performance on a range of NLP tasks, and attention scores are often used as a proxy for model explainability. However, there is a debate on whether attention weights can, in fact, be used to identify the most important inputs to a model. We approach this question from an information theoretic perspective by measuring the mutual information between the model output and the hidden states. From extensive experiments, we draw the following conclusions: (i) Additive and Deep attention mechanisms are likely to be better at preserving the information between the hidden states and the model output (compared to Scaled Dot-product); (ii) ablation studies indicate that Additive attention can actively learn to explain the importance of its input hidden representations; (iii) when attention values are nearly the same, the rank order of attention values is not consistent with the rank order of the mutual information(iv) Using Gumbel-Softmax with a temperature lower than one, tends to produce a more skewed attention score distribution compared to softmax and hence is a better choice for explainable design; (v) some building blocks are better at preserving the correlation between the ordered list of mutual information and attention weights order (for e.g., the combination of BiLSTM encoder and Additive attention). Our findings indicate that attention mechanisms do have the potential to function as a shortcut to model explanations when they are carefully combined with other model elements.

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

↑