All models

AS-MLP

The tiny AS-MLP: a four-stage MLP image classifier that mixes local features by shifting channels along two axes.

Image classification · 619 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (17 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
28.3M
Operations
619
Framework
PyTorch
Recurrent
No
Published
ICLR 2022
Cited by
125 (as of 28 October 2026)
Authors
Dongze Lian, Zehao Yu, Xing Sun, Shenghua Gao
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14581
Graph hash
5c0cbb4c18873e464f175209f6009e4a73eacc5f5d536a59098b03aa4d316cac
Skeleton hash
dc1f7e56ec26f51ffb3364cfdbc98f3cd14a8cb86f9372fe67524eeefdf42406
Architecture hash
b5ebf0f1a113c106df95f22486c3fdf691880054d9c33fc66b1915bdd101caa6
Diagram SHA-256
4c8109c5773891458d25d55a31224ef98a53cb2a2e4e1aa916bdf6b4998f3e17
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

AS-MLP (Axial Shifted MLP) is an image backbone built from linear layers that passes information between neighboring positions by shifting groups of feature channels along the horizontal and vertical axes. The paper sets this against MLP-Mixer, which mixes tokens globally, and argues that the shift lets a pure MLP design have the same local receptive field as a CNN-like one.

The overall layout follows the style of Swin Transformer. The image is split into 4 × 4 patch tokens, which pass through four stages of AS-MLP blocks. Each block consists of a normalization layer, the axial shift operation, an MLP and a residual connection. Inside the shift, the channels are split into groups, each group is moved by a different number of positions with zero padding, and a channel projection then combines the features that now sit at the same position. Because the design needs no token-mixing layer of fixed size, the paper notes that the weights can be transferred to downstream tasks such as object detection.

This model is the tiny configuration, AS-MLP-T, with 96 channels in the first stage and 2, 2, 6 and 2 blocks in the four stages. It uses a shift size of 5 with zero padding, the setting the paper adopted after its ablations. The official repository reports 81.3% top-1 accuracy on ImageNet-1K for AS-MLP-T at 224 × 224 resolution.

Key idea. AS-MLP shifts feature channels along the horizontal and vertical axes so that a pure MLP architecture gets the local receptive field of a CNN-like architecture.

  • AS-MLP
  • Axial Shifted MLP
  • AS-MLP-T
  • MLP-based architecture
  • vision MLP
  • image classification
  • ImageNet-1K
  • axial shift
  • local receptive field
  • vision backbone

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

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