TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/XCiT: Cross-Covariance Image Transformers

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é Jegou

2021-06-17NeurIPS 2021 12Self-Supervised Image ClassificationImage ClassificationSemantic SegmentationInstance Segmentationobject-detectionObject Detection
PaperPDFCodeCode(official)CodeCodeCode(official)CodeCodeCodeCodeCodeCodeCode

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 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.

Results

TaskDatasetMetricValueModel
Semantic SegmentationADE20KValidation mIoU48.4XCiT-M24/8 (UperNet)
Semantic SegmentationADE20KValidation mIoU48.1XCiT-S24/8 (UperNet)
Semantic SegmentationADE20KValidation mIoU47.1XCiT-S24/8 (Semantic-FPN)
Semantic SegmentationADE20KValidation mIoU46.9XCiT-M24/8 (Semantic-FPN)
Semantic SegmentationADE20KValidation mIoU46.6XCiT-S12/8 (UperNet)
Semantic SegmentationADE20KValidation mIoU44.2XCiT-S12/8 (Semantic-FPN)
Object DetectionCOCO minivalbox AP48.5XCiT-M24/8
Object DetectionCOCO minivalbox AP48.1XCiT-S24/8
Image ClassificationImageNetGFLOPs417.9XCiT-L24
Image ClassificationImageNetGFLOPs188XCiT-M24
Image ClassificationImageNetGFLOPs106XCiT-S24
Image ClassificationImageNetGFLOPs55.6XCiT-S12
3DCOCO minivalbox AP48.5XCiT-M24/8
3DCOCO minivalbox AP48.1XCiT-S24/8
Instance SegmentationCOCO minivalmask AP43.7XCiT-M24/8
Instance SegmentationCOCO minivalmask AP43XCiT-S24/8
2D ClassificationCOCO minivalbox AP48.5XCiT-M24/8
2D ClassificationCOCO minivalbox AP48.1XCiT-S24/8
2D Object DetectionCOCO minivalbox AP48.5XCiT-M24/8
2D Object DetectionCOCO minivalbox AP48.1XCiT-S24/8
10-shot image generationADE20KValidation mIoU48.4XCiT-M24/8 (UperNet)
10-shot image generationADE20KValidation mIoU48.1XCiT-S24/8 (UperNet)
10-shot image generationADE20KValidation mIoU47.1XCiT-S24/8 (Semantic-FPN)
10-shot image generationADE20KValidation mIoU46.9XCiT-M24/8 (Semantic-FPN)
10-shot image generationADE20KValidation mIoU46.6XCiT-S12/8 (UperNet)
10-shot image generationADE20KValidation mIoU44.2XCiT-S12/8 (Semantic-FPN)
16kCOCO minivalbox AP48.5XCiT-M24/8
16kCOCO minivalbox AP48.1XCiT-S24/8

Related Papers

SeC: Advancing Complex Video Object Segmentation via Progressive Concept Construction2025-07-21Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17DiffOSeg: Omni Medical Image Segmentation via Multi-Expert Collaboration Diffusion Model2025-07-17SCORE: Scene Context Matters in Open-Vocabulary Remote Sensing Instance Segmentation2025-07-17