XCiT: Cross-Covariance Image Transformers
Abstract
Domain fit: AI-core · Core AI workload signals detected from paper context and implementation/artifact evidence.
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 and benchmarks
Following their success in natural language processing, transformers have recently shown much promise for computer vision.
| Task | Dataset | Metric | Value | Source |
|---|---|---|---|---|
| Classification | ImageNet | Top-1 Accuracy | 83.4 | paper-derived |
Audit each benchmark finding before selecting an implementation path. Evidence refs map to the disclosure below.
Evidence graph: 3 refs, 3 links.
Utility signals: depth 90/100, grounding 85/100, status high.
Implementation
Best maintained implementation now
The largest collection of PyTorch image encoders / backbones. Including train, eval, inference, export scripts, and pretrained weights -- ResNet, ResNeXT, EfficientNet, NFNet, Vision Transformer (ViT), MobileNetV4, MobileNet-V3 & V2, RegNet, DPN, CSPNet, Swin Transformer, MaxViT, CoAtNet, ConvNeXt, and more
37,080 stars · 5,188 forks · Last push Aug 21, 2026 · Apache-2.0 license
- License
- CI
- Dependencies
- Docker
Official implementation from Papers with Code · Repository link is mentioned in the paper metadata · Partial overlap with paper title keywords
rwightman/pytorch-image-models is the strongest maintained implementation based on ranking signals. CI workflows are present. License is declared (Apache-2.0).
Open rwightman/pytorch-image-models- No repository-level red flags were detected, but paper-specific preprocessing and hyperparameter details may still be under-specified.
- Selected rwightman/pytorch-image-models as the strongest maintained implementation for new work.
- Includes CI workflow signals.
- Includes dependency/environment manifest signals.
- Repository activity is within the last 24 months.
Compare implementation paths
Compare maintenance quality, reproducibility coverage, and evidence confidence before choosing a reproduction baseline.
- Maintenance
- Active
- Confidence
- High
- Reproducibility
- Strong
- Stars
- 37,080
- Last push
- Aug 21, 2026 (3d)
Official implementation from Papers with Code · Repository link is mentioned in the paper metadata
- No Docker setup
- Maintenance
- Archived
- Confidence
- High
- Reproducibility
- Limited
- Stars
- 681
- Last push
- Sep 28, 2021 (1792d)
Official implementation from Papers with Code · Repository link is mentioned in the paper metadata
- Repository archived
- No push in 12+ months
- No CI pipeline detected
- Maintenance
- Stale
- Confidence
- Low
- Reproducibility
- Strong
- Stars
- 1,953
- Last push
- May 9, 2025 (473d)
Community adoption signal (1953 stars)
- No push in 12+ months
- No Docker setup
- Low confidence match
Reproduction readiness
Ready to run
Ready to reproduce
- Clone rwightman/pytorch-image-models and install dependencies from pyproject.toml.
- CI pipeline detected, so automated tests are in place.
- Last updated 3 days ago.
Quick start
git clone https://github.com/rwightman/pytorch-image-models.git
pip install -e . Repositories and ecosystem
No additional verified repositories beyond the primary recommendation.
These repositories had low-confidence matching signals and are hidden by default.
- alibaba/EasyCV
Confidence: Low · 1,953 stars
- facebookresearch/vissl
Confidence: Low · 3,293 stars
- BR-IDL/PaddleViT
Confidence: Low · 1,238 stars
- facebookresearch/dino
Confidence: Low · 7,612 stars
Hugging Face artifacts
No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.
Models
Tip: start with models, then check datasets and spaces if you need evaluation data or demos.
Research context
Tasks
Image classification
Methods
Transformer
Domains
Computer vision
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.
Data includes links from Papers with Code ( CC-BY-SA-4.0 ).