MLP-Mixer: An all-MLP Architecture for Vision
Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas, Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Andreas, Steiner, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, Alexey, Dosovitskiy

TL;DR
This paper introduces MLP-Mixer, a novel vision architecture based solely on multi-layer perceptrons, achieving competitive image classification performance without convolutions or attention mechanisms.
Contribution
The paper demonstrates that pure MLP-based models can match the performance of CNNs and Transformers in vision tasks, challenging existing assumptions about necessary components.
Findings
MLP-Mixer achieves competitive accuracy on image classification benchmarks.
The architecture requires comparable pre-training and inference costs to state-of-the-art models.
Pure MLP models can serve as viable alternatives in computer vision.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗kadirnar/timm_model_listmodel· ♡ 1♡ 1
- 🤗timm/mixer_b16_224.goog_in21kmodel· 184 dl184 dl
- 🤗timm/mixer_b16_224.goog_in21k_ft_in1kmodel· 34k dl· ♡ 234k dl♡ 2
- 🤗timm/mixer_b16_224.miil_in21kmodel· 122 dl122 dl
- 🤗timm/mixer_b16_224.miil_in21k_ft_in1kmodel· 155 dl155 dl
- 🤗timm/mixer_l16_224.goog_in21kmodel· 38 dl38 dl
- 🤗timm/mixer_l16_224.goog_in21k_ft_in1kmodel· 3.4k dl· ♡ 13.4k dl♡ 1
- 🤗MurmanskY/swin_bmodel· ♡ 4♡ 4
- 🤗fcxfcx/owlv2model· ♡ 1♡ 1
Videos
Taxonomy
TopicsAdvanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · Adversarial Robustness in Machine Learning
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Linear Layer · MLP-Mixer Layer · Absolute Position Encodings · Position-Wise Feed-Forward Layer · Average Pooling · Global Average Pooling · MLP-Mixer · Adam · Layer Normalization
