Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

MLP-Mixer: An all-MLP Architecture for Vision

About

Convolutional Neural Networks (CNNs) are the go-to model for computer vision. Recently, attention-based networks, such as the Vision Transformer, have also become popular. In this paper we show that while convolutions and attention are both sufficient for good performance, neither of them are necessary. We present MLP-Mixer, an architecture based exclusively on multi-layer perceptrons (MLPs). MLP-Mixer contains two types of layers: one with MLPs applied independently to image patches (i.e. "mixing" the per-location features), and one with MLPs applied across patches (i.e. "mixing" spatial information). When trained on large datasets, or with modern regularization schemes, MLP-Mixer attains competitive scores on image classification benchmarks, with pre-training and inference cost comparable to state-of-the-art models. We hope that these results spark further research beyond the realms of well established CNNs and Transformers.

Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Andreas Steiner, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, Alexey Dosovitskiy• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-100 (test)
Accuracy90.4
3518
Image ClassificationCIFAR-10 (test)--
3381
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy82.89
1866
Image ClassificationImageNet-1k (val)
Top-1 Accuracy76.44
1453
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)79.7
1155
Image ClassificationCIFAR-10 (test)
Accuracy97.58
906
Image ClassificationImageNet-1k (val)
Top-1 Accuracy77
840
Image ClassificationImageNet-1k (val)
Top-1 Acc82.2
706
Image ClassificationCIFAR-100
Top-1 Accuracy34.81
622
Image ClassificationImageNet A
Top-1 Acc5.2
553
Showing 10 of 57 rows

Other info

Code

Follow for update