XCiT: Cross-Covariance Image Transformers
Alaaeldin El-Nouby, Hugo Touvron, Mathilde Caron, Piotr Bojanowski,, Matthijs Douze, Armand Joulin, Ivan Laptev, Natalia Neverova, Gabriel, Synnaeve, Jakob Verbeek, Herv\'e Jegou

TL;DR
XCiT introduces a cross-covariance attention mechanism that reduces complexity from quadratic to linear, enabling efficient high-resolution image processing while maintaining high accuracy across multiple vision tasks.
Contribution
The paper proposes XCA, a novel attention mechanism with linear complexity, and integrates it into XCiT, achieving scalable and accurate vision transformers.
Findings
XCiT achieves state-of-the-art results on ImageNet-1k classification.
XCiT performs well on object detection and segmentation benchmarks.
The proposed method scales efficiently to high-resolution images.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗kadirnar/timm_model_listmodel· ♡ 1♡ 1
- 🤗timm/xcit_large_24_p8_224.fb_dist_in1kmodel· 37 dl37 dl
- 🤗timm/xcit_large_24_p8_224.fb_in1kmodel· 1.2k dl· ♡ 11.2k dl♡ 1
- 🤗timm/xcit_large_24_p8_384.fb_dist_in1kmodel· 38 dl38 dl
- 🤗timm/xcit_large_24_p16_224.fb_dist_in1kmodel· 188 dl188 dl
- 🤗timm/xcit_large_24_p16_224.fb_in1kmodel· 252 dl252 dl
- 🤗timm/xcit_large_24_p16_384.fb_dist_in1kmodel· 34 dl34 dl
- 🤗timm/xcit_medium_24_p8_224.fb_dist_in1kmodel· 31 dl· ♡ 131 dl♡ 1
- 🤗timm/xcit_medium_24_p8_224.fb_in1kmodel· 60 dl60 dl
- 🤗timm/xcit_medium_24_p8_384.fb_dist_in1kmodel· 64 dl64 dl
Videos
Taxonomy
TopicsDomain Adaptation and Few-Shot Learning · Multimodal Machine Learning Applications · Advanced Neural Network Applications
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Dense Connections · Residual Connection · Batch Normalization · Feedforward Network · Layer Normalization · Depthwise Convolution · Local Patch Interaction · Cross-Covariance Attention · XCiT Layer
