Skip to main content
QUICK REVIEW

[Paper Review] Hire-MLP: Vision MLP via Hierarchical Rearrangement

Jianyuan Guo, Yehui Tang|arXiv (Cornell University)|Aug 30, 2021
Advanced Image and Video Retrieval TechniquesComputer Science59 references6 citations
TL;DR

Hire-MLP proposes a vision MLP architecture using hierarchical rearrangement to capture both local and global spatial information, enabling flexible input resolution and superior performance. By combining inner-region and cross-region token rearrangements with channel-mixing MLPs, it achieves state-of-the-art results on ImageNet (83.8% top-1 accuracy), COCO (51.7% box AP), and ADE20K (49.9% mIoU), outperforming prior MLP and transformer models with better accuracy-throughput trade-offs.

ABSTRACT

Previous vision MLPs such as MLP-Mixer and ResMLP accept linearly flattened image patches as input, making them inflexible for different input sizes and hard to capture spatial information. Such approach withholds MLPs from getting comparable performance with their transformer-based counterparts and prevents them from becoming a general backbone for computer vision. This paper presents Hire-MLP, a simple yet competitive vision MLP architecture via extbf{Hi}erarchical extbf{re}arrangement, which contains two levels of rearrangements. Specifically, the inner-region rearrangement is proposed to capture local information inside a spatial region, and the cross-region rearrangement is proposed to enable information communication between different regions and capture global context by circularly shifting all tokens along spatial directions. Extensive experiments demonstrate the effectiveness of Hire-MLP as a versatile backbone for various vision tasks. In particular, Hire-MLP achieves competitive results on image classification, object detection and semantic segmentation tasks, e.g., 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, surpassing previous transformer-based and MLP-based models with better trade-off for accuracy and throughput. Code is available at https://github.com/ggjy/Hire-Wave-MLP.pytorch.

Motivation & Objective

  • To address the inflexibility of existing vision MLPs like MLP-Mixer to varying input resolutions due to linearly flattened patches.
  • To enable vision MLPs to effectively capture local inductive bias and global context without relying on self-attention mechanisms.
  • To design a general-purpose, efficient, and accurate backbone for diverse computer vision tasks such as classification, detection, and segmentation.

Proposed method

  • Introduces a hierarchical rearrangement mechanism with two levels: inner-region rearrangement for local feature mixing within spatial regions, and cross-region rearrangement via circular shifting for inter-region communication.
  • Applies channel-mixing MLPs after rearrangement to model feature interactions across channels, preserving spatial structure through restoration layers.
  • Employs a multi-branch architecture in the Hire-MLP block: two branches for height and width direction processing with rearrangement and restoration, and one for direct channel mixing.
  • Uses a bottleneck design with two fully connected layers in the channel-mixing head to balance accuracy and FLOPs.
  • Enables flexible input resolution by decoupling spatial processing from token sequence length through region-based rearrangement.
  • Leverages a pyramid feature hierarchy similar to CNNs and Swin Transformers to support multi-scale downstream tasks.

Experimental results

Research questions

  • RQ1Can a vision MLP architecture effectively capture both local and global spatial dependencies without self-attention mechanisms?
  • RQ2How can vision MLPs be made robust to varying input resolutions while maintaining performance?
  • RQ3Does hierarchical rearrangement of tokens improve feature representation compared to standard MLP-Mixer or cyclic fully connected operations?
  • RQ4Can a pure MLP-based model achieve competitive performance with state-of-the-art transformers across diverse vision benchmarks?
  • RQ5What is the optimal design for rearrangement and channel-mixing components to balance accuracy, FLOPs, and inference speed?

Key findings

  • Hire-MLP achieves 83.8% top-1 accuracy on ImageNet-1K, surpassing previous MLP and transformer-based models with better accuracy-throughput trade-offs.
  • On COCO val2017, Hire-MLP-based RetinaNet achieves 51.7% box AP and 44.8% mask AP, outperforming ResNet, PVT, and CycleMLP under similar FLOPs.
  • In semantic segmentation on ADE20K, Hire-MLP achieves 49.9% mIoU under multi-scale testing, exceeding Swin-T by 1.6 mIoU and outperforming PVT and CycleMLP.
  • The shifted cross-region communication strategy preserves more relative position information than ShuffleNet-style shuffling, leading to better performance.
  • A two-layer bottleneck in the channel-mixing head provides the best trade-off between accuracy and computational cost, with diminishing returns beyond two layers.
  • Ablation studies confirm that performance gains stem from hierarchical rearrangement, not just increased network depth or number of layers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.