Switchable Self-attention Module

Shanshan Zhong, Wushao Wen, Jinghui Qin
9/13/2022
cs.CV
transformer-attention

Official code: Qrange-group/SEM (9 stars, Python, MIT, PyTorch, last commit 2023-06-16).

Abstract

Attention mechanism has gained great success in vision recognition. Many works are devoted to improving the effectiveness of attention mechanism, which finely design the structure of the attention operator.

Show full abstract

These works need lots of experiments to pick out the optimal settings when scenarios change, which consumes a lot of time and computational resources. In addition, a neural network often contains many network layers, and most studies often use the same attention module to enhance different network layers, which hinders the further improvement of the performance of the self-attention mechanism. To address the above problems, we propose a self-attention module SEM. Based on the input information of the attention module and alternative attention operators, SEM can automatically decide to select and integrate attention operators to compute attention maps. The effectiveness of SEM is demonstrated by extensive experiments on widely used benchmark datasets and popular self-attention networks.

View on arXivView PDF

Code Implementations(1)

Qrange-group/SEMOfficial100%
PyTorchMIT

SEM can automatically decide to select and integrate attention operators to compute attention maps.

91PythonSep 13, 20223 years agoMIT
excitation-networksimage-classificationpytorchself-attention

Similar Papers

Cite this paper

@article{zhong2022switchable,
  title  = {Switchable Self-attention Module},
  author = {Shanshan Zhong and Wushao Wen and Jinghui Qin},
  year   = {2022},
  eprint = {2209.05680},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.05680}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.05680.svg)](https://codeofpaper.com/paper/2209.05680)

Discussion