SEAT:稳定且可解释的注意力
SEAT: Stable and Explainable Attention
摘要:
目前,注意力机制成为大多数最先进的自然语言处理(NLP)模型中的标准装置,这不仅是因为它可以获得出色的性能,而且还因为它提供的神经结构行为的合理的内在解释,这是众所周知的难以分析。然而,最近的研究表明,注意力在训练或测试过程中的随机性和扰动(如随机种子和嵌入向量的轻微扰动)是不稳定的,这阻碍了它成为一个忠实的解释工具。因此,一个自然的问题是,我们是否可以找到一些替代品,目前的注意,这是更稳定的,可以保持最重要的特点,解释和预测的注意。在本文中,为了解决这个问题,我们提供了第一个严格的定义,这种替代,即稳定和可解释的注意力(SEAT)。具体地说,SEAT应该具有以下三个属性:(1)它的预测分布被强制接近基于普通注意力的分布;(2)它的top-k指数与普通注意力的top-k指数有很大的重叠;(3)它对扰动是鲁棒的,即,对SEAT的任何微小扰动都不会使预测分布发生太大变化,这隐含地表明它对随机性和扰动是稳定的。最后,通过对各种数据集的深入实验,我们通过六种不同的模型解释、稳定性和准确性评估指标,将我们的SEAT与使用RNN、BiLSTM和BERT架构的其他基线方法进行了比较。结果表明,SEAT模型在保持注意可解释性的同时,对不同的扰动和随机性具有更高的稳定性,是一种更可靠的解释。此外,与普通注意力相比,SEAT几乎没有效用(准确性)下降。
英文摘要:
Currently, attention mechanism becomes a standard fixture in most state-of-the-art natural language processing (NLP) models, not only due to outstanding performance it could gain, but also due to plausible innate explanation for the behaviors of neural architectures it provides, which is notoriously difficult to analyze. However, recent studies show that attention is unstable against randomness and perturbations during training or testing, such as random seeds and slight perturbation of embedding vectors, which impedes it from becoming a faithful explanation tool. Thus, a natural question is whether we can find some substitute of the current attention which is more stable and could keep the most important characteristics on explanation and prediction of attention. In this paper, to resolve the problem, we provide a first rigorous definition of such alternate namely SEAT (Stable and Explainable Attention). Specifically, a SEAT should has the following three properties: (1) Its prediction distribution is enforced to be close to the distribution based on the vanilla attention; (2) Its top-k indices have large overlaps with those of the vanilla attention; (3) It is robust w.r.t perturbations, i.e., any slight perturbation on SEAT will not change the prediction distribution too much, which implicitly indicates that it is stable to randomness and perturbations. Finally, through intensive experiments on various datasets, we compare our SEAT with other baseline methods using RNN, BiLSTM and BERT architectures via six different evaluation metrics for model interpretation, stability and accuracy. Results show that SEAT is more stable against different perturbations and randomness while also keeps the explainability of attention, which indicates it is a more faithful explanation. Moreover, compared with vanilla attention, there is almost no utility (accuracy) degradation for SEAT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。