Attention Modules

The Cross-Attention module is an attention module used in CrossViT for fusion of multi-scale features. The CLS token of the large branch (circle) serves as a query token to interact with the patch tokens from the small branch through attention. $f\left(·\right)$ and $g\left(·\right)$ are projections to align dimensions. The small branch follows the same procedure but swaps CLS and patch tokens from another branch.

Source: CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification

Papers


Paper Code Results Date Stars

Tasks


Task Papers Share
Decoder 14 7.04%
Semantic Segmentation 10 5.03%
Object Detection 7 3.52%
Retrieval 6 3.02%
Image Classification 6 3.02%
Autonomous Driving 5 2.51%
Image Super-Resolution 4 2.01%
Super-Resolution 4 2.01%
Sentence 4 2.01%

Categories