Multimodal Prompting with Missing Modalities for Visual Recognition

Yi-Lun Lee, Yi-Hsuan Tsai, Wei-Chen Chiu, Chen-Yu LeeCVPR 2023

Abstract

In this paper, we tackle two challenges in multimodal learning for visual recognition: 1) when missing-modality occurs either during training or testing in real-world situations; and 2) when the computation resources are not available to finetune on heavy transformer models. To this end, we propose to utilize prompt learning and mitigate the above two challenges together. Specifically, our modality-missing-aware prompts can be plugged into multimodal transformers to handle general missing-modality cases, while only requiring less than 1% learnable parameters compared to training the entire model. We further explore the effect of different prompt configurations and analyze the robustness to missing modality. Extensive experiments are conducted to show the effectiveness of our prompt learning framework that improves the performance under various missing-modality cases, while alleviating the requirement of heavy model re-training.

Introduction

In an ideal research setting, multimodal models—which process multiple types of data, such as images and text—assume every data point is complete. However, the real world is rarely so tidy. Sensors fail, privacy constraints limit data sharing, and certain samples naturally lack specific modalities.

Standard multimodal transformers often experience a massive performance drop when data is incomplete. To address this, researchers typically finetune the entire model on "incomplete" datasets. This approach is not only computationally expensive but can also lead to instability or over-fitting, especially on smaller datasets. This paper introduces a framework that addresses both modality incompleteness and computational efficiency simultaneously through the use of missing-aware prompts.

Methodology

Missing-Aware Prompting

The proposed framework keeps the backbone multimodal transformer (specifically ViLT) completely frozen. Instead of updating the model's millions of weights, the authors introduce "missing-aware prompts" ($P_m$). These are small, learnable vectors specific to the missing-modality case (e.g., one prompt for "text-only," one for "image-only," and one for "complete data").

These prompts act as instructions that tell the frozen model how to shift its internal representations to handle specific input distributions. The authors explored two primary ways to integrate these prompts:

  1. Input-level Prompting: Learnable vectors are prepended to the input sequence of the transformer layers. This allows the prompts to interact directly with the data tokens throughout the self-attention process.
  2. Attention-level Prompting: The internal Multi-Head Self-Attention (MSA) layers are modified by prepending prompts specifically to the Key ($K$) and Value ($V$) vectors. This influences how the model "attends" to information without altering the sequence length of the output.

Strategic Placement

A key finding in the methodology is the importance of prompt placement. The authors discovered that attaching these prompts to the first half of the transformer's layers is most effective. This is because multimodal inputs are fused early in the architecture; once the modalities are deeply integrated in later layers, the distinct characteristics of the missing modality are harder to compensate for.

Experimental Setup

The framework was evaluated on three diverse multimodal benchmarks:

  • MM-IMDb: A movie genre classification dataset (image + plot summary).
  • UPMC Food-101: A food classification dataset consisting of noisy image-text pairs from the web.
  • Hateful Memes: A challenging dataset designed to identify hate speech in memes, requiring an understanding of the interplay between image and text.

Key Insights and Results

Performance and Efficiency

The proposed method achieved state-of-the-art performance across various missing-modality scenarios. For instance, on the MM-IMDb dataset with a 70% missing rate, input-level prompting achieved an F1-Macro score of 42.66, significantly outperforming the baseline (36.26) and even surpassing full-model finetuning in several scenarios.

Remarkably, this performance is achieved with extreme parameter efficiency. By training only approximately 221K parameters—just 0.2% of the ViLT model's 113M parameters—the method maintains or improves accuracy while drastically reducing the computational burden.

Robustness

The method remains stable even when the "missing rate" (the percentage of incomplete data) varies significantly between training and testing. This suggests that the prompts learn a generalized strategy for handling informational gaps rather than simply memorizing specific missing patterns.

Comparison of Prompting Types

While input-level prompting generally performed better across most datasets, attention-level prompting proved to be more stable and less sensitive to specific dataset configurations, such as varying text sequence lengths.

Conclusion and Future Work

This research demonstrates that parameter-efficient prompt learning is a viable and powerful alternative to full-model finetuning for robust multimodal recognition. By using less than 1% of the parameters, the model can be adapted to handle missing data effectively.

However, limitations remain. The current approach does not "recover" or hallucinate missing information; it merely optimizes the model's response to its absence. Future work may involve integrating cross-modal generative modeling to "fill in the blanks." Additionally, to handle scenarios with many modalities (e.g., video, audio, and depth), the authors suggest exploring "prompt pools" to avoid the quadratic growth of prompt combinations.

Summary updated

BibTeX
@inproceedings{lee2023multimodal,
  author = {Yi-Lun Lee and Yi-Hsuan Tsai and Wei-Chen Chiu and Chen-Yu Lee},
  title = {{Multimodal Prompting with Missing Modalities for Visual Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=88cxS6Hlkp},
}
Figure