Weakly-supervised VisualBERT: Pre-training without Parallel Images and Captions

Liunian Harold Li, Haoxuan You, Zhecan Wang, Alireza Zareian, Shih-Fu Chang, Kai-Wei ChangarXiv 2020

Introduction

State-of-the-art Vision-and-Language (V&L) models, which power applications like visual question answering and image retrieval, typically rely on massive datasets of paired image-caption examples. However, high-quality aligned data is a significant bottleneck; it is expensive to produce manually and often noisy when crawled from the web. This research introduces U-VisualBERT (Unsupervised VisualBERT), a model that learns to associate images and text without ever seeing a single paired example during pre-training. Inspired by unsupervised machine translation, the authors investigate whether the "universal symmetries" between the visual and linguistic worlds can be leveraged using only independent collections of images and text.

Methodology

U-VisualBERT utilizes a standard single-stream Transformer architecture but employs a novel training strategy to bridge the gap between modalities without parallel data. The model is trained on two separate "silos":

  1. Text Silo: The model performs standard Masked Language Modeling (MLM), predicting missing words in a sentence.
  2. Image Silo: The model performs Masked Region Modeling (MRM), predicting features of hidden parts of an image.
Overview of U-VisualBERT pre-training using separate text and image silos bridged by object detector tags.

To prevent the model from learning two isolated representations, the researchers used an off-the-shelf object detector to generate "tags" (e.g., cake, person) for specific image regions. These tags act as anchor points. Because the word "cake" appears in the text-only corpus and the tag "cake" appears in the image-only corpus, the model learns that visual features of a cake, the linguistic tag, and the word in a sentence all refer to the same underlying concept. Crucially, the text segments used never describe the specific images being processed during pre-training.

Key Insights and Structural Symmetry

A core finding of this work is that the latent spaces of images and language possess similar internal structures. Even without explicit alignment, the relationship between a visual "dog" and a visual "ball" mirrors the relationship between the words "dog" and "ball" in text.

t-SNE visualizations of embeddings for S-VisualBERT, U-VisualBERT, and U-VisualBERT_NT, demonstrating structural alignment across modalities.

As shown in the t-SNE visualizations above, U-VisualBERT achieves a degree of semantic clustering and cross-modal alignment comparable to its supervised counterpart (S-VisualBERT). Furthermore, the researchers found that "caption-like" text is not strictly necessary; pre-training on general domain text like BookCorpus (novels) yielded performance nearly as high as using shuffled captions, suggesting that V&L models can be trained using the vast, unlabelled resources of the internet.

Results and Evaluation

U-VisualBERT was evaluated on standard benchmarks including VQA 2.0, NLVR2, and Flickr30K. The results demonstrate that the model performs remarkably close to supervised models trained on perfectly aligned pairs:

  • VQA 2.0: U-VisualBERT scored 70.74, nearly matching the supervised version's 70.87.
  • NLVR2: It achieved 71.02, compared to 73.93 for the supervised model.
  • Retrieval (Flickr30K): While a gap remains (55.37 R@1 vs 61.19), U-VisualBERT significantly outperformed base models that lacked V&L pre-training (42.86).

Conclusion and Future Work

U-VisualBERT challenges the assumption that paired data is an indispensable ingredient for multimodal AI. By using object tags as a bridge, the model achieves competitive performance through weak supervision. Future work will focus on reducing the dependency on fixed object detectors—which currently limit the model's vocabulary to recognizable nouns—and scaling the approach to billion-scale datasets to see if the performance gap with supervised methods can be closed entirely.

Summary updated

BibTeX
@misc{li2020weakly,
  author = {Liunian Harold Li and Haoxuan You and Zhecan Wang and Alireza Zareian and Shih-Fu Chang and Kai-Wei Chang},
  title = {{Weakly-supervised VisualBERT: Pre-training without Parallel Images and Captions}},
  year = {2020},
  eprint = {2010.12831},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.12831},
}
Figure