arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.14308cs.LGstat.ML
收藏

注意力不能解释

Attention that does not Explain Away

Google(谷歌);UT Austin(德克萨斯大学奥斯汀分校)

Nan Ding, Xinjie Fan, Zhenzhong Lan, Dale Schuurmans, Radu Soricut

摘要:

对于大量任务,基于Transformer架构的模型比基于竞争架构的模型具有更好的准确性。Transformer的一个独特之处在于它普遍应用了自我注意机制,允许在任意距离上自由地传递信息。通过高斯混合模型的概率观点的注意,我们发现的经验证据表明,Transformer的注意往往“解释”某些输入神经元。为了弥补这一点,我们提出了一个双重规范化的注意力计划,这是简单的实现,并提供了理论保证,避免“解释”的效果,而不引入显着的计算或内存成本。从经验上讲,我们表明,新的注意力计划的结果在几个著名的基准提高了性能。

英文摘要:

Models based on the Transformer architecture have achieved better accuracy than the ones based on competing architectures for a large set of tasks. A unique feature of the Transformer is its universal application of a self-attention mechanism, which allows for free information flow at arbitrary distances. Following a probabilistic view of the attention via the Gaussian mixture model, we find empirical evidence that the Transformer attention tends to "explain away" certain input neurons. To compensate for this, we propose a doubly-normalized attention scheme that is simple to implement and provides theoretical guarantees for avoiding the "explaining away" effect without introducing significant computational or memory cost. Empirically, we show that the new attention schemes result in improved performance on several well-known benchmarks.

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

↑