Rotate to Attend: Convolutional Triplet Attention Module

Diganta Misra, Trikay Nalamada, Ajay Uppili Arasanipalai, Qibin Hou
10/6/2020
1,062 citations
cs.CV
transformer-attention

Official code: landskape-ai/triplet-attention (444 stars, Jupyter Notebook, MIT, last commit 2025-02-11).

Abstract

Benefiting from the capability of building inter-dependencies among channels or spatial locations, attention mechanisms have been extensively studied and broadly used in a variety of computer vision tasks recently. In this paper, we investigate light-weight but effective attention mechanisms and present triplet attention, a novel method for computing attention weights by capturing cross-dimension interaction using a three-branch structure.

Show full abstract

For an input tensor, triplet attention builds inter-dimensional dependencies by the rotation operation followed by residual transformations and encodes inter-channel and spatial information with negligible computational overhead. Our method is simple as well as efficient and can be easily plugged into classic backbone networks as an add-on module. We demonstrate the effectiveness of our method on various challenging tasks including image classification on ImageNet-1k and object detection on MSCOCO and PASCAL VOC datasets. Furthermore, we provide extensive in-sight into the performance of triplet attention by visually inspecting the GradCAM and GradCAM++ results. The empirical evaluation of our method supports our intuition on the importance of capturing dependencies across dimensions when computing attention weights. Code for this paper can be publicly accessed at https://github.com/LandskapeAI/triplet-attention

View on arXivView PDF

Code Implementations(1)

MIT

Official PyTorch Implementation for "Rotate to Attend: Convolutional Triplet Attention Module." [WACV 2021]

44451Jupyter Notebook, PythonApr 14, 20201 years agoMIT
arxivattention-mechanismattention-mechanismscomputer-visionconvolutional-neural-networks+6 more

Similar Papers

Cite this paper

@article{misra2020rotate,
  title  = {Rotate to Attend: Convolutional Triplet Attention Module},
  author = {Diganta Misra and Trikay Nalamada and Ajay Uppili Arasanipalai and Qibin Hou},
  year   = {2020},
  eprint = {2010.03045},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.03045}
}

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/2010.03045.svg)](https://codeofpaper.com/paper/2010.03045)

Discussion