
mlp_mixer (MMPretrain)
Image classification34 ops541.8K params
7 models, image classification. Fewest parameters first.
MLP-Mixer is an image classification architecture based exclusively on multi-layer perceptrons (MLPs): it does not use convolutions or self-attention. The paper's claim is that convolutions and attention are both sufficient for good performance, but that neither is necessary.
The model takes a sequence of linearly projected image patches, arranged as a table of patches by channels, and keeps that shape through the network. Each Mixer layer contains two MLPs: a token-mixing MLP that lets different spatial locations communicate, and a channel-mixing MLP that lets different channels communicate. The other components are standard ones, skip-connections and layer normalization, and unlike ViT the model has no position embeddings, because the token-mixing MLPs are sensitive to the order of the input tokens. The classification head is a global average pooling layer followed by a linear classifier.
The paper notes that the network's computational complexity is linear in the number of input patches, unlike ViT, whose complexity is quadratic. It reports 87.94% top-1 validation accuracy on ILSVRC2012 ImageNet after pre-training on large datasets. With pre-training data of more modest scale, the paper says that Mixer, similar to ViT, falls slightly short of specialized CNN architectures.
AI-written summary; not reviewed by a person. Corrections welcome.
Paper: read the paper

Image classification34 ops541.8K params

Image classification168 ops18.5M params

Image classification168 ops19.1M params

Image classification248 ops59.9M params

Image classification248 ops60.3M params

Image classification488 ops206.9M params

Image classification488 ops208.2M params