InterBERT: Vision-and-Language Interaction for Multi-modal Pretraining

Junyang Lin, An Yang, Yichang Zhang, Jie Liu, Jingren Zhou, Hongxia YangarXiv 2020

Abstract

Multi-modal pretraining is a critical step toward achieving high-level artificial intelligence. In this work, we introduce InterBERT (BERT for Interaction), the first model in our M6 (MultiModality-to-MultiModality Multitask Mega-transformer) series. InterBERT is designed to balance deep cross-modal interaction with the preservation of modality independence. By utilizing a hybrid single-stream interaction and two-stream extraction architecture, InterBERT achieves state-of-the-art results on vision-language tasks like image retrieval and visual commonsense reasoning, while maintaining performance on single-modal text tasks comparable to the original BERT.

Introduction

In vision-and-language (V&L) pretraining, researchers typically face a trade-off between two architectural paradigms. Single-stream models concatenate image and text features into one Transformer, enabling deep interaction but often degrading performance on single-modal tasks as the model "forgets" how to process modalities independently. Conversely, two-stream models process modalities separately and use co-attention for information sharing, which preserves independence but limits the depth of cross-modal reasoning.

InterBERT addresses this dilemma by proposing a hybrid architecture that facilitates deep fusion without sacrificing the integrity of individual modalities. Furthermore, it introduces more challenging pretraining tasks to force the model to learn nuanced semantic alignments rather than relying on simple keyword matching.

Architecture and Methodology

The InterBERT architecture consists of two primary components:

  1. Single-Stream Interaction Module: This module takes concatenated image and text embeddings and passes them through a multi-head self-attention block (initialized with BERT-base weights). This "all-attention" mechanism allows every linguistic token and visual region to attend to the entire multi-modal context.
  2. Two-Stream Extraction Module: Following the interaction phase, the fused representations are passed through separate Transformers dedicated to extracting final visual and linguistic features. This step is crucial for recovering modality independence.
InterBERT Architecture: Single-stream interaction followed by two-stream extraction.

Pretraining Objectives

To move beyond "easy" pretraining tasks that allow models to cheat using local context, InterBERT employs three sophisticated objectives:

  • Masked Group Modeling (MGM): This includes Masked Segment Modeling (MSM), which masks continuous text spans, and Masked Region Modeling (MRM), which masks highly overlapping adjacent image regions. This forces the model to rely on cross-modal information rather than immediate neighbors.
  • Image-Text Matching with Hard Negatives (ITM-hn): Instead of using purely random negative samples, 20% of negatives are "hard negatives"—captions that are lexically similar to the true caption (retrieved via TF-IDF) but describe different scenes.

Experimental Setup

The model was pretrained on large-scale datasets including Conceptual Captions (3.3M), SBU Captions (890K), and COCO Captions (117K). For downstream evaluation, the authors utilized Flickr30K for image retrieval and the Visual Commonsense Reasoning (VCR) benchmark. To test single-modal robustness, the model was evaluated on the GLUE benchmark.

Summary of downstream datasets used for evaluation.

Additionally, the authors developed Chinese InterBERT, pretrained on TaoMultimodal, a new dataset of 3.1M image-text pairs from the mobile Taobao e-commerce platform.

Results and Discussion

InterBERT demonstrates significant improvements across various benchmarks:

  • Zero-Shot Image Retrieval: On Flickr30K, InterBERT outperformed the VilBERT baseline by +17.3% in R@1, highlighting the effectiveness of hard negative training.
  • Visual Commonsense Reasoning (VCR): The model achieved 54.9% accuracy on the difficult Q→AR (Question to Answer and Rationale) subtask, surpassing both VilBERT and VL-BERT.
  • Single-Modal Robustness: On the text-only GLUE benchmark, InterBERT scored 81.8, nearly matching the original BERT-base (82.0) and significantly outperforming standard single-stream models (80.0).
  • Production Impact: In A/B testing on mobile Taobao, Chinese InterBERT improved Click-Through Rates (CTR) and category exposure compared to single-modal baselines.

Conclusion

InterBERT successfully bridges the gap between single-stream and two-stream architectures. By combining deep interaction with modality-specific extraction and employing harder pretraining tasks, it achieves superior performance in multi-modal reasoning while remaining a robust tool for single-modal NLP tasks. Future work will continue to explore the nuances of weight initialization and the scaling of the M6 series.

Summary updated

BibTeX
@misc{lin2020interbert,
  author = {Junyang Lin and An Yang and Yichang Zhang and Jie Liu and Jingren Zhou and Hongxia Yang},
  title = {{InterBERT: Vision-and-Language Interaction for Multi-modal Pretraining}},
  year = {2020},
  eprint = {2003.13198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.13198},
}
Figure