Strip-MLP: Efficient Token Interaction for Vision MLP

Guiping Cao, Shengda Luo, Wenjian Huang, Xiangyuan Lan, Dongmei Jiang, Yaowei Wang, Jianguo Zhang

Abstract

While Vision Transformers (ViTs) have set new benchmarks in computer vision, their computational complexity remains a significant hurdle. MLP-based architectures have emerged as a simpler alternative, yet they suffer from a "Token Interaction Dilemma" in deep layers where spatial resolution is low and channel depth is high. This paper introduces Strip-MLP, a hierarchical architecture that utilizes a novel Strip MLP layer and a Cascade Group Strip Mixing Module (CGSMM) to enable efficient cross-strip token interaction. By maintaining channel-wise specificity and robust spatial context, Strip-MLP achieves state-of-the-art performance across ImageNet-1K and transfer learning benchmarks while maintaining a superior parameter-to-accuracy ratio compared to existing MLP and Transformer models.

Introduction

In the evolution of computer vision architectures, the transition from Convolutional Neural Networks (CNNs) to Vision Transformers (ViTs) highlighted the importance of global context. However, the quadratic complexity of self-attention in ViTs led researchers to explore MLP-based models. These models use simple fully-connected layers to aggregate information across image patches (tokens).

Despite their simplicity, MLP models face a critical bottleneck: the "Token Interaction Dilemma." In hierarchical designs, as the network progresses, the spatial resolution of tokens is down-sampled while the channel count increases. Traditional MLP models often share weights across all channels during spatial mixing. In the deeper stages of the network, where spatial information is sparse, this weight-sharing fails to capture unique patterns across different channels, leading to a rapid degradation in the model's expressive power.

The Strip-MLP Architecture

Strip-MLP is designed to overcome these limitations through three primary innovations that refine how tokens interact spatially and across channels.

1. Strip MLP Layer

Inspired by the Histogram of Oriented Gradients (HOG) algorithm, the Strip MLP layer facilitates "cross-strip" interaction. Unlike previous models that process rows and columns in isolation (axial interaction), the Strip MLP layer allows a row to contribute to the information of its neighbors. This approach makes spatial interaction significantly more robust by capturing dependencies that span across traditional axial boundaries.

2. Cascade Group Strip Mixing Module (CGSMM)

To address the loss of expressivity in deep layers, the CGSMM splits features into groups along the channel dimension. Instead of sharing a single set of weights, the module applies unshared weights to these groups. This preserves "channel-wise specificity," ensuring that even when the spatial map is small, the model can still distinguish and process diverse features effectively. The module processes these groups in a cascade of row and column interactions to efficiently cover the 2D image space.

3. Local Strip Mixing Module (LSMM)

While the CGSMM focuses on long-range and channel-specific interactions, the LSMM acts as a lightweight parallel branch. It is specifically designed to boost interaction within local regions, ensuring that fine-grained details are not lost during the down-sampling process.

Experimental Results

Strip-MLP was evaluated on several standard benchmarks, demonstrating high efficiency and competitive accuracy.

ImageNet-1K Performance

The "Base" version of the model, Strip-MLP-B, achieved a Top-1 accuracy of 83.6%. This matches the performance of high-end models like Wave-MLP-B but with significantly improved efficiency, utilizing 6 million fewer parameters (57M vs. 63M) and requiring lower FLOPs (9.2G vs. 10.2G).

Transfer Learning and Small Datasets

The architecture showed remarkable versatility on smaller datasets:

  • CIFAR-100 & Caltech-101: Strip-MLP models achieved an average Top-1 accuracy increase of +2.16% and +2.44%, respectively, over existing MLP benchmarks.
  • Pre-training Efficiency: A tiny variant (Strip-MLP-T) reached 98.8% on CIFAR-10 and 89.4% on CIFAR-100* after pre-training, outperforming much larger models such as ViT-S/16.

Discussion and Limitations

Strip-MLP demonstrates that complex self-attention mechanisms are not strictly necessary for high-performance vision tasks; well-engineered linear interactions can be equally effective. However, the research identifies a few areas for further refinement:

  • Hyperparameter Tuning: The optimal number of patches for the CGSMM module is sensitive to the scale of the dataset, requiring manual tuning for different tasks.
  • Task Expansion: While highly effective for image classification, the utility of the Strip MLP layer in dense prediction tasks like object detection and semantic segmentation remains a subject for future study.
  • Parameter Trade-offs: In the final stages of the network, the CGSMM introduces more parameters than simple weight-sharing MLPs. While this is necessary for accuracy, it represents a specific trade-off between model size and expressive power.

Conclusion

Strip-MLP revitalizes the MLP-based approach to computer vision by solving the Token Interaction Dilemma. Through the combination of cross-strip spatial mixing and channel-wise grouping, it provides a highly efficient and scalable architecture that rivals both CNNs and Transformers in accuracy while maintaining a smaller computational footprint.

Summary updated

BibTeX
@inproceedings{cao2023strip,
  author = {Guiping Cao and Shengda Luo and Wenjian Huang and Xiangyuan Lan and Dongmei Jiang and Yaowei Wang and Jianguo Zhang},
  title = {{Strip-MLP: Efficient Token Interaction for Vision MLP}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure