Mixing and Shifting: Exploiting Global and Local Dependencies in Vision MLPs
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 42 of its 55 references that are in the map. First posted on arXiv 14 Feb 2022.
Builds on
42 of 55 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2017Mask R-CNNcited by 7,277
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2016Layer Normalizationcited by 5,669
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
30 more
- 2014Going Deeper with Convolutionscited by 4,241
- 2022A ConvNet for the 2020scited by 3,579
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,385
- 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,276
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
- 2017Random Erasing Data Augmentationcited by 1,239
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,069
- 2016Deep Networks with Stochastic Depthcited by 979
- 2020Designing Network Design Spacescited by 960
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2021Transformer in Transformercited by 633
- 2021Pay Attention to MLPscited by 368
- 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 339
- 2021Global Filter Networks for Image Classificationcited by 260
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 207
- 2021CycleMLP: A MLP-like Architecture for Dense Predictioncited by 126
- 2021Vision Permutator: A Permutable MLP-Like Architecture for Visual Recognitioncited by 103
- 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
- 2021S2-MLP: Spatial-Shift MLP Architecture for Visioncited by 83
- 2021Hire-MLP: Vision MLP via Hierarchical Rearrangementcited by 66
- 2021Do You Even Need Attention? A Stack of Feed-Forward Layers Does Surprisingly Well on ImageNetcited by 61
- 2021An Image Patch is a Wave: Phase-Aware Vision MLPcited by 61
- 2021GLiT: Neural Architecture Search for Global and Local Image Transformercited by 53
- 2021Sparse MLP for Image Recognition: Is Self-Attention Really Necessary?cited by 38
- 2021ConvMLP: Hierarchical Convolutional MLPs for Visioncited by 37
Built on by
Citing papers per year: 2022: 2; 2023: 4.
6 papers.
- 2022Focal Modulation Networkscited by 186
- 2022SimA: Simple Softmax-free Attention for Vision Transformerscited by 32
- 2023Learning Stackable and Skippable LEGO Bricks for Efficient, Reconfigurable, and Variable-Resolution Diffusion Modelingcited by 13
- 2023TriMLP: Revenge of a MLP-like Architecture in Sequential Recommendationcited by 1
- 2023CS-Mixer: A Cross-Scale Vision MLP Model with Spatial-Channel Mixingcited by 0
- 2023Dimension Mixer: Group Mixing of Input Dimensions for Efficient Function Approximationcited by 0
- 2023Dimension Mixer: Group Mixing of Input Dimensions for Efficient Function Approximation30 Nov 2023
- 2023Learning Stackable and Skippable LEGO Bricks for Efficient, Reconfigurable, and Variable-Resolution Diffusion Modeling10 Oct 2023
- 2023CS-Mixer: A Cross-Scale Vision MLP Model with Spatial-Channel Mixing25 Aug 2023
- 2023TriMLP: Revenge of a MLP-like Architecture in Sequential Recommendation24 May 2023
- 2022SimA: Simple Softmax-free Attention for Vision Transformers17 Jun 2022
- 2022Focal Modulation Networks22 Mar 2022