Weak Supervision helps Emergence of Word-Object Alignment and improves Vision-Language Tasks

Corentin Kervadec, Grigory Antipov, Moez Baccouche, Christian Wolf

Abstract

The large adoption of the self-attention (i.e. transformer model) and BERT-like training principles has recently resulted in a number of high performing models on a large panoply of vision-and-language problems (such as Visual Question Answering (VQA), image retrieval, etc.). In this paper we claim that these State-Of-The-Art (SOTA) approaches perform reasonably well in structuring information inside a single modality but, despite their impressive performances, they tend to struggle to identify fine-grained inter-modality relationships. Indeed, such relations are frequently assumed to be implicitly learned during training from application-specific losses, mostly cross-entropy for classification. While most recent works provide inductive bias for inter-modality relationships via cross attention modules, in this work, we demonstrate (1) that the latter assumption does not hold, i.e. modality alignment does not necessarily emerge automatically, and (2) that adding weak supervision for alignment between visual objects and words improves the quality of the learned models on tasks requiring reasoning. In particular, we integrate an object-word alignment loss into SOTA vision-language reasoning models and evaluate it on two tasks VQA and Language-driven Comparison of Images. We show that the proposed fine-grained inter-modality supervision significantly improves performance on both tasks. In particular, this new learning signal allows obtaining SOTA-level performances on GQA dataset (VQA task) with pre-trained models without finetuning on the task, and a new SOTA on NLVR2 dataset (Language-driven Comparison of Images). Finally, we also illustrate the impact of the contribution on the models reasoning by visualizing attention distributions.

Introduction

While Transformer-based models have revolutionized vision-language (VL) tasks, they suffer from a significant "grounding" problem. Researchers typically assume that training on massive image-caption datasets using general losses (like image-sentence matching) will lead to the emergence of fine-grained understanding—for instance, that the word "car" refers to specific pixels. However, this paper argues that modality alignment does not emerge automatically. Instead, models often exploit dataset biases or global image features, leading to "brittle" reasoning where a model might answer correctly for the wrong reasons.

Example of word-object alignment in VQA.

Methodology

The authors build upon a standard joint vision-language encoder using intra-modality and inter-modality transformer blocks. Their key innovation is the Object-Word Alignment Decoder, which predicts an alignment matrix between words in the sentence and detected objects in the image.

Vision-Language Transformer architecture overview.

Weak Supervision Signal

Since perfect word-to-object mapping is rare in large datasets, a "soft" ground truth ($A^*$) is created using two primary criteria:

  1. Position Criterion: Calculating the Intersection over Union (IoU) between detected object bounding boxes and ground-truth annotated regions.
  2. Semantic Criterion: Using GloVe embedding similarity between input words and labels/attributes predicted by an off-the-shelf object detector (Faster R-CNN).

The model is trained to minimize the KL-divergence between its predicted attention-based alignment and this weak supervision signal, allowing it to overcome the imperfections of automated object detectors.

Experimental Results

The model was pre-trained on 9.18 million image-sentence pairs from MSCOCO and Visual Genome. Evaluation was conducted on the GQA dataset for visual reasoning and NLVR2 for language-driven image comparison.

Key Findings

  • State-of-the-Art Performance: The model achieved a new SOTA on the NLVR2 dataset with 75.5% accuracy on the Test-P split. On GQA, it reached 60.5% accuracy without task-specific fine-tuning, rivaling models that were explicitly fine-tuned.
  • Reasoning and Consistency: The inclusion of alignment loss provided a +10.2 point boost in consistency on GQA. This suggests that explicit grounding helps the model answer related questions about the same image more logically.
  • Alignment is not Emergent: Without explicit alignment supervision, attention maps remain "blurry" and non-specific. Qualitative visualizations confirm that the proposed model focuses sharply on correct objects (e.g., a specific "crosswalk" or "vehicle"), whereas baseline models exhibit spread-out attention.

Conclusion

This work demonstrates that explicit grounding is necessary for robust vision-language reasoning and does not emerge naturally from standard training objectives. By leveraging weak supervision from existing detectors and annotations, models can achieve significant gains in both accuracy and reasoning consistency. Future work aims to explore how this grounding affects robustness against adversarial attacks and its application to tasks like fine-grained image retrieval.

Summary updated

Abstract

The large adoption of the self-attention (i.e. transformer model) and BERT-like training principles has recently resulted in a number of high performing models on a large panoply of vision-and-language problems (such as Visual Question Answering (VQA), image retrieval, etc.). In this paper we claim that these State-Of-The-Art (SOTA) approaches perform reasonably well in structuring information inside a single modality but, despite their impressive performances , they tend to struggle to identify fine-grained inter-modality relationships. Indeed, such relations are frequently assumed to be implicitly learned during training from application-specific losses, mostly cross-entropy for classification. While most recent works provide inductive bias for inter-modality relationships via cross attention modules, in this work, we demonstrate (1) that the latter assumption does not hold, i.e. modality alignment does not necessarily emerge automatically, and (2) that adding weak supervision for alignment between visual objects and words improves the quality of the learned models on tasks requiring reasoning. In particular , we integrate an object-word alignment loss into SOTA vision-language reasoning models and evaluate it on two tasks VQA and Language-driven Comparison of Images. We show that the proposed fine-grained inter-modality supervision significantly improves performance on both tasks. In particular, this new learning signal allows obtaining SOTA-level performances on GQA dataset (VQA task) with pre-trained models without finetuning on the task, and a new SOTA on NLVR2 dataset (Language-driven Comparison of Images). Finally, we also illustrate the impact of the contribution on the models reasoning by visualizing attention distributions.
BibTeX
@inproceedings{kervadec2020weak,
  author = {Corentin Kervadec and Grigory Antipov and Moez Baccouche and Christian Wolf},
  title = {{Weak Supervision helps Emergence of Word-Object Alignment and improves Vision-Language Tasks}},
  booktitle = {ECAI},
  year = {2020},
  url = {https://openreview.net/forum?id=PYFqj1yP-gP},
}
Figure