Skip to main content
QUICK REVIEW

[Paper Review] Mixing and Shifting: Exploiting Global and Local Dependencies in Vision MLPs

Huangjie Zheng, Pengcheng He|arXiv (Cornell University)|Feb 14, 2022
Neural Networks and ApplicationsComputer Science6 citations
TL;DR

This paper proposes Mix-Shift-MLP (MS-MLP), a vision MLP architecture that jointly models local and global dependencies by dynamically increasing the receptive field size with spatial shifting, enabling efficient token mixing across fine- and coarse-grained regions. MS-MLP achieves 83.8% top-1 accuracy on ImageNet-1K with 85M parameters and improves Swin and Focal Transformers by 0.5–0.7% in object detection and segmentation tasks.

ABSTRACT

Token-mixing multi-layer perceptron (MLP) models have shown competitive performance in computer vision tasks with a simple architecture and relatively small computational cost. Their success in maintaining computation efficiency is mainly attributed to avoiding the use of self-attention that is often computationally heavy, yet this is at the expense of not being able to mix tokens both globally and locally. In this paper, to exploit both global and local dependencies without self-attention, we present Mix-Shift-MLP (MS-MLP) which makes the size of the local receptive field used for mixing increase with respect to the amount of spatial shifting. In addition to conventional mixing and shifting techniques, MS-MLP mixes both neighboring and distant tokens from fine- to coarse-grained levels and then gathers them via a shifting operation. This directly contributes to the interactions between global and local tokens. Being simple to implement, MS-MLP achieves competitive performance in multiple vision benchmarks. For example, an MS-MLP with 85 million parameters achieves 83.8% top-1 classification accuracy on ImageNet-1K. Moreover, by combining MS-MLP with state-of-the-art Vision Transformers such as the Swin Transformer, we show MS-MLP achieves further improvements on three different model scales, e.g., by 0.5% on ImageNet-1K classification with Swin-B. The code is available at: https://github.com/JegZheng/MS-MLP.

Motivation & Objective

  • To address the limitation of existing MLP-based models in simultaneously capturing both local and global visual dependencies without self-attention.
  • To design a simple yet effective mechanism that enables flexible, multi-scale token mixing in vision MLPs.
  • To improve performance on vision benchmarks such as ImageNet-1K, COCO, and ADE20K while maintaining low computational cost.
  • To demonstrate that MS-MLP can serve as a strong backbone or module to further boost state-of-the-art Vision Transformers.

Proposed method

  • MS-MLP introduces a multi-scale regional mixing mechanism where the receptive field size for token mixing increases with the relative spatial distance from the query token.
  • It applies spatial shifting to aggregate information from both nearby and distant regions, enabling interaction between local and global features.
  • The method uses a learnable shifting operation that reorganizes feature maps to allow cross-region communication across different scales.
  • The architecture integrates regional mixing into a standard MLP block, maintaining simplicity and computational efficiency.
  • It employs a hierarchical design with multiple stages, each applying shifting and regional mixing to progressively capture dependencies at varying granularities.
  • The model is trained end-to-end using standard optimization protocols on standard vision benchmarks.

Experimental results

Research questions

  • RQ1Can a self-attention-free MLP architecture effectively model both local and global visual dependencies simultaneously?
  • RQ2How does dynamically adjusting the receptive field size based on spatial distance affect performance in vision tasks?
  • RQ3Can regional mixing with shifting outperform purely local or global mixing in vision MLPs?
  • RQ4To what extent can MS-MLP improve the performance of existing Vision Transformers when used as a backbone or module?
  • RQ5Does the proposed method maintain high throughput while achieving competitive accuracy on large-scale vision benchmarks?

Key findings

  • MS-MLP with 85 million parameters achieves 83.8% top-1 accuracy on ImageNet-1K, matching the performance of Focal-Attention-B with higher throughput.
  • The model outperforms state-of-the-art MLPs such as Hire-MLP-L and WaveMLP-B by 0.6% and 1.5%, respectively, on RetinaNet object detection.
  • When combined with Swin Transformers, MS-MLP improves classification accuracy by 0.5–0.7% and object detection by 0.2–0.5% across multiple scales.
  • Abllation studies confirm that regional mixing with increasing receptive fields outperforms isolated local or global mixing, especially at smaller patch sizes.
  • The method maintains strong performance across different patch sizes, with improvements of 0.5% and 0.3% on Swin-T with patch sizes 2 and 4, respectively, when combined with MS-MLP.
  • MS-MLP consistently improves both Swin and Focal Transformers on instance segmentation and semantic segmentation tasks, with gains of 0.1–0.3% on COCO and 0.2–0.5% on ADE20K.

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.