[Paper Review] BiMLP: Compact Binary Architectures for Vision Multi-Layer Perceptrons
This paper proposes BiMLP, a compact binary architecture for vision multi-layer perceptrons (MLPs) that overcomes the limited representational capacity of binarized fully connected (FC) layers by introducing a multi-branch binary block (MBB) with a universal shortcut (Uni-shortcut) and a redesigned downsampling layer. The method achieves state-of-the-art accuracy of 70.0% Top-1 on ImageNet-1k with 12.1% fewer FLOPs than ReActNet, significantly outperforming direct binarization of existing MLPs.
This paper studies the problem of designing compact binary architectures for vision multi-layer perceptrons (MLPs). We provide extensive analysis on the difficulty of binarizing vision MLPs and find that previous binarization methods perform poorly due to limited capacity of binary MLPs. In contrast with the traditional CNNs that utilizing convolutional operations with large kernel size, fully-connected (FC) layers in MLPs can be treated as convolutional layers with kernel size $1 imes1$. Thus, the representation ability of the FC layers will be limited when being binarized, and places restrictions on the capability of spatial mixing and channel mixing on the intermediate features. To this end, we propose to improve the performance of binary MLP (BiMLP) model by enriching the representation ability of binary FC layers. We design a novel binary block that contains multiple branches to merge a series of outputs from the same stage, and also a universal shortcut connection that encourages the information flow from the previous stage. The downsampling layers are also carefully designed to reduce the computational complexity while maintaining the classification performance. Experimental results on benchmark dataset ImageNet-1k demonstrate the effectiveness of the proposed BiMLP models, which achieve state-of-the-art accuracy compared to prior binary CNNs. The MindSpore code is available at \url{https://gitee.com/mindspore/models/tree/master/research/cv/BiMLP}.
Motivation & Objective
- To address the poor performance of existing binarization methods on vision MLPs due to limited representational capacity of binarized fully connected layers.
- To improve the representation ability of binary MLPs without increasing computational complexity quadratically.
- To design an efficient downsampling mechanism that reduces FLOPs while preserving classification accuracy.
- To achieve state-of-the-art performance in binary vision models compared to existing binary CNNs.
Proposed method
- Proposes a multi-branch binary MLP block (MBB) that fuses outputs from multiple branches at the same network stage to enhance feature representation.
- Introduces a universal shortcut (Uni-shortcut) that enables residual connections between features of different spatial dimensions, improving gradient flow and feature reuse.
- Redesigns the downsampling layer using a combination of fully connected layers and multi-branch max-pooling to reduce FLOPs by 41.1% compared to standard 3×3 convolutions.
- Employs a learnable scaling factor α in the distillation loss to balance knowledge transfer from a teacher model and supervision from ground-truth labels.
- Uses the sign function with straight-through estimator (STE) for binarizing weights and activations, combined with batch normalization and ReLU-PReLU (RPReLU) for improved training stability.
Experimental results
Research questions
- RQ1Why do existing binarization methods perform poorly on vision MLPs compared to CNNs?
- RQ2How can the representational capacity of binarized fully connected layers in MLPs be enhanced without increasing computational cost?
- RQ3Can a universal shortcut mechanism improve feature flow and performance in binary MLPs with variable-sized feature maps?
- RQ4To what extent can a redesigned downsampling layer reduce FLOPs while maintaining accuracy in binary MLPs?
Key findings
- The proposed BiMLP achieves 70.0% Top-1 accuracy on ImageNet-1k, outperforming the 1-bit binarized Wave-MLP (55.3%) and ReActNet (68.7%).
- The MBB block with Uni-shortcut improves Top-1 accuracy by 1.7% compared to the version without any residual connection and by 0.9% compared to the standard shortcut.
- The proposed downsampling layer reduces FLOPs from 2.65×10⁸ to 1.56×10⁸ (41.1% reduction) with only a 0.3% drop in Top-1 accuracy.
- The ablation study shows that the combination of batch normalization and RPReLU yields the best performance, achieving 70.0% Top-1 accuracy on the BiMLP-S model.
- The hyperparameter α = 0.9 in the distillation loss yields the best validation accuracy, confirming optimal balance between knowledge distillation and supervision.
- The modified BiMLP architecture achieves comparable performance to the original FP32 Wave-MLP (80.1%) while being fully binarized, demonstrating the effectiveness of architectural redesign over direct binarization.
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.