[Paper Review] Decoupling the Role of Data, Attention, and Losses in Multimodal Transformers
This paper investigates the roles of pretraining data, attention mechanisms, and loss functions in multimodal transformers for zero-shot image retrieval. It finds that data quality—particularly language coherence and image-text alignment—matters more than size, multimodal attention is essential for performance, and contrastive losses provide little benefit in this setting, with simple classification losses often sufficient.
Recently multimodal transformer models have gained popularity because their performance on language and vision tasks suggest they learn rich visual-linguistic representations. Focusing on zero-shot image retrieval tasks, we study three important factors which can impact the quality of learned representations: pretraining data, the attention mechanism, and loss functions. By pretraining models on six datasets, we observe that dataset noise and language similarity to our downstream task are important indicators of model performance. Through architectural analysis, we learn that models with a multimodal attention mechanism can outperform deeper models with modality specific attention mechanisms. Finally, we show that successful contrastive losses used in the self-supervised learning literature do not yield similar performance gains when used in multimodal transformers
Motivation & Objective
- To understand how pretraining data, attention mechanisms, and loss functions affect representation quality in multimodal transformers.
- To evaluate whether data noise and language similarity to downstream tasks predict model performance.
- To determine whether multimodal attention is more effective than modality-specific attention mechanisms.
- To assess whether contrastive losses improve performance over classification losses in multimodal transformers.
- To investigate whether image-only or language-only pretraining contributes meaningfully to multimodal model performance.
Proposed method
- Pretrained six multimodal transformer models on diverse image-text datasets with varying sizes and noise levels.
- Compared models with different attention mechanisms: multimodal (cross-attention between modalities), co-attention (modality-specific attention), and no cross-attention.
- Trained models using both contrastive matching losses and standard classification losses with a single negative per pair.
- Evaluated zero-shot image retrieval performance on unseen datasets to measure generalization of learned representations.
- Used controlled ablation studies to isolate the impact of attention architecture and loss function.
- Analyzed model behavior via probing and architectural analysis, focusing on attention head distributions and feature alignment.
Experimental results
Research questions
- RQ1How do dataset size and noise level affect zero-shot performance in multimodal transformers?
- RQ2Does multimodal attention outperform modality-specific attention mechanisms in terms of representation quality?
- RQ3Is contrastive loss more effective than classification loss in improving multimodal representation learning?
- RQ4To what extent do image-only or language-only pretraining components contribute to final performance?
- RQ5Can smaller models with multimodal attention match or exceed larger models with deeper architectures and different attention types?
Key findings
- Data noise and language similarity to the downstream task are stronger predictors of model performance than dataset size.
- Models with multimodal attention outperform deeper models with modality-specific attention, even when the latter have more parameters or depth.
- Contrastive losses provide minimal performance gains in multimodal transformers, while they significantly benefit models without multimodal attention.
- Simple classification losses with a single negative example per pair achieve competitive results, eliminating the need for hard negative mining or large-scale contrastive objectives.
- Image-only pretraining and masked region modeling losses contribute little to performance, suggesting current loss formulations may underutilize visual signals.
- Language-only pretraining does not notably improve performance, indicating that joint multimodal pretraining is sufficient for strong representations.
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.