Abstract
In this paper, we present Vision Permutator, a conceptually simple and data efficient MLP-like architecture for visual recognition. By realizing the importance of the positional information carried by 2D feature representations, unlike recent MLP-like models that encode the spatial information along the flattened spatial dimensions, Vision Permutator separately encodes the feature representations along the height and width dimensions with linear projections. This allows Vision Permutator to capture long-range dependencies along one spatial direction and meanwhile preserve precise positional information along the other direction. The resulting position-sensitive outputs are then aggregated in a mutually complementing manner to form expressive representations of the objects of interest. We show that our Vision Permutators are formidable competitors to convolutional neural networks (CNNs) and vision transformers. Without the dependence on spatial convolutions or attention mechanisms, Vision Permutator achieves 81.5% top-1 accuracy on ImageNet without extra large-scale training data (e.g., ImageNet-22k) using only 25M learnable parameters, which is much better than most CNNs and vision transformers under the same model size constraint. When scaling up to 88M, it attains 83.2% top-1 accuracy. Code is available at https://github.com/Andrew-Qibin/VisionPermutator.
Introduction
In the world of computer vision, Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs) have long been the gold standard. Recently, "MLP-like" architectures—which rely almost entirely on basic multi-layer perceptrons (fully connected layers)—have emerged as a simpler alternative. However, these early MLP models, such as MLP-Mixer, faced two major hurdles: positional loss and extreme data hunger. By flattening 2D images into 1D sequences, they destroy the inherent spatial structure of the image, often requiring massive datasets like ImageNet-22k or JFT-300M to compensate for this loss of structure.
Vision Permutator (ViP) addresses these issues by rethinking how spatial information is encoded. It aims to be "data-efficient," performing at a high level using only the standard ImageNet-1k dataset by preserving the 2D "height x width" structure throughout its processing layers.
Architecture Overview
The core innovation of this paper is the Permutator block, which replaces the standard spatial-mixing layers found in other models. As shown in the overall architecture, the model begins with patch embedding via linear projection, followed by a sequence of Permutator blocks, and concludes with global average pooling and a linear layer for class prediction.
Each Permutator block consists of two main components: a Permute-MLP layer and a Channel-MLP layer, both preceded by Layer Normalization. Residual connections are used around both components to facilitate training and gradient flow.
The Permute-MLP Layer
Instead of treating the image as a flat list of tokens, the Permute-MLP layer maintains the 2D structure. It consists of three parallel branches that process information along different dimensions:
- Height Branch: It permutes the data so that the height dimension is aligned with the channel dimension, allowing a linear layer to mix information vertically.
- Width Branch: Similarly, it permutes the data to mix information horizontally.
- Channel Branch: A standard linear projection that mixes information across channels.
These three branches are fused using a Weighted Permute-MLP mechanism (utilizing a split-attention mechanism) to dynamically prioritize which directional information is most important for a given feature. This allows the model to capture long-range dependencies along one axis while preserving precise positional information along the other.
Experimental Results
Vision Permutator delivers impressive performance that rivals or beats more complex architectures:
- Efficiency: The ViP-Small/7 model achieves 81.5% top-1 accuracy on ImageNet-1k with only 25M parameters. This outperforms the popular ResNet-50 (76.1%) and even the Swin-Transformer Tiny (81.3%) under similar parameter constraints.
- Scaling: When scaled up to 88M parameters (ViP-Large/7), the model reaches 83.2% top-1 accuracy.
- Comparison to other MLPs: ViP consistently outperforms other MLP-like models like ResMLP and gMLP by 1-2% accuracy while often using fewer parameters. This proves that the performance gap between MLPs and Transformers/CNNs is not inherent to the MLP structure itself, but rather to how spatial information is encoded.
Conclusion
Vision Permutator demonstrates that simple linear projections, when applied thoughtfully to spatial dimensions, can be as effective as complex attention mechanisms or convolutions. While ViP currently shares the common limitation of fixed input resolution—making it challenging to adapt for tasks like object detection with varying input sizes—it marks a significant step forward for MLP-based vision models. Future work will focus on overcoming these scaling limitations and exploring the Permutator structure in broader vision tasks.
Summary updated