Conv-Attention: A Low Computation Attention Calculation Method for Swin Transformer

Zhehang Lou,Suyun Luo,Xiaoci Huang,Dan Wei
DOI: https://doi.org/10.1007/s11063-024-11483-6
IF: 2.565
2024-02-25
Neural Processing Letters
Abstract:Transformer networks have excellent performance in various different vision tasks, especially object detection. However, in practical applications, Transformer is difficult to use on-board due to its large computational complexity. In this paper, we propose a new approach for reducing the computation of self-attention, which is called conv-attention. Different from the work of self-attention, conv-attention is inspired by NetVLAD and adopts the probability obtained by soft classification to replace the similarity calculation between query and key. Moreover, we combine the three convolution operations for computing the attention matrix in order to reduce the computational effort. Using the Swin Transformer as a comparison, experiments show that the parameters and FLOPs are reduced by 15% and 16%. Meanwhile, MAP is improved in vehicle object detection, including both FILR and Nuscenses datasets.
computer science, artificial intelligence
What problem does this paper attempt to address?