MetaFormer Is Actually What You Need for Vision
Abstract
Domain fit: AI-core
Transformers have shown great potential in computer vision tasks. A common belief is their attention-based token mixer module contributes most to their competence. However, recent works show the attention-based module in Transformers can be replaced by spatial MLPs and the resulted models still perform quite well. Based on this observation, we hypothesize that the general architecture of the Transformers, instead of the specific token mixer module, is more essential to the model's performance. To verify this, we deliberately replace the attention module in Transformers with an embarrassingly simple spatial pooling operator to conduct only basic token mixing. Surprisingly, we observe that the derived model, termed as PoolFormer, achieves competitive performance on multiple computer vision tasks. For example, on ImageNet-1K, PoolFormer achieves 82.1% top-1 accuracy, surpassing well-tuned Vision Transformer/MLP-like baselines DeiT-B/ResMLP-B24 by 0.3%/1.1% accuracy with 35%/52% fewer parameters and 50%/62% fewer MACs. The effectiveness of PoolFormer verifies our hypothesis and urges us to initiate the concept of "MetaFormer", a general architecture abstracted from Transformers without specifying the token mixer. Based on the extensive experiments, we argue that MetaFormer is the key player in achieving superior results for recent Transformer and MLP-like models on vision tasks. This work calls for more future research dedicated to improving MetaFormer instead of focusing on the token mixer modules. Additionally, our proposed PoolFormer could serve as a starting baseline for future MetaFormer architecture design. Code is available at https://github.com/sail-sg/poolformer.
Results and benchmarks
Transformers have shown great potential in computer vision tasks.
Benchmark evidence is limited
Evidence graph: 3 refs, 3 links.
Utility signals: depth 55/100, grounding 75/100, status medium.
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,093 stars · 5,192 forks · Last push Aug 25, 2026 · Apache-2.0 license
- License
- CI
- Dependencies
- Docker
Official implementation from Papers with Code · Repository link is mentioned in the paper metadata · Community adoption signal (37093 stars)
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,093
- Last push
- Aug 25, 2026 (1d)
Official implementation from Papers with Code · Repository link is mentioned in the paper metadata
- No Docker setup
- Maintenance
- Stale
- Confidence
- High
- Reproducibility
- Limited
- Stars
- 1,362
- Last push
- Jun 1, 2024 (816d)
Official implementation from Papers with Code · Repository link is mentioned in the paper metadata
- No push in 12+ months
- No CI pipeline detected
- No Docker setup
- Maintenance
- Active
- Confidence
- Low
- Reproducibility
- Strong
- Stars
- 164,438
- Last push
- Aug 25, 2026 (1d)
Partial overlap with paper title keywords · Community adoption signal (164438 stars)
- 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 1 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.
Showing top 6 by score. 1 additional low-confidence matches are hidden.
- huggingface/transformers
Confidence: Low · 164,438 stars
- facebookresearch/xformers
Confidence: Low · 10,542 stars
- martinsbruveris/tensorflow-image-models
Confidence: Low · 289 stars
- Westlake-AI/openmixup
Confidence: Low · 658 stars
- sithu31296/image-classification
Confidence: Low · 166 stars
- DarshanDeshpande/jax-models
Confidence: Low · 162 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.
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 ).