vix.ing · top · new · best · stats

MLP-Mixer: An all-MLP Architecture for Vision

2021/05/04 by Ilya Tolstikhin, Neil Houlsby, Tolstikhin, Ilya +22 · 3 voices · 1,445 citations
Computer Science · Engineering · #Advanced Neural Network Applications #Adversarial Robustness in Machine Learning #Architecture #Artificial intelligence #Artificial neural network #Computer science #Convolutional neural network #Domain Adaptation and Few-Shot Learning #Engineering #Inference #Machine learning #Pattern recognition (psychology) #Perceptron #Regularization (linguistics) #Transformer #cs.AI #cs.CV #cs.LG

paper · pdf · doi:10.48550/arxiv.2105.01601

published in arXiv (Cornell University) (Cornell University) · v2: Fixed parameter counts in Table 1. v3: Added results on JFT-3B in Figure 2(right); Added Section 3.4 on the input permutations. v4: Updated the x label in Figure 2(right)

openalex publication_date 2021/05/04 · arxiv created 2021/06/11 · arxiv updated 2021/06/14 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

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 of well established CNNs and Transformers.

Citations

Cited by

Discussions

Related