Improving Pre-trained Vision-and-Language Embeddings for Phrase Grounding

Zi-Yi Dou, Nanyun Peng

Improving Pre-trained Vision-and-Language Embeddings for Phrase Grounding

Phrase grounding—the task of mapping specific textual phrases (e.g., "the girl in the red hat") to their corresponding regions in an image—is a fundamental building block for multimodal reasoning. However, high-quality supervised data for this task is expensive and scarce. This paper explores how to unlock and enhance the latent grounding abilities of pre-trained vision-and-language (V&L) models like VisualBERT using only weak supervision from standard image-caption pairs.

Zero-Shot Extraction and Attention Symmetry

The researchers first demonstrate that grounding information can be extracted directly from pre-trained embeddings without further training. By calculating the cosine similarity between the embeddings of a noun phrase and candidate image regions, they can identify which region the model associates with the text.

Visualization of cross-modal attention maps showing the alignment between text tokens and specific image regions.

A key insight from this analysis is the importance of Bidirectional Attention Optimization (BAO). This novel objective encourages "symmetry" in the model's attention: it ensures that the way the vision system attends to language is consistent with the way the language system attends to vision. If a model looks at a "ball" to understand the word "kick," it should reciprocally look at the word "kick" when identifying the "ball."

Enhancing Grounding via Weak Supervision

To improve these alignments, the authors introduce four weakly-supervised objectives that do not require bounding-box annotations. These were applied to models pre-trained on large-scale datasets like Conceptual Captions (2.77M images) and MS-COCO:

  • Masked Language Modeling (MLM): Predicting missing words conditioned on visual context.
  • Masked Region Modeling (MRM): Identifying masked image regions from a dynamic vision vocabulary created on the fly.
  • Object Label Prediction (OLP): Predicting text labels (like "dog" or "car") for image regions. This was found to be the most impactful objective, explicitly bridging the gap between visual features and vocabulary.
  • Bidirectional Attention Optimization (BAO): Enforcing the cross-modal attention symmetry described above.

Key Results and Insights

The proposed methods achieved state-of-the-art performance in weakly-supervised settings. On the Flickr30k Entities dataset, the model reached 62.10% accuracy, significantly outperforming previous specialized models. On the challenging RefCOCO+ "testA" set, grounding accuracy improved from 42.19% to 47.89%.

Several critical findings emerged from the study:

  • Single-Stream Superiority: "Single-stream" models (like VisualBERT), which process images and text together in the same layers, are significantly better at grounding than "two-stream" models (like LXMERT) that process them separately before merging.
  • The "Free Win" of Alignment: Improving a model's ability to pinpoint objects does not hurt its performance on downstream tasks like VQAv2 or SNLI-VE (Visual Entailment). In fact, better alignment often provides a performance boost, suggesting it is a fundamental improvement for multimodal AI.
  • Layer-Specific Grounding: Grounding ability is not uniform across the model; typically, the top and bottom layers are more effective at alignment than the middle layers.

Conclusion

This work demonstrates that the internal representations of pre-trained V&L models contain significant grounding information that can be enhanced without expensive manual annotations. By employing objectives like Object Label Prediction and Bidirectional Attention Optimization, researchers can bridge the gap between weak and full supervision, creating more robust and interpretable multimodal systems. Future work may involve integrating these objectives directly into the initial large-scale pre-training phase of V&L models.

Summary updated

BibTeX
@inproceedings{dou2021improving,
  author = {Zi-Yi Dou and Nanyun Peng},
  title = {{Improving Pre-trained Vision-and-Language Embeddings for Phrase Grounding}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.513},
}
Figure