Chameleon: Images Are What You Need For Multimodal Learning Robust To Missing Modalities

Muhammad Irzam Liaqat, Shah Nawaz, Muhammad Zaigham Zaheer, Muhammad Saad Saeed, Hassan Sajjad, Tom De Schepper, Karthik Nandakumar, Muhammad Haris Khan, Markus SchedlarXiv 2024

Abstract

Multimodal learning has demonstrated remarkable performance improvements over unimodal architectures. However, multimodal learning methods often exhibit deteriorated performances if one or more modalities are missing. This may be attributed to the commonly used multi-branch design containing modality-specific streams making the models reliant on the availability of a complete set of modalities. In this work, we propose a robust textual-visual multimodal learning method, Chameleon, that completely deviates from the conventional multi-branch design. To enable this, we present the unification of input modalities into one format by encoding textual modality into visual representations. As a result, our approach does not require modality-specific branches to learn modality-independent multimodal representations making it robust to missing modalities. Extensive experiments are performed on four popular challenging datasets including Hateful Memes, UPMC Food-101, MM-IMDb, and Ferramenta. Chameleon not only achieves superior performance when all modalities are present at train/test time but also demonstrates notable resilience in the case of missing modalities.

Introduction

Multimodal learning—combining different types of data like text and images—usually outperforms unimodal approaches. However, most current models are "brittle." They typically use a multi-branch architecture where one "arm" of the neural network processes text and another processes images. The problem arises when a modality goes missing, such as a corrupted text file or a failed image upload. Because these models rely on the interaction between specific branches, the loss of one modality often leads to a catastrophic drop in accuracy. For example, the popular ViLT model sees a significant performance drop when text data is missing. Chameleon aims to fix this "missing modality" problem by unifying the input format at the very beginning of the pipeline.

Methodology: Modality Unification

The core innovation of Chameleon is modality unification. Instead of building separate architectures for text and images, the authors convert text into a visual format that a standard Vision Transformer (ViT) or CNN can understand.

Chameleon architecture overview showing text-to-visual encoding and the Joint/Fused training variants.

Text-to-Visual Encoding

The authors take word embeddings (e.g., Word2Vec) and normalize the values. They then group every three consecutive values in the embedding vector to represent one RGB pixel. This turns a string of text into a sequence of color-coded pixel blocks, effectively rendering text as a small image patch.

Training Variants

Chameleon offers two primary ways to handle these unified inputs:

  • Joint: The encoded text is patched onto a blank image. Both the original image and the "text-image" are fed sequentially into a weight-shared visual network.
  • Fused: The encoded text pixels are patched directly onto the original image, creating a single "fused" input that the model processes in one pass.

Because the input is always an image, Chameleon is architecture-agnostic; it can be used with any standard visual backbone, such as ResNet-101 or ViT-B/16, without needing custom fusion layers or "missing-modality-aware" prompts.

Experimental Evaluation

The authors evaluated Chameleon on four diverse and challenging textual-visual datasets: UPMC Food-101 (101 food classes), Hateful Memes (identifying hate speech), MM-IMDb (predicting movie genres), and Ferramenta (e-commerce adverts).

Key Results and Robustness

Chameleon demonstrates superior robustness compared to existing multimodal transformers. On the UPMC Food-101 dataset, when 70% of the text was missing at test time, Chameleon outperformed the SOTA ViLT model by a massive 13.3%.

Performance comparison between Chameleon and ViLT on UPMC Food-101, highlighting robustness to missing text.

Even when all modalities are present, Chameleon achieved top-tier results, reaching 92.5% accuracy on Food-101 and 96.6% on Ferramenta, matching or beating specialized multimodal models. This suggests that the unification process does not sacrifice peak performance for the sake of robustness.

Discussion and Insights

Chameleon's success suggests that unification over fusion is a powerful paradigm. Traditional models try to "fuse" different latent spaces (text space vs. image space). Chameleon argues that if you unify the data at the input level, the model naturally learns modality-independent representations.

Visualization techniques like Grad-CAM show that when a modality is missing, Chameleon automatically shifts its "attention" to the remaining modality. If the text is gone, it focuses on the object in the image; if the image is gone, it focuses on the encoded text pixels. This dynamic shifting is inherent to the single-backbone design.

Conclusion

Chameleon presents a novel way to handle multimodal data by treating everything as an image. While text length remains a potential limitation for extremely long descriptions, the "everything-is-an-image" philosophy simplifies the quest for a truly universal multimodal backbone that is resilient to real-world data corruption and missing information.

Summary updated

BibTeX
@misc{liaqat2024chameleon,
  author = {Muhammad Irzam Liaqat and Shah Nawaz and Muhammad Zaigham Zaheer and Muhammad Saad Saeed and Hassan Sajjad and Tom De Schepper and Karthik Nandakumar and Muhammad Haris Khan and Markus Schedl},
  title = {{Chameleon: Images Are What You Need For Multimodal Learning Robust To Missing Modalities}},
  year = {2024},
  eprint = {2407.16243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.16243},
}
Figure