AS-MLP: An Axial Shifted MLP Architecture for Vision

Dongze Lian, Zehao Yu, Xing Sun, Shenghua Gao
7/18/2021
226 citations
cs.CV
transformer-attention

Official code: svip-lab/AS-MLP (127 stars, Python, MIT, last commit 2022-10-15).

Abstract

An Axial Shifted MLP architecture (AS-MLP) is proposed in this paper. Different from MLP-Mixer, where the global spatial feature is encoded for information flow through matrix transposition and one token-mixing MLP, we pay more attention to the local features interaction.

Show full abstract

By axially shifting channels of the feature map, AS-MLP is able to obtain the information flow from different axial directions, which captures the local dependencies. Such an operation enables us to utilize a pure MLP architecture to achieve the same local receptive field as CNN-like architecture. We can also design the receptive field size and dilation of blocks of AS-MLP, etc, in the same spirit of convolutional neural networks. With the proposed AS-MLP architecture, our model obtains 83.3% Top-1 accuracy with 88M parameters and 15.2 GFLOPs on the ImageNet-1K dataset. Such a simple yet effective architecture outperforms all MLP-based architectures and achieves competitive performance compared to the transformer-based architectures (e.g., Swin Transformer) even with slightly lower FLOPs. In addition, AS-MLP is also the first MLP-based architecture to be applied to the downstream tasks (e.g., object detection and semantic segmentation). The experimental results are also impressive. Our proposed AS-MLP obtains 51.5 mAP on the COCO validation set and 49.5 MS mIoU on the ADE20K dataset, which is competitive compared to the transformer-based architectures. Our AS-MLP establishes a strong baseline of MLP-based architecture. Code is available at https://github.com/svip-lab/AS-MLP.

View on arXivView PDF

Code Implementations(1)

svip-lab/AS-MLPOfficial100%
MIT

[ICLR'22] This is an official implementation for "AS-MLP: An Axial Shifted MLP Architecture for Vision".

12710Python, ShellJul 14, 20214 years agoMIT

Similar Papers

Cite this paper

@article{lian2021asmlp,
  title  = {AS-MLP: An Axial Shifted MLP Architecture for Vision},
  author = {Dongze Lian and Zehao Yu and Xing Sun and Shenghua Gao},
  year   = {2021},
  eprint = {2107.08391},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.08391}
}

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/2107.08391.svg)](https://codeofpaper.com/paper/2107.08391)

Discussion