[Paper Review] DynaMixer: A Vision MLP Architecture with Dynamic Mixing
DynaMixer proposes a vision MLP architecture that dynamically generates mixing matrices for token fusion based on input content, using dimensionality reduction and multi-segment fusion to improve efficiency and robustness. It achieves 84.3% top-1 accuracy on ImageNet-1K with 97M parameters and 82.7% with only 26M parameters, outperforming existing MLP-based models.
Recently, MLP-like vision models have achieved promising performances on mainstream visual recognition tasks. In contrast with vision transformers and CNNs, the success of MLP-like models shows that simple information fusion operations among tokens and channels can yield a good representation power for deep recognition models. However, existing MLP-like models fuse tokens through static fusion operations, lacking adaptability to the contents of the tokens to be mixed. Thus, customary information fusion procedures are not effective enough. To this end, this paper presents an efficient MLP-like network architecture, dubbed DynaMixer, resorting to dynamic information fusion. Critically, we propose a procedure, on which the DynaMixer model relies, to dynamically generate mixing matrices by leveraging the contents of all the tokens to be mixed. To reduce the time complexity and improve the robustness, a dimensionality reduction technique and a multi-segment fusion mechanism are adopted. Our proposed DynaMixer model (97M parameters) achieves 84.3\% top-1 accuracy on the ImageNet-1K dataset without extra training data, performing favorably against the state-of-the-art vision MLP models. When the number of parameters is reduced to 26M, it still achieves 82.7\% top-1 accuracy, surpassing the existing MLP-like models with a similar capacity. The code is available at \url{https://github.com/ziyuwwang/DynaMixer}.
Motivation & Objective
- To address the limitation of static mixing matrices in existing MLP-based vision models, which lack adaptability to input content.
- To improve representation power in vision recognition by enabling dynamic, content-aware information fusion among image tokens.
- To reduce computational cost and enhance robustness through dimensionality reduction and multi-segment fusion in the mixing process.
- To achieve state-of-the-art performance among MLP-like models on ImageNet-1K without extra training data.
- To validate the effectiveness of dynamic mixing through ablation studies and transfer learning on downstream tasks.
Proposed method
- DynaMixer dynamically generates mixing matrices using a content-aware mechanism that leverages the features of all tokens to be mixed.
- A linear projection layer reduces the input feature dimensionality to lower the computational cost, with experiments showing effectiveness even at d=1.
- Token mixing is performed row-wise and column-wise separately, with each segment processed independently to improve robustness.
- The final representation is a weighted sum of row mixing, column mixing, and channel mixing components, with learnable reweighting for fusion.
- The model employs a multi-segment fusion mechanism to enhance robustness and efficiency during dynamic mixing.
- Parameter sharing between row and column mixing operations is explored to reduce model size with minimal accuracy drop.
Experimental results
Research questions
- RQ1Can dynamic mixing matrices that adapt to input content improve performance in MLP-based vision models?
- RQ2How low can feature dimensionality be reduced in the mixing mechanism without degrading performance?
- RQ3Does multi-segment fusion enhance robustness and efficiency in token mixing?
- RQ4How does DynaMixer compare to state-of-the-art MLP-based models in terms of accuracy and parameter efficiency?
- RQ5What is the contribution of each component (row mixing, column mixing, channel mixing, reweighting) to the final performance?
Key findings
- DynaMixer achieves 84.3% top-1 accuracy on ImageNet-1K with 97M parameters, setting a new SOTA among MLP-based models.
- With only 26M parameters, DynaMixer attains 82.7% top-1 accuracy, surpassing other MLP-like models of similar size.
- Reducing feature dimensionality to d=1 still yields 82.4% top-1 accuracy, demonstrating that low-dimensional projections retain sufficient information for effective mixing.
- Ablation studies confirm that all components—row mixing, column mixing, channel mixing, and reweighting—are essential, as removing any leads to significant performance drops.
- Sharing parameters between row and column mixing operations reduces model size to 23M parameters with only a 0.5% accuracy drop, maintaining strong performance.
- On downstream CIFAR-10 and CIFAR-100 datasets, DynaMixer-S achieves 98.2% and 88.6% top-1 accuracy respectively, outperforming ViP and ViT of similar size.
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.