Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

XCiT: Cross-Covariance Image Transformers

About

Following their success in natural language processing, transformers have recently shown much promise for computer vision. The self-attention operation underlying transformers yields global interactions between all tokens ,i.e. words or image patches, and enables flexible modelling of image data beyond the local interactions of convolutions. This flexibility, however, comes with a quadratic complexity in time and memory, hindering application to long sequences and high-resolution images. We propose a "transposed" version of self-attention that operates across feature channels rather than tokens, where the interactions are based on the cross-covariance matrix between keys and queries. The resulting cross-covariance attention (XCA) has linear complexity in the number of tokens, and allows efficient processing of high-resolution images. Our cross-covariance image transformer (XCiT) is built upon XCA. It combines the accuracy of conventional transformers with the scalability of convolutional architectures. We validate the effectiveness and generality of XCiT by reporting excellent results on multiple vision benchmarks, including image classification and self-supervised feature learning on ImageNet-1k, object detection and instance segmentation on COCO, and semantic segmentation on ADE20k.

Alaaeldin El-Nouby, Hugo Touvron, Mathilde Caron, Piotr Bojanowski, Matthijs Douze, Armand Joulin, Ivan Laptev, Natalia Neverova, Gabriel Synnaeve, Jakob Verbeek, Herv\'e Jegou• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-100 (test)--
3518
Semantic segmentationADE20K (val)
mIoU48.4
2888
Object DetectionCOCO 2017 (val)--
2643
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy82.7
1952
Instance SegmentationCOCO 2017 (val)
APm0.401
1201
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)83.4
1163
Semantic segmentationADE20K
mIoU38.1
1024
Image ClassificationCIFAR-10 (test)--
906
Image ClassificationImageNet 1k (test)
Top-1 Accuracy82
848
Image ClassificationImageNet-1k (val)
Top-1 Accuracy82.9
844
Showing 10 of 44 rows

Other info

Code

Follow for update