Skip to main content
QUICK REVIEW

[Paper Review] Probing Inter-modality: Visual Parsing with Self-Attention for Vision-Language Pre-training

Hongwei Xue, Yupan Huang|arXiv (Cornell University)|Jun 25, 2021
Multimodal Machine Learning ApplicationsComputer Science43 references9 citations
TL;DR

This paper proposes a fully Transformer-based visual embedding for vision-language pre-training, replacing CNNs to better capture long-range visual relationships through self-attention (visual parsing). It introduces Masked Feature Regression (MFR) for inter-modality optimization and Inter-Modality Flow (IMF) to measure cross-modal interaction, achieving state-of-the-art performance across multiple vision-language tasks while demonstrating superior inter-modality alignment.

ABSTRACT

Vision-Language Pre-training (VLP) aims to learn multi-modal representations from image-text pairs and serves for downstream vision-language tasks in a fine-tuning fashion. The dominant VLP models adopt a CNN-Transformer architecture, which embeds images with a CNN, and then aligns images and text with a Transformer. Visual relationship between visual contents plays an important role in image understanding and is the basic for inter-modal alignment learning. However, CNNs have limitations in visual relation learning due to local receptive field's weakness in modeling long-range dependencies. Thus the two objectives of learning visual relation and inter-modal alignment are encapsulated in the same Transformer network. Such design might restrict the inter-modal alignment learning in the Transformer by ignoring the specialized characteristic of each objective. To tackle this, we propose a fully Transformer visual embedding for VLP to better learn visual relation and further promote inter-modal alignment. Specifically, we propose a metric named Inter-Modality Flow (IMF) to measure the interaction between vision and language modalities (i.e., inter-modality). We also design a novel masking optimization mechanism named Masked Feature Regression (MFR) in Transformer to further promote the inter-modality learning. To the best of our knowledge, this is the first study to explore the benefit of Transformer for visual feature learning in VLP. We verify our method on a wide range of vision-language tasks, including Image-Text Retrieval, Visual Question Answering (VQA), Visual Entailment and Visual Reasoning. Our approach not only outperforms the state-of-the-art VLP performance, but also shows benefits on the IMF metric.

Motivation & Objective

  • To address the limitation of CNNs in modeling long-range visual relationships, which hinders effective inter-modal alignment in vision-language pre-training.
  • To explore the benefits of using self-attention for visual feature learning in vision-language models, moving beyond CNN-based visual encoders.
  • To design a novel masking mechanism (MFR) that leverages visual parsing dependencies to promote language-guided visual representation learning.
  • To introduce Inter-Modality Flow (IMF) as a metric to quantify and probe information flow between vision and language modalities during training.
  • To evaluate the effectiveness of the proposed method on diverse vision-language tasks and analyze inter-modality fusion dynamics through ablation and probing studies.

Proposed method

  • Replace CNN-based visual encoders with a fully Transformer-based visual embedding network to enable global, long-range visual relation modeling via self-attention.
  • Introduce Visual Parsing as a method to learn inter-token dependencies in visual features, where each visual token attends to all others through learned attention weights.
  • Design Masked Feature Regression (MFR) as a novel masking optimization mechanism that masks high-dependency visual tokens to force the multi-modal Transformer to rely more on language signals.
  • Propose Inter-Modality Flow (IMF) as a layer-wise metric to quantify information flow between vision and language modalities, computed as attention flow from input to output across transformer layers.
  • Train the model end-to-end with standard VLP objectives (MLM, MFR) while using IMF as a diagnostic tool to analyze modality interaction dynamics.
  • Use k-means clustering on visual and language features per layer and compute Normalized Mutual Information (NMI) to assess data distribution fusion, providing complementary analysis to IMF.

Experimental results

Research questions

  • RQ1Can a fully Transformer-based visual encoder outperform CNN-based encoders in learning visual relationships and improving inter-modal alignment in vision-language pre-training?
  • RQ2How does visual parsing via self-attention enhance the modeling of long-range visual dependencies compared to local receptive fields in CNNs?
  • RQ3To what extent does the proposed MFR masking mechanism improve cross-modal attention by focusing on high-dependency visual tokens?
  • RQ4How well does the Inter-Modality Flow (IMF) metric correlate with downstream task performance and reflect true inter-modality interaction?
  • RQ5What insights can be drawn from probing data distribution fusion (via NMI) and IMF about the degree and dynamics of modality interaction in different VLP architectures?

Key findings

  • The proposed fully Transformer-based visual embedding outperforms state-of-the-art VLP models across multiple benchmarks, including Image-Text Retrieval, VQA, Visual Entailment, and Visual Reasoning.
  • The model achieves consistently higher Inter-Modality Flow (IMF) scores across all transformer layers, indicating stronger and more sustained information flow between vision and language modalities.
  • MFR significantly improves performance by masking visual tokens with high attention dependency, forcing the model to rely more on language context during alignment.
  • The IMF metric is positively correlated with downstream task performance, validating its effectiveness as a diagnostic tool for inter-modality learning.
  • Ablation studies confirm that visual parsing and MFR are both essential components, with the former enabling better visual relation modeling and the latter enhancing cross-modal attention.
  • NMI analysis shows that models with end-to-end visual backbones (SOHO and our model) maintain lower NMI scores than UNITER, indicating reduced modality separation and stronger fusion, though IMF provides a more accurate measure of interaction than NMI.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.