An Empirical Study of Spatial Attention Mechanisms in Deep Networks

被引:424
作者
Zhu, Xizhou [1 ,2 ]
Cheng, Dazhi [2 ]
Zhang, Zheng [2 ]
Lin, Stephen [2 ]
Dai, Jifeng [2 ]
机构
[1] Univ Sci & Technol China, Hefei, Anhui, Peoples R China
[2] Microsoft Res Asia, Beijing, Peoples R China
来源
2019 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2019) | 2019年
关键词
D O I
10.1109/ICCV.2019.00679
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Attention mechanisms have become a popular component in deep neural networks, yet there has been little examination of how different influencing factors and methods for computing attention from these factors affect performance. Toward a better general understanding of attention mechanisms, we present an empirical study that ablates various spatial attention elements within a generalized attention formulation, encompassing the dominant Transformer attention as well as the prevalent deformable convolution and dynamic convolution modules. Conducted on a variety of applications, the study yields significant findings about spatial attention in deep networks, some of which run counter to conventional understanding. For example, we find that the comparison of query and key content in Transformer attention is negligible for self-attention, but vital for encoder-decoder attention. On the other hand, a proper combination of deformable convolution with key content saliency achieves the best accuracy-efficiency tradeoff in self-attention. Our results suggest that there exists much room for improvement in the design of attention mechanisms.
引用
收藏
页码:6687 / 6696
页数:10
相关论文
共 48 条
[1]  
Alkhouli Tamer, 2016, P 1 C MACH TRANSL
[2]  
[Anonymous], 2018, ARXIV181007595, DOI [10.18653/v1/W18-6304, DOI 10.18653/V1/W18-6304]
[3]  
[Anonymous], 2017, ARXIV171003348
[4]  
[Anonymous], 2018, CVPR
[5]  
Bahdanau D, 2016, Arxiv, DOI arXiv:1409.0473
[6]  
Battaglia Peter, 2016, NIPS
[7]  
Britz D., 2017, P 2017 C EMPIRICAL M, DOI [10.18653/v1/D17-1151, DOI 10.18653/V1/D17-1151]
[8]  
Chen W., 2016, ARXIV160701628
[9]  
Cheng J., 2016, P C EMP METH NAT LAN, P551, DOI DOI 10.18653/V1/D16-1053
[10]  
Cohn T., 2016, INCORPORATING STRUCT, P876