MDMLP: Image Classification from Scratch on Small Datasets with MLP

Tian Lv, Chongyang Bai, Chaojie Wang
5/28/2022
9 citations
cs.CVcs.AI
transformer-attention

Official code: PhD-TianLv/MDMLP (7 stars, Python, last commit 2023-05-06).

Abstract

The attention mechanism has become a go-to technique for natural language processing and computer vision tasks. Recently, the MLP-Mixer and other MLP-based architectures, based simply on multi-layer perceptrons (MLPs), are also powerful compared to CNNs and attention techniques and raises a new research direction.

Show full abstract

However, the high capability of the MLP-based networks severely relies on large volume of training data, and lacks of explanation ability compared to the Vision Transformer (ViT) or ConvNets. When trained on small datasets, they usually achieved inferior results than ConvNets. To resolve it, we present (i) multi-dimensional MLP (MDMLP), a conceptually simple and lightweight MLP-based architecture yet achieves SOTA when training from scratch on small-size datasets; (ii) multi-dimension MLP Attention Tool (MDAttnTool), a novel and efficient attention mechanism based on MLPs. Even without strong data augmentation, MDMLP achieves 90.90% accuracy on CIFAR10 with only 0.3M parameters, while the well-known MLP-Mixer achieves 85.45% with 17.1M parameters. In addition, the lightweight MDAttnTool highlights objects in images, indicating its explanation power. Our code is available at https://github.com/Amoza-Theodore/MDMLP.

View on arXivView PDF

Code Implementations(1)

PhD-TianLv/MDMLPOfficial100%

The code of the paper MDMLP.

71Python, ShellApr 7, 20223 years ago
architecturecomputer-visiondeep-learningimage-classification

Similar Papers

Cite this paper

@article{lv2022mdmlp,
  title  = {MDMLP: Image Classification from Scratch on Small Datasets with MLP},
  author = {Tian Lv and Chongyang Bai and Chaojie Wang},
  year   = {2022},
  eprint = {2205.14477},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14477}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.14477.svg)](https://codeofpaper.com/paper/2205.14477)

Discussion