ImageBERT: Cross-modal Pre-training with Large-scale Weak-supervised Image-Text Data

Haoyang Huang (黄浩洋), Di Qi, Lin Su, Jia Song, Edward Cui, Taroon Bharti, Arun SachetiarXiv 2020

In the rapidly evolving field of multimodal AI, the Bing Multimedia Team at Microsoft has introduced ImageBERT, a vision-language model designed to master the complex relationship between images and text. By leveraging a massive new web-scale dataset and a sophisticated multi-stage training strategy, ImageBERT pushes the boundaries of cross-modal retrieval, setting new benchmarks for how machines "see" and "read" simultaneously.

The Challenge of Cross-Modal Learning

Traditionally, computer vision and natural language processing have been treated as separate domains, utilizing distinct architectures like ResNets for images and BERT for text. While these models are individually powerful, combining them for tasks such as image retrieval or Visual Question Answering (VQA) often relies on "late fusion"—joining the models only at the final output stage.

Late fusion, however, requires significant amounts of task-specific labeled data, which is both expensive and scarce. More importantly, it misses the opportunity for the model to learn deep, early-stage correlations between specific visual regions and corresponding words. ImageBERT addresses this by scaling up training data and refining the model's ability to associate pixels with prose from the ground up.

The LAIT Dataset: Scaling Up Data

A core contribution of this research is the introduction of LAIT (Large-scale weAk-supervised Image-Text), a dataset containing 10 million image-text pairs mined from the web. Unlike manually curated datasets, LAIT is "weakly supervised," meaning descriptions are pulled from HTML metadata like Alt-text.

To ensure the quality of this massive resource, the authors implemented a rigorous multi-step filtering pipeline. This process discards non-English pages, low-quality images (smaller than 300 pixels), and content that is pornographic or non-realistic. Crucially, an image-text semantic model is used to ensure that the textual description and the image are actually relevant to one another.

The LAIT data collection and filtering pipeline, showing the transition from billions of crawled webpages to high-quality image-text pairs.

Despite the inherent noise in web-mined data, the sheer scale of LAIT allows the model to learn a robust baseline of visual-linguistic concepts. Below are examples of the resulting pairs used for training:

Samples from the LAIT dataset showing diverse images paired with descriptive text captions.

The ImageBERT Architecture and Pre-training

ImageBERT utilizes a Transformer backbone, treating an image as a sequence of "visual tokens."

  1. Input Processing: Text is tokenized using standard WordPiece. Images are processed via a Faster R-CNN to extract 100 "Regions of Interest" (RoIs). Each RoI is treated as a visual token, augmented with spatial location data.
  2. Pre-training Tasks: The model is trained on four simultaneous tasks to force deep cross-modal understanding:
  3. Masked Language Modeling (MLM): Predicting missing words using both text and image context.
  4. Masked Object Classification (MOC): Predicting the category of a masked image region.
  5. Masked Region Feature Regression (MRFR): Reconstructing the visual feature vector of a masked region.
  6. Image-Text Matching (ITM): A binary task to determine if a text description matches the image.

Multi-stage Pre-training Strategy

Rather than training on all data at once, the authors employ a "coarse-to-fine" curriculum. They first train on the massive, noisy LAIT dataset to build a broad world-view. They then "warm up" on smaller, cleaner datasets like Conceptual Captions (3M pairs) and SBU Captions (1M pairs) before finally fine-tuning on specific downstream tasks. This strategy proved more effective than simultaneous training, suggesting that refining a broad baseline with cleaner data is a superior learning path.

Key Results and Insights

ImageBERT achieved state-of-the-art results on industry-standard benchmarks:

  • Flickr30k: Achieved an R@1 of 73.1 for image retrieval and 87.0 for sentence retrieval.
  • MSCOCO: Achieved an R@1 of 73.6 for image retrieval and 85.4 for sentence retrieval.

Beyond raw scores, the research highlighted that the MRFR (Feature Regression) task is vital for zero-shot performance, as it forces the model to understand visual content at a granular level. Furthermore, the study found that 100 detected object regions (RoIs) provided sufficient context, making additional global image features redundant.

Future Directions

While currently focused on retrieval, the Bing Multimedia Team plans to extend ImageBERT to generative and reasoning tasks like Image Captioning and VQA. As computational resources allow for training on the full 10 million (or larger) LAIT datasets, the potential for even more robust cross-modal understanding continues to grow.

Summary updated

BibTeX
@misc{2020imagebert,
  author = {Haoyang Huang (黄浩洋) and Di Qi and Lin Su and Jia Song and Edward Cui and Taroon Bharti and Arun Sacheti},
  title = {{ImageBERT: Cross-modal Pre-training with Large-scale Weak-supervised Image-Text Data}},
  year = {2020},
  eprint = {2001.07966},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.07966},
}
Figure