HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

MLP-Mixer: An all-MLP Architecture for Vision

MLP-Mixer: An all-MLP Architecture for 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 of well established CNNs and Transformers.

Code Repositories

bangoc123/mlp-mixer
tf
Mentioned in GitHub
KiUngSong/Vision
pytorch
Mentioned in GitHub
jeonsworld/MLP-Mixer-Pytorch
pytorch
Mentioned in GitHub
rwightman/pytorch-image-models
pytorch
Mentioned in GitHub
asarigun/MixerGANsformer
pytorch
Mentioned in GitHub
lucidrains/mlp-mixer-pytorch
pytorch
Mentioned in GitHub
sayakpaul/MLP-Mixer-CIFAR10
Mentioned in GitHub
jaketae/mlp-mixer
pytorch
Mentioned in GitHub
liuruiyang98/Jittor-MLP
jax
Mentioned in GitHub
luutn2002/mixer_test
pytorch
Mentioned in GitHub
google-research/vision_transformer
Official
jax
Mentioned in GitHub
IMvision12/keras-vision-models
pytorch
Mentioned in GitHub
sradc/nd-mlp-mixer
tf
Mentioned in GitHub
rishikksh20/MLP-Mixer-pytorch
pytorch
Mentioned in GitHub
xuwkk/task_aware_machine_unlearning
pytorch
Mentioned in GitHub
04RR/SOTA-Vision
pytorch
Mentioned in GitHub
MiuGod0126/Mlp-Mixer-Paddle
paddle
Mentioned in GitHub
lavish619/MLP-Mixer-PyTorch
pytorch
Mentioned in GitHub
omihub777/mlp-mixer-cifar
pytorch
Mentioned in GitHub
ttt496/VisionTransformer
jax
Mentioned in GitHub
DarshanDeshpande/jax-models
jax
Mentioned in GitHub
Oguzhanercan/MLP-Mixer
pytorch
Mentioned in GitHub
Mayurji/Image-Classification-PyTorch
pytorch
Mentioned in GitHub
engichang1467/kan-mixer
pytorch
Mentioned in GitHub
isaaccorley/mlp-mixer-pytorch
pytorch
Mentioned in GitHub
xmu-xiaoma666/MLP-Mixer-pytorch
pytorch
Mentioned in GitHub
leaderj1001/Bag-of-MLP
pytorch
Mentioned in GitHub
Nguyendat-bit/MLP-Mixer
tf
Mentioned in GitHub
himanshu-dutta/MLPMixer-pytorch
pytorch
Mentioned in GitHub
mli-lab/imaging_mlps
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-classification-on-imagenetViT-L/16 Dosovitskiy et al. (2021)
Top 1 Accuracy: 85.3%
image-classification-on-imagenetMixer-H/14 (JFT-300M pre-train)
Hardware Burden:
Operations per network pass:
Top 1 Accuracy: 87.94%
image-classification-on-imagenetMixer-B/16
Number of params: 46M
Top 1 Accuracy: 76.44%
image-classification-on-imagenet-realMixer-H/14 (JFT-300M pre-train)
Accuracy: 87.86%
Params: 409M
image-classification-on-imagenet-realMixer-H/14- 448 (JFT-300M pre-train)
Accuracy: 90.18%
Params: 409M
image-classification-on-omnibenchmarkMLP-Mixer
Average Top-1 Accuracy: 32.2

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
MLP-Mixer: An all-MLP Architecture for Vision | Papers | HyperAI