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

排斥性注意:再论多头注意力的贝叶斯推理

Repulsive Attention: Rethinking Multi-head Attention as Bayesian Inference

State University of New York at Buffalo(纽约州立大学布法罗分校);Microsoft Research Redmond(微软研究院雷德蒙德分院);Yahoo Research(雅虎研究院);Duke University(杜克大学)

Bang An, Jie Lyu, Zhenyi Wang, Chunyuan Li, Changwei Hu, Fei Tan, Ruiyi Zhang, Yifan Hu, Changyou Chen

摘要:

神经注意力机制在许多自然语言处理应用中起着重要的作用。特别是,多头注意力的使用扩展了单头注意力,允许模型从不同的角度共同关注信息。然而,如果没有明确的约束,多头注意力可能会遭受注意力崩溃,这使得不同的头部提取相似的注意力特征,从而限制了模型的表示能力。在本文中,我们首次从贝叶斯的角度提供了一个新的理解多头注意力。基于最近发展起来的粒子优化采样技术,我们提出了一种非参数的方法,显式地提高了排斥多头注意力,从而加强模型的表达能力。值得注意的是,我们的贝叶斯解释提供了理论上的启发,不太明白的问题:为什么和如何使用多头注意力。在各种注意力模型和应用上的大量实验表明,所提出的排斥性注意力可以提高学习的特征多样性,从而在各种任务上具有一致的性能改善的更多信息表示。

英文摘要:

The neural attention mechanism plays an important role in many natural language processing applications. In particular, the use of multi-head attention extends single-head attention by allowing a model to jointly attend information from different perspectives. Without explicit constraining, however, multi-head attention may suffer from attention collapse, an issue that makes different heads extract similar attentive features, thus limiting the model's representation power. In this paper, for the first time, we provide a novel understanding of multi-head attention from a Bayesian perspective. Based on the recently developed particle-optimization sampling techniques, we propose a non-parametric approach that explicitly improves the repulsiveness in multi-head attention and consequently strengthens model's expressiveness. Remarkably, our Bayesian interpretation provides theoretical inspirations on the not-well-understood questions: why and how one uses multi-head attention. Extensive experiments on various attention models and applications demonstrate that the proposed repulsive attention can improve the learned feature diversity, leading to more informative representations with consistent performance improvement on various tasks.

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

↑