Can I read MetaFormer Is Actually What You Need for Vision on EtoBox?
MetaFormer Is Actually What You Need for Vision by Yu, Weihao; Luo, Mi; Zhou, Pan; Si, Chenyang; Zhou, Yichen; Wang, Xinchao; Feng, Jiashi; Yan, Shuicheng is a scholarly article available to read on EtoBox.
What is MetaFormer Is Actually What You Need for Vision about?
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
- Author
- Yu, Weihao; Luo, Mi; Zhou, Pan; Si, Chenyang; Zhou, Yichen; Wang, Xinchao; Feng, Jiashi; Yan, Shuicheng
- Published
- 2021
- Language
- EN