[Paper Review] Behind the Scene: Revealing the Secrets of Pre-trained Vision-and-Language Models
This paper introduces VALUE, a probing framework that analyzes pre-trained vision-and-language models through targeted tasks to uncover how they encode multimodal knowledge. It reveals that these models rely more on textual input during inference, exhibit structured cross-modal attention, and encode visual relations and linguistic knowledge—offering insights for better model design.
Recent Transformer-based large-scale pre-trained models have revolutionized vision-and-language (V+L) research. Models such as ViLBERT, LXMERT and UNITER have significantly lifted state of the art across a wide range of V+L benchmarks with joint image-text pre-training. However, little is known about the inner mechanisms that destine their impressive success. To reveal the secrets behind the scene of these powerful models, we present VALUE (Vision-And-Language Understanding Evaluation), a set of meticulously designed probing tasks (e.g., Visual Coreference Resolution, Visual Relation Detection, Linguistic Probing Tasks) generalizable to standard pre-trained V+L models, aiming to decipher the inner workings of multimodal pre-training (e.g., the implicit knowledge garnered in individual attention heads, the inherent cross-modal alignment learned through contextualized multimodal embeddings). Through extensive analysis of each archetypal model architecture via these probing tasks, our key observations are: (i) Pre-trained models exhibit a propensity for attending over text rather than images during inference. (ii) There exists a subset of attention heads that are tailored for capturing cross-modal interactions. (iii) Learned attention matrix in pre-trained models demonstrates patterns coherent with the latent alignment between image regions and textual words. (iv) Plotted attention patterns reveal visually-interpretable relations among image regions. (v) Pure linguistic knowledge is also effectively encoded in the attention heads. These are valuable insights serving to guide future work towards designing better model architecture and objectives for multimodal pre-training.
Motivation & Objective
- To uncover the inner mechanisms driving the success of pre-trained vision-and-language models.
- To analyze how multimodal representations are fused and aligned across vision and language modalities.
- To evaluate the extent to which models encode visual relations, linguistic knowledge, and cross-modal interactions.
- To compare single-stream and two-stream architectures in terms of modality attention and knowledge encoding.
- To provide actionable insights for future model design based on attention pattern analysis.
Proposed method
- Design a set of probing tasks—Visual Coreference Resolution, Visual Relation Detection, and SentEval-based linguistic probing—to assess knowledge in attention heads and representations.
- Apply the probing framework to two archetypal models: UNITER (single-stream) and LXMERT (two-stream) for comparative analysis.
- Use clustering analysis on image and text representations to measure multimodal fusion degree across network layers.
- Analyze attention traces from the [CLS] token to assess modality importance in final predictions.
- Evaluate cross-modal interaction by probing attention patterns between image regions and textual words.
- Measure linguistic knowledge by fine-tuning on SentEval tasks and comparing performance across model layers.
Experimental results
Research questions
- RQ1How do single-stream and two-stream architectures differ in their degree of multimodal fusion across layers?
- RQ2Which modality—image or text—dominates in final predictions, and how does this vary across models?
- RQ3Do attention heads specialize in capturing cross-modal alignment, and if so, how are they distributed?
- RQ4To what extent do models encode visual relations between image regions, and how robust is this to input mismatch?
- RQ5How well do pre-trained V+L models encode linguistic knowledge compared to BERT, and does this vary by architecture?
Key findings
- Pre-trained models exhibit a strong tendency to attend more to textual input than visual input during inference, with final predictions relying more on language.
- A subset of attention heads in both models is specifically tuned for cross-modal interaction, with more organic emergence in single-stream models like UNITER.
- Attention matrices in pre-trained models show coherent, visually interpretable patterns that align image regions with relevant textual words.
- Visual relation detection performance remains high even with mismatched captions, indicating robust encoding of visual relations in both model types.
- Linguistic knowledge is effectively encoded in attention heads, though single-stream models (like UNITER) outperform two-stream models (like LXMERT) on SentEval benchmarks, likely due to BERT-based initialization.
- The two-stream architecture is more sensitive to unrelated text inputs, as visual representations degrade significantly when paired with unpaired captions, unlike single-stream models.
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.