Supervised Multimodal Bitransformers for Classifying Images and Text

Douwe Kiela, Suvrat Bhooshan, Hamed Firooz, Davide Testuggine

TL;DR

This paper introduces a simple yet effective multimodal bitransformer architecture that leverages unimodally pre-trained text and image encoders. By projecting image embeddings into the text token space, their model achieves state-of-the-art or competitive results on several multimodal classification tasks, outperforming more complex approaches and demonstrating the power of supervised fusion.

What Problem Does This Paper Address?

In today's digital world, information is increasingly multimodal, with text often accompanied by images, audio, or video. While powerful unimodal models like BERT have revolutionized natural language processing, effectively fusing information from different modalities for classification tasks remains a challenge. Existing multimodal approaches often involve complex architectures or require extensive multimodal pre-training. This paper aims to bridge this gap by proposing a simpler, yet highly effective, supervised multimodal architecture that can achieve strong performance by leveraging existing unimodal pre-trained models.

Methods

The core of the proposed method is a multimodal bitransformer. This architecture builds upon the Transformer architecture, similar to BERT, but is designed to handle multiple modalities. The key innovation lies in how it integrates image information:

  • Unimodal Pre-training: The model starts with unimodally pre-trained text (BERT) and image (ResNet) encoders. This allows them to leverage the strong representations learned from each modality independently.
  • Projection to Text Token Space: Instead of complex fusion mechanisms, image embeddings are projected into the same high-dimensional space as text token embeddings. This is achieved by learning a weight matrix ($W_n$) that maps image features to the text token embedding space.
  • Self-Attention Fusion: Once both modalities are represented in the same embedding space, the standard self-attention mechanism of the Transformer is used to fuse information across modalities at multiple layers. This allows for a more fine-grained and integrated understanding of the combined input.
  • Supervised Fine-tuning: The entire model is then fine-tuned end-to-end on specific multimodal classification tasks.

This approach is simpler than many existing multimodal methods because it doesn't require multimodal pre-training and can easily incorporate advances in unimodal encoders.

Datasets

The authors evaluate their model on three text-heavy multimodal classification tasks:

  • MM-IMDB: Classifying movie genres based on plot outlines and movie posters. This is a multilabel task.
  • FOOD101: Classifying food items based on textual recipe descriptions and corresponding images. This is a multiclass task.
  • V-SNLI: A multimodal version of the SNLI dataset, where the task is to determine the relationship (entailment, neutral, contradiction) between a premise, a hypothesis, and an image. This dataset also includes a "hard" subset designed to challenge unimodal classifiers.

The paper also introduces "hard test sets" for MM-IMDB and FOOD101, created by selecting examples where unimodal classifiers (BERT and image-only) disagree the most, to better assess true multimodal reasoning capabilities.

Key Insights and Ideas

  • Simplicity is Powerful: The paper demonstrates that a straightforward supervised fusion approach, projecting image features into the text embedding space, can be highly effective, even outperforming more complex multimodal fusion techniques.
  • Unimodal Pre-training is Sufficient: Contrary to some prior work, the authors show that strong multimodal performance can be achieved without multimodal pre-training, relying solely on unimodal pre-trained components.
  • Fine-grained Fusion Matters: The self-attention mechanism operating across modalities at multiple layers appears to be key to the model's success, enabling deeper interaction than late-fusion methods.
  • Robustness to Missing Modalities: The proposed model shows better robustness when images are missing from the dataset compared to a strong baseline like ConcatBert.
  • Ease of Extensibility: The architecture's modularity makes it easy to incorporate new or improved unimodal encoders as they become available.

Key Results

  • The proposed multimodal bitransformer (MMBT) approaches or matches state-of-the-art accuracy on MM-IMDB and FOOD101, outperforming strong baselines.
  • On the V-SNLI dataset, MMBT achieves a significant improvement, particularly on the hard subset, outperforming previous methods.
  • MMBT is shown to be competitive with ViLBERT, a self-supervised multimodal model, despite being much simpler and not requiring multimodal pre-training.
  • The model demonstrates superiority over ConcatBert even when ConcatBert is given more parameters and a deeper classifier, suggesting MMBT is less prone to overfitting.
  • Analysis of freezing strategies indicates that early freezing of components is beneficial for learning the multimodal fusion.

Limitations and Future Work

  • Multimodal Pre-training Advantage: The authors acknowledge that their method does not fully leverage multimodal information during self-supervised pre-training, which might be a limitation compared to models that do. However, they argue their approach has access to potentially larger amounts of unimodal data.
  • Computational Cost: While simpler than some alternatives, the model still relies on Transformer architectures, which can be computationally intensive.
  • Future Work: The authors suggest their model serves as a strong baseline for future research, particularly for evaluating the benefits of self-supervised multimodal pre-training. They also highlight the ease of incorporating new unimodal encoders as a direction for future improvements.

Summary updated

BibTeX
@misc{kiela2019supervised,
  author = {Douwe Kiela and Suvrat Bhooshan and Hamed Firooz and Davide Testuggine},
  title = {{Supervised Multimodal Bitransformers for Classifying Images and Text}},
  year = {2019},
  eprint = {1909.02950},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.02950},
}
Figure