MetaFormer Is Actually What You Need for Vision

AI-generated keywords: Transformers Computer Vision MetaFormer PoolFormer Attention Module

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • Transformers have shown great potential in computer vision tasks
  • Recent works challenge the belief that attention-based token mixer module is key to Transformers' competence
  • Attention module can be replaced by spatial MLPs while still achieving competitive performance
  • The general architecture of Transformers is more essential to performance than the specific token mixer module
  • Replacing attention module with spatial pooling operator creates PoolFormer, which achieves competitive performance on multiple computer vision tasks
  • PoolFormer achieves an impressive top-1 accuracy of 82.1% on ImageNet-1K dataset, surpassing other baselines with fewer parameters and MACs
  • Introduction of MetaFormer, a general architecture abstracted from Transformers without specifying token mixer module
  • MetaFormer plays a crucial role in achieving superior results for recent Transformer and MLP-like models in vision tasks
  • Future research should focus on improving MetaFormer instead of solely focusing on token mixer modules
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Weihao Yu, Mi Luo, Pan Zhou, Chenyang Si, Yichen Zhou, Xinchao Wang, Jiashi Feng, Shuicheng Yan

CVPR 2022 (Oral). Code: https://github.com/sail-sg/poolformer

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

Submitted to arXiv on 22 Nov. 2021

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2111.11418v3

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

In recent years, Transformers have shown great potential in computer vision tasks. It has been commonly believed that their attention-based token mixer module is the key contributor to their competence. However, recent works have challenged this belief by demonstrating that the attention module in Transformers can be replaced by spatial MLPs (Multi-Layer Perceptrons) while still achieving competitive performance. Building on this observation, the authors of this study propose a hypothesis that the general architecture of Transformers, rather than the specific token mixer module, is more essential to the model's performance. To test this hypothesis, they deliberately replace the attention module in Transformers with a simple spatial pooling operator for basic token mixing. Surprisingly, they find that the resulting model, called PoolFormer, achieves competitive performance on multiple computer vision tasks. For instance, on ImageNet-1K dataset, PoolFormer achieves an impressive top-1 accuracy of 82.1%. This surpasses well-tuned Vision Transformer/MLP-like baselines DeiT-B/ResMLP-B24 by 0.3%/1.1% accuracy while using significantly fewer parameters and MACs (Multiply-Accumulate operations). Specifically, PoolFormer achieves these results with 35%/52% fewer parameters and 50%/62% fewer MACs compared to DeiT-B/ResMLP-B24 models. The effectiveness of PoolFormer validates their hypothesis and leads them to introduce the concept of "MetaFormer", which is a general architecture abstracted from Transformers without specifying the token mixer module. Through extensive experiments and analysis, they argue that MetaFormer plays a crucial role in achieving superior results for recent Transformer and MLP-like models in vision tasks. This work highlights the need for future research dedicated to improving MetaFormer instead of solely focusing on token mixer modules. Additionally, PoolFormer serves as a starting baseline for designing future MetaFormer architectures. Overall, this study provides valuable insights into the importance of the general architecture of Transformers in computer vision tasks and suggests avenues for further advancements in this field.
Created on 17 Aug. 2023

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.