[Paper Review] SemVLP: Vision-Language Pre-training by Aligning Semantics at Multiple Levels
SemVLP proposes a unified vision-language pre-training framework that jointly aligns image and text representations at both low-level feature and high-level semantic levels by iteratively pre-training with shared single-stream and two-stream Transformer architectures. By leveraging a pluggable cross-modal attention module and parameter sharing, SemVLP achieves state-of-the-art performance on multiple vision-language tasks, outperforming existing single-stream and two-stream models with the same model size.
Vision-language pre-training (VLP) on large-scale image-text pairs has recently witnessed rapid progress for learning cross-modal representations. Existing pre-training methods either directly concatenate image representation and text representation at a feature level as input to a single-stream Transformer, or use a two-stream cross-modal Transformer to align the image-text representation at a high-level semantic space. In real-world image-text data, we observe that it is easy for some of the image-text pairs to align simple semantics on both modalities, while others may be related after higher-level abstraction. Therefore, in this paper, we propose a new pre-training method SemVLP, which jointly aligns both the low-level and high-level semantics between image and text representations. The model is pre-trained iteratively with two prevalent fashions: single-stream pre-training to align at a fine-grained feature level and two-stream pre-training to align high-level semantics, by employing a shared Transformer network with a pluggable cross-modal attention module. An extensive set of experiments have been conducted on four well-established vision-language understanding tasks to demonstrate the effectiveness of the proposed SemVLP in aligning cross-modal representations towards different semantic granularities.
Motivation & Objective
- To address the limitation of existing vision-language pre-training methods that fixate on a single semantic level of alignment.
- To bridge the semantic gap between vision and language by jointly modeling fine-grained feature-level and high-level abstract semantics.
- To unify the strengths of single-stream and two-stream architectures through a shared Transformer and pluggable cross-attention module.
- To improve generalization on diverse image-text pairs with varying semantic granularities, such as detailed vs. abstract captions.
Proposed method
- SemVLP uses a shared Transformer encoder for both single-stream and two-stream pre-training modes to enable parameter sharing and mutual regularization.
- In single-stream mode, image-region features and text tokens are concatenated and fed into the shared Transformer for end-to-end feature-level alignment.
- In two-stream mode, image and text are separately encoded by the shared Transformer, followed by a pluggable cross-attention module for high-level semantic fusion.
- The model is pre-trained iteratively across both modes, allowing the network to learn cross-modal alignment at multiple semantic granularities.
- The cross-attention module is dynamically inserted at different layers (e.g., L_s = 6) to optimize high-level semantic alignment.
- Fine-tuning is performed using a single-stream architecture, which empirically yields better performance than two-stream fine-tuning.
Experimental results
Research questions
- RQ1Can joint pre-training at multiple semantic levels improve vision-language representation learning compared to fixed-level alignment?
- RQ2How does combining single-stream and two-stream architectures through parameter sharing affect model generalization?
- RQ3At which layer should cross-attention be introduced in the two-stream mode to best balance low-level and high-level semantic alignment?
- RQ4Does iterative pre-training with both modes regularize the model and enhance performance on downstream tasks?
- RQ5Is single-stream fine-tuning more effective than two-stream fine-tuning for models pre-trained with both modes?
Key findings
- The 12-layer SemVLP model outperforms all previous single-stream and two-stream architectures with the same model size on four benchmark tasks.
- On the VQA task, SemVLP achieves 74.52% accuracy, surpassing the single-stream baseline (74.52%) and two-stream baseline (73.92%) in fine-tuning.
- The ablation study shows that pre-training with both single-stream and two-stream modes yields better performance than using either mode alone.
- The optimal two-stream performance is achieved when cross-attention is introduced at layer L_s = 6, indicating that mid-level abstraction is most effective for high-level alignment.
- Visualization confirms that SemVLP correctly differentiates between 'person' and 'people' in attention maps, while the single-stream model fails to do so.
- Fine-tuning with a single-stream architecture yields superior results across all tasks, suggesting that the pre-training process enhances feature-level fusion capabilities.
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.