[Paper Review] RaftMLP: Do MLP-based Models Dream of Winning Over Computer Vision?
RaftMLP proposes a novel MLP-based architecture that enhances performance and efficiency by introducing structured inductive biases through vertical/horizontal token-mixing and denser spatial correlations across channels. It achieves improved accuracy with fewer parameters and lower computational cost than MLP-Mixer and other MLP-based models, demonstrating strong potential for replacing CNNs in vision tasks.
For the past ten years, CNN has reigned supreme in the world of computer vision, but recently, Transformer is on the rise. However, the quadratic computational cost of self-attention has become a severe problem of practice. There has been much research on architectures without CNN and self-attention in this context. In particular, MLP-Mixer is a simple idea designed using MLPs and hit an accuracy comparable to the Vision Transformer. However, the only inductive bias in this architecture is the embedding of tokens. Thus, there is still a possibility to build a non-convolutional inductive bias into the architecture itself, and we built in an inductive bias using two simple ideas. A way is to divide the token-mixing block vertically and horizontally. Another way is to make spatial correlations denser among some channels of token-mixing. With this approach, we were able to improve the accuracy of the MLP-Mixer while reducing its parameters and computational complexity. Compared to other MLP-based models, the proposed model, named RaftMLP has a good balance of computational complexity, the number of parameters, and actual memory usage. In addition, our work indicates that MLP-based models have the potential to replace CNNs by adopting inductive bias. The source code in PyTorch version is available at \url{this https URL}.
Motivation & Objective
- To address the limitations of MLP-Mixer, which lacks strong inductive biases beyond token embeddings.
- To improve accuracy and efficiency in MLP-based vision models without using CNNs or self-attention.
- To explore whether structured architectural inductive biases can enhance performance in pure MLP-based vision models.
- To achieve a better balance between model complexity, parameter count, and memory usage compared to existing MLP-based models.
Proposed method
- Introduces a modified token-mixing block that splits the feature map into vertical and horizontal components to better capture spatial dependencies.
- Applies dense spatial correlations across a subset of channels in the token-mixing block to strengthen local feature interactions.
- Designs a two-branch structure in the token-mixing block to process spatial dimensions separately, enhancing inductive bias.
- Uses a shared MLP head across all tokens to maintain parameter efficiency while enabling global feature mixing.
- Employs a two-stage architecture: channel-wise MLPs followed by spatially structured token-mixing blocks with inductive bias.
- Optimizes model efficiency by reducing both FLOPs and parameter count while maintaining high accuracy.
Experimental results
Research questions
- RQ1Can introducing structured inductive biases into MLP-based models improve their performance on vision tasks?
- RQ2How does vertical/horizontal splitting of the token-mixing block affect accuracy and computational efficiency?
- RQ3To what extent can denser spatial correlations among selected channels enhance feature representation in MLP-based models?
- RQ4Does the proposed RaftMLP architecture achieve better accuracy-complexity trade-offs than MLP-Mixer and other MLP-based models?
- RQ5Can MLP-based models effectively replace CNNs in computer vision when enhanced with architectural inductive biases?
Key findings
- RaftMLP achieves higher accuracy than MLP-Mixer on standard vision benchmarks while reducing the number of parameters.
- The model demonstrates lower computational complexity (FLOPs) compared to MLP-Mixer and other state-of-the-art MLP-based models.
- The introduction of vertical/horizontal splitting and dense spatial correlations improves feature learning without increasing model size.
- RaftMLP shows a favorable balance between model size, inference speed, and memory usage, outperforming existing MLP-based architectures in efficiency.
- The results suggest that MLP-based models can effectively replace CNNs in vision tasks when equipped with appropriate inductive biases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.