TL;DR
This paper introduces PromptFuse and BlindPrompt, novel methods for efficiently fusing information from different modalities (like images and text) using prompt vectors. These methods achieve competitive performance on multimodal tasks, especially in low-resource settings, by being highly parameter-efficient and modular, allowing for easier integration of new modalities.
What Problem Does This Paper Address?
The field of multimodal pre-training has seen tremendous progress, but the ever-increasing size of these models presents a significant challenge: finetuning them for downstream tasks is computationally expensive and data-hungry. This paper addresses the need for more efficient and flexible approaches to combine information from different modalities, moving beyond traditional finetuning. Specifically, it tackles how to align different data representations (e.g., visual features from an image encoder with text embeddings from a language model) without requiring extensive training or large datasets.
Methods
The core innovation lies in using "prompt vectors" to bridge the gap between different modalities. Instead of finetuning the entire multimodal model, the authors propose fixing pre-trained vision encoders (VE) and language models (PLMs) and introducing small, trainable prompt vectors. These vectors are inserted into the PLM's input and learn to align the representations from different modalities.
- PromptFuse: This is the general approach where prompt vectors are trained to fuse information from multiple modalities. The vision encoder extracts image representations, which are then fed to the PLM along with text, guided by the prompt vectors.
- BlindPrompt: A specific variant of PromptFuse where an attention mask is applied to the PLM. This mask ensures that the prompt vectors can only attend to each other and not to the actual input data (image or text). This forces the prompt vectors to focus solely on aligning the modalities, making the model more robust to spurious correlations.
The key idea is to disentangle the roles: the VE extracts high-quality representations, and the prompt vectors handle the alignment. This contrasts with prior work like "Frozen," where the vision encoder was trained to perform both representation extraction and alignment.
Datasets
The paper evaluates their methods on the following datasets:
- VQAv2: A visual question answering dataset used for experiments involving image and text modalities.
- MUSTARD: A multimodal dataset for sarcasm detection, incorporating video, audio, and text.
The experiments simulate low-resource settings by using a small number of training samples (128 and 512 shots for VQAv2, and 8, 32, and 64 shots for MUSTARD).
Key Insights and Ideas
- Prompting for Alignment: Prompt vectors are surprisingly effective at aligning representations from different modalities, even when the base models are frozen. This suggests that the pre-trained knowledge within large models can be effectively leveraged for multimodal tasks with minimal adaptation.
- Modularity and Flexibility: By fixing the encoders and only training prompt vectors, the proposed methods become highly modular. This means it's easy to swap out different pre-trained vision encoders or language models, or even add new modalities, without retraining everything from scratch.
- Parameter Efficiency: The methods require a very small number of trainable parameters (around 15K for PromptFuse/BlindPrompt vs. millions for finetuning), making them ideal for low-resource scenarios and reducing computational costs.
- BlindPrompt's Robustness: The BlindPrompt variant, by preventing direct attention to input content, shows improved robustness against spurious cues, leading to better performance on challenging "Other" questions in VQAv2.
Key Results
- Competitive Performance in Low-Resource Settings: PromptFuse and BlindPrompt achieve accuracy comparable to finetuning and other multimodal fusion methods on VQAv2, especially with limited data (128 and 512 shots). For example, on VQAv2 with 512 shots, PromptFuse and BlindPrompt achieve around 29.4% and 29.7% overall accuracy, respectively, which is competitive with Finetune (29.2%).
- Parameter Efficiency: PromptFuse and BlindPrompt require only about 15K trainable parameters, significantly less than Finetune (86M), Linear (0.5M), and JointProj (1M).
- Multimodal Success: On the MUSTARD dataset, PromptFuse and BlindPrompt outperform Finetune in 8- and 64-shot experiments, demonstrating their effectiveness with three modalities.
- Prompt Length Matters: Optimal prompt length for VQAv2 was found to be around 60, with longer or shorter lengths leading to decreased performance.
- Modularity Demonstrated: The paper shows that the methods work with different PLMs like BERT and T5, not just BART, highlighting their flexibility.
Limitations and Future Work
- Low-Resource Focus: While strong in low-resource settings, the paper notes that their methods perform worse than finetuning on full datasets. This is attributed to the significantly fewer trainable parameters.
- Prompt Length Optimization: The optimal prompt length might vary across tasks and datasets, requiring some tuning.
- Future Work: The authors suggest exploring more advanced methods for scaling up the number of parameters for prompt encoders and investigating further applications to tasks involving more than two modalities. They also highlight the potential for flexible addition of new modalities at low cost due to the modular design.
Summary updated