[Paper Review] MLP Architectures for Vision-and-Language Modeling: An Empirical Study
This paper presents the first empirical study on using MLPs for vision-and-language (VL) fusion, showing that while MLPs alone underperform transformers without pre-training, large-scale VL pre-training and minimal one-head attention can close the performance gap. It further demonstrates that an all-MLP VL model, though suboptimal with pre-training, can surpass non-pre-trained transformers, highlighting the potential of MLPs in VL modeling with sufficient pre-training.
We initiate the first empirical study on the use of MLP architectures for vision-and-language (VL) fusion. Through extensive experiments on 5 VL tasks and 5 robust VQA benchmarks, we find that: (i) Without pre-training, using MLPs for multimodal fusion has a noticeable performance gap compared to transformers; (ii) However, VL pre-training can help close the performance gap; (iii) Instead of heavy multi-head attention, adding tiny one-head attention to MLPs is sufficient to achieve comparable performance to transformers. Moreover, we also find that the performance gap between MLPs and transformers is not widened when being evaluated on the harder robust VQA benchmarks, suggesting using MLPs for VL fusion can generalize roughly to a similar degree as using transformers. These results hint that MLPs can effectively learn to align vision and text features extracted from lower-level encoders without heavy reliance on self-attention. Based on this, we ask an even bolder question: can we have an all-MLP architecture for VL modeling, where both VL fusion and the vision encoder are replaced with MLPs? Our result shows that an all-MLP VL model is sub-optimal compared to state-of-the-art full-featured VL models when both of them get pre-trained. However, pre-training an all-MLP can surprisingly achieve a better average score than full-featured transformer models without pre-training. This indicates the potential of large-scale pre-training of MLP-like architectures for VL modeling and inspires the future research direction on simplifying well-established VL modeling with less inductive design bias. Our code is publicly available at: https://github.com/easonnie/mlp-vil
Motivation & Objective
- To investigate whether MLPs can effectively replace transformers for multimodal fusion in vision-and-language (VL) tasks.
- To evaluate the impact of large-scale VL pre-training on MLP-based VL models.
- To explore whether an all-MLP architecture—replacing both fusion and vision encoders with MLPs—can achieve competitive performance.
- To assess whether MLPs can learn cross-modal alignment without inductive biases from attention mechanisms.
- To provide a systematic benchmark of MLP-based VL models across diverse VL tasks and robust VQA benchmarks.
Proposed method
- Replace the transformer-based multimodal fusion module with a multi-layer perceptron (MLP) while keeping vision and text encoders unchanged.
- Introduce a tiny one-head attention module into the MLP architecture to assess its impact on performance.
- Train and evaluate models on five standard VL tasks and five robust VQA benchmarks to compare MLP, transformer, and hybrid MLP-attention variants.
- Implement an all-MLP VL model by replacing the vision encoder with state-of-the-art MLP-based vision models (e.g., MLP-Mixer, Permutator MLP) and using word embeddings for text.
- Use large-scale pre-training on VL datasets to evaluate the generalization and performance of MLP-based models.
- Visualize learned interaction matrices in the MLP layers to analyze cross-modal feature interactions.
Experimental results
Research questions
- RQ1Can MLPs effectively replace transformers for multimodal fusion in vision-and-language tasks?
- RQ2To what extent does large-scale VL pre-training close the performance gap between MLPs and transformers in VL fusion?
- RQ3Is heavy multi-head attention necessary for MLP-based fusion, or can a single-head attention suffice?
- RQ4Can an all-MLP architecture—using MLPs for both vision encoding and multimodal fusion—achieve competitive performance in VL tasks?
- RQ5How does the performance of MLP-based vision encoders on ImageNet-1k correlate with their performance on VL benchmarks?
Key findings
- Without pre-training, MLP-based fusion shows a noticeable performance gap compared to transformers, with a drop of up to 10 points on some VQA benchmarks.
- Large-scale VL pre-training significantly closes the performance gap between MLPs and transformers, enabling MLPs to match or nearly match transformer performance.
- Adding a single one-head attention module to MLPs is sufficient to achieve performance comparable to full transformers, indicating that heavy attention mechanisms are not essential.
- The performance gap between MLPs and transformers does not widen on harder robust VQA benchmarks, suggesting similar generalization capabilities.
- An all-MLP VL model, while suboptimal compared to full-featured pre-trained transformers, achieves better average performance than non-pre-trained transformer models, highlighting the importance of pre-training for MLPs.
- Existing MLP vision encoders (e.g., MLP-Mixer) perform well on ImageNet-1k but significantly worse on VQA, indicating a performance gap in VL-specific feature learning.
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.