Semantic Scholar Open Access 2021 1296 sitasi

MetaFormer is Actually What You Need for Vision

Weihao Yu Romy Mi Luo Pan Zhou Chenyang Si Yichen Zhou +3 lainnya

Abstrak

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 49%/61% fewer MACs. The effectiveness of Pool-Former 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.

Topik & Kata Kunci

Penulis (8)

W

Weihao Yu

R

Romy Mi Luo

P

Pan Zhou

C

Chenyang Si

Y

Yichen Zhou

X

Xinchao Wang

J

Jiashi Feng

S

Shuicheng Yan

Format Sitasi

Yu, W., Luo, R.M., Zhou, P., Si, C., Zhou, Y., Wang, X. et al. (2021). MetaFormer is Actually What You Need for Vision. https://doi.org/10.1109/CVPR52688.2022.01055

Akses Cepat

Informasi Jurnal
Tahun Terbit
2021
Bahasa
en
Total Sitasi
1296×
Sumber Database
Semantic Scholar
DOI
10.1109/CVPR52688.2022.01055
Akses
Open Access ✓