SpiralMLP: A Lightweight Vision MLP Architecture
Haojie Mu, Burhan Ul Tayyab, Nicholas Chua
TL;DR
SpiralMLP introduces Spiral FC, a spiral-offset, deformable-convolution-inspired token-mixing layer that replaces traditional Token Mixing in MLP-based vision models. By combining Self-Spiral FC and Cross-Spiral FC through a Learnable Merge Head, Spiral Mixing captures diverse spatial information with linear complexity $O(HW)$ and is compatible with PVT-style and Swin-style backbones. Across ImageNet-1k, COCO, and ADE20K, SpiralMLP delivers competitive or superior accuracy while using fewer parameters and lower FLOPs than many Transformer- and CNN-based SOTAs, as shown by strong Top-1, AP, and mIoU results and supported by ablation studies on offset design, partitioning $k$, and amplitude $A_{ ext{max}}$. The work demonstrates that a refined spiral sampling strategy can effectively cover the full receptive field without a heavy computational burden, offering a practical path toward efficient, high-performance vision models.
Abstract
We present SpiralMLP, a novel architecture that introduces a Spiral FC layer as a replacement for the conventional Token Mixing approach. Differing from several existing MLP-based models that primarily emphasize axes, our Spiral FC layer is designed as a deformable convolution layer with spiral-like offsets. We further adapt Spiral FC into two variants: Self-Spiral FC and Cross-Spiral FC, which enable both local and global feature integration seamlessly, eliminating the need for additional processing steps. To thoroughly investigate the effectiveness of the spiral-like offsets and validate our design, we conduct ablation studies and explore optimal configurations. In empirical tests, SpiralMLP reaches state-of-the-art performance, similar to Transformers, CNNs, and other MLPs, benchmarking on ImageNet-1k, COCO and ADE20K. SpiralMLP still maintains linear computational complexity O(HW) and is compatible with varying input image resolutions. Our study reveals that targeting the full receptive field is not essential for achieving high performance, instead, adopting a refined approach offers better results.
