HIRE-MLP
The Tiny size of Hire-MLP, a vision MLP backbone that rearranges tokens within and across image regions.
Image classification · 676 operations Checked
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
- Task
- Image classification
- Parameters
- 18M
- Operations
- 676
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2022
- Cited by
- 101 (as of 3 November 2026)
- Authors
- Jianyuan Guo, Yehui Tang, Kai Han and others
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17249
- Graph hash
- 1727085bd78ab3ef343dd3521469930706b24ae7f7f5c42e50b98be14e79b379
- Skeleton hash
- 5b930ebd8a6f28030f946f10cd2ee8de23c49b94eb9b7589a255200bea6c5974
- Architecture hash
- 27b6d73e747b39e19f10a08888a5de4bd8b9790ea17a7b9b526b5404c3a9d044
- Diagram SHA-256
- 65e83b0422940e3bf64f73da8d4a2da35992d36d40f4c99862dddbc8ea38c074
- 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
Hire-MLP is a vision MLP architecture that the paper presents as a versatile backbone for various vision tasks. Its starting point is a limitation of earlier vision MLPs such as MLP-Mixer and ResMLP: they take linearly flattened image patches as input, which makes them inflexible for different input sizes and makes spatial information hard to capture.
The name comes from hierarchical rearrangement, which has two levels. Inner-region rearrangement captures local information inside a spatial region. Cross-region rearrangement lets different regions exchange information and captures global context by circularly shifting all tokens along spatial directions.
The paper reports 83.8% top-1 accuracy on ImageNet, 51.7% box AP and 44.8% mask AP on COCO val2017, and 49.9% mIoU on ADE20K. The code repository lists four sizes, from Hire-MLP-Tiny to Hire-MLP-Large. This model is Hire-MLP-Tiny, which the repository lists with 18M parameters, 2.1G FLOPs and 79.7% top-1 accuracy on ImageNet-1K.
Key idea. Hire-MLP introduces hierarchical rearrangement, with an inner-region step for local information and a cross-region step that circularly shifts tokens to capture global context.
- Hire-MLP
- HireMLP
- Hire-MLP-Tiny
- hire_mlp_tiny
- vision MLP
- hierarchical rearrangement
- image classification
- ImageNet
- MLP backbone
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{guo2021hiremlpvisionmlphierarchical,
title={Hire-MLP: Vision MLP via Hierarchical Rearrangement},
author={Jianyuan Guo and Yehui Tang and Kai Han and Xinghao Chen and Han Wu and Chao Xu and Chang Xu and Yunhe Wang},
year={2021},
eprint={2108.13341},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2108.13341},
}