Learning Correlation Structures for Vision Transformers
About
We introduce a new attention mechanism, dubbed structural self-attention (StructSA), that leverages rich correlation patterns naturally emerging in key-query interactions of attention. StructSA generates attention maps by recognizing space-time structures of key-query correlations via convolution and uses them to dynamically aggregate local contexts of value features. This effectively leverages rich structural patterns in images and videos such as scene layouts, object motion, and inter-object relations. Using StructSA as a main building block, we develop the structural vision transformer (StructViT) and evaluate its effectiveness on both image and video classification tasks, achieving state-of-the-art results on ImageNet-1K, Kinetics-400, Something-Something V1 & V2, Diving-48, and FineGym.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Semantic segmentation | ADE20K (val) | mIoU48.5 | 2731 | |
| Object Detection | COCO 2017 (val) | -- | 2454 | |
| Image Classification | ImageNet-1K 1.0 (val) | Top-1 Accuracy86.7 | 1866 | |
| Instance Segmentation | COCO 2017 (val) | APm0.437 | 1144 | |
| Semantic segmentation | ADE20K | mIoU48.5 | 936 | |
| Video Classification | Kinetics 400 (test) | Top-1 Acc83.4 | 97 | |
| Video Classification | Something-Something v2 | Top-1 Acc71.5 | 56 | |
| Video Classification | Something-Something V1 | Top-1 Acc61.3 | 13 | |
| Video Classification | Diving-48 v1 (test) | Top-1 Accuracy88.3 | 11 | |
| Video Classification | FineGym (test) | Gym288 Score54.2 | 8 |