| Task | Retr. | Miss. | Scenario | Prompt |
| Audio-Video | X | | MA | The audio is missing. The assistant must use visual data to infer a probable audio context. |
| MV | The video is missing. The assistant must use audio data to infer a probable visual context. |
| C | Both video and audio are present. |
| ✓ | | MA | The assistant receives an approximate audio data and uses it to generate a response as accurately as possible. |
| MV | The assistant receives an approximate visual data and uses it to generate a response as accurately as possible. |
| Audio-Video-Text | X | | MA | The audio is missing. The assistant must use visual and textual data to infer a probable audio context. |
| MV | The video is missing. The assistant must use audio and textual data to infer a probable video context. |
| MT | The input text is missing. The assistant must use audio and visual data to infer a probable textual context. |
| MAT | The audio and input text are missing. The assistant must use visual data to infer a probable audio and textual context. |
| MVT | The video and input text are missing. The assistant must use audio to infer a probable video and textual context. |
| MAV | The video and audio are missing. The assistant must use textual data to infer a probable visual and audio context. |
| C | Audio, visual and textual data are all present. |
| ✓ | | MA | The assistant receives an approximate audio data and uses it to generate a response as accurately as possible. |
| MV | The assistant receives an approximate visual data and uses it to generate a response as accurately as possible. |
| MT | The assistant receives an approximate input text data and uses it to generate a response as accurately as possible. |
| MAT | The assistant receives an approximate audio and input text data and uses them to generate a response as accurately as possible. |
| MVT | The assistant receives an approximate visual and input text data and uses them to generate a response as accurately as possible. |
| MAV | The assistant receives an approximate visual and audio data and uses them to generate a response as accurately as possible. |
+
+Table 1. Prompt Engineering (PE) details for all missing modality scenarios and retrieval modes.
+
+the LLM must respond to while also considering the information contained in the system message.
+
+# 3.2. Multimodal RAG for Missing Modalities
+
+In this study, we propose MISSRAG, the first multimodal RAG-based framework that simultaneously processes three distinct modalities. This framework is capable of retrieving complementary audio, visual, and textual data for any given combination of these input modalities. Specifically, when a modality is absent, we utilize the information from the available modalities to retrieve optimal candidates for substitution. This approach aims to achieve performance comparable to scenarios where all modalities are present, thereby mitigating the missing modality problem.
+
+To implement this, we require a repository of prototypes for each modality that needs to be retrieved during the testing phase. In practice, we construct this prototype pool using the training set of each respective dataset independently. This approach does not make the proposed prototype retrieval technique restricted or sensitive to the tasks.
+
+Subsequently, to establish an effective retrieval system, we employ a function that maps the samples of each modality into a shared embedding space where representations of similar concepts are proximally located. Consequently, we expect that within this embedding space, the modality representations of a given sample will exhibit greater similarity to one another than to those of different samples.
+
+A pre-trained multimodal backbone facilitates this mapping by ensuring that semantically similar samples are closely aligned in the embedding space. Specifically, we use a contrastive backbone to generate key embeddings for each modality in the training set, as shown in Fig. 3, which can then be queried using corresponding embeddings derived from the available modalities in the test set.
+
+We then calculate the dot product between these queries
+
+and the embeddings of the missing modality. The resulting similarity scores are concatenated, and the top- $k$ highest scores are selected to retrieve the most relevant samples. If only one modality is available, there is no concatenation of similarity scores, and the process is executed two times to obtain candidates for each of the two missing modalities. Once retrieved, the modality tokens that correspond to the retrieved samples are computed and averaged. It is important to note that there are no modality tokens for the text modality, as it is the native modality of the LLM. Therefore, we concatenate multiple retrieved texts if $k$ is greater than 1. The retrieved information is subsequently used to complete the missing sections of the LLM input prompt, ensuring that the input becomes fully comprehensive.
+
+# 3.3. Prompt Engineering
+
+In this work, we leverage Prompt Engineering (PE) techniques to improve the comprehension of our MLLM with respect to its input data, inducing it to cope with cases of missing modalities. In particular, our prompt engineering strategy has two objectives: informing the model about the input modality status and inducing it to mitigate the missing modality problem with a Compensation Strategy for Missing Modalities (CSMM) prompt.
+
+Specifically, we append to the system message a string that describes the input modality status, composed of a concatenation of input descriptors for each of the possible input modalities of the task defined as:
+
+{Modality}: {Present/Prototype/Missing}.
+
+Taking an audio-video task as an example, the string used to indicate that the audio is original and the video is retrieved is "Audio: Present; Video: Prototype".
+
+Subsequently, we append the compensation strategy, i.e., a handcrafted string designed to induce behavior in the
+
+LLM that helps the mitigation of the missing modality problem. These prompts are detailed in Table 1 for each missing modality scenario and retrieval mode. Specifically, the handcrafted prompt for the Complete (C) scenario is utilized in both retrieval and non-retrieval modes, as the latter scenario does not require any data retrieval.
+
+# 3.4. Multimodal RAG and Prompt Engineering
+
+Our proposal to mitigate the missing modality problem consists in our proposed multimodal RAG for missing modalities, called MissRAG, enhanced with our proposed prompt engineering strategy. Such techniques aim to mitigate the missing modality problem by working on two different and independent levels. The former improves the input quality by substituting missing input with optimal candidates, while the latter is designed to induce the MLLM to change its behavior in front of missing or retrieved modalities. An enhanced visualization of the application of our method is depicted in Fig. 2c.
+
+# 4. Experimental Results
+
+We evaluate our proposed methodology in a zero-shot setting by applying it to three baseline models, ChatBridge, OneLLM, and VideoLLaMA 2. The only exception is VideoLLaMA 2 on the MUSIC-AVQA dataset, as it has been exposed to data from this benchmark during training. These baselines use their default system messages and user instructions and, by augmenting them with our proposed MissRAG framework enhanced with the design prompt engineering strategy, we achieve remarkable performance gains. We assess the effectiveness of our methodology across three multimodal downstream tasks: question-answering, captioning, and sentiment analysis.
+
+Audio-Visual Question Answering. We evaluate our methods on audio-visual question answering on MUSIC-AVQA [27], a dataset which contains 45K question-answer pairs. The problem requires a comprehensive multimodal understanding of both audio and visual cues.
+
+Audio-Visual Captioning. We evaluate our methods on audio-visual captioning tasks on VALOR-32K [11] and CharadesEgo [43]. VALOR-32K is a large-scale dataset that contains 32K videos with rich audio-visual captions. CharadesEgo contains 7,860 first and third-person videos annotated with textual descriptions, making it suitable for audio-visual captioning.
+
+Audio-Video-Text Sentiment Analysis. We evaluate our methods on audio-video-text sentiment analysis, testing them on CMU-MOSI [50] and CMU-MOSEI [3], where the goal is to predict the sentiment of the video. CMU-MOSI is a collection of 2,199 opinion video clips, and CMU-MOSEI is an extension of the CMU-MOSI dataset that contains 23,453 annotated video segments. For both datasets, each
+
+video segment is paired with a text describing spoken words and annotated with a negative, neutral, or positive label.
+
+Metrics. To assess the performance on these diverse tasks, we employ accuracy for audio-video-text sentiment analysis and audio-visual question answering and the CIDEr metric [45] for the captioning task.
+
+Evaluation Protocol. For captioning, we compute CIDER using the COCO caption evaluation toolkit,[2] a publicly accessible tool that supports multiple captioning evaluation metrics. To assess the accuracy on the MOSI and MOSEI datasets, we implement a customized evaluation function designed to maximize conservativeness. Specifically, we categorize as missed any prediction that includes multiple labels, and we invert a label polarity if it is preceded by the negation term "not" within the prediction. For further details, please refer to the supplementary material.
+
+# 4.1. Main Results
+
+As shown in Table 2, our method, MissRAG+PE, consistently improves ChatBridge in 22 out of 23 experiments, OneLLM in 21 out of 23 experiments, and VideoLLaMA 2 in 17 out of 23 experiments, demonstrating the effectiveness of our approach in missing modality scenarios, especially when the absent modality is the dominant one for the task. In fact, in audio-video tasks such as MUSIC-AVQA, VALOR-32K, and CharadesEgo, our method achieves significant gains over ChatBridge (+15.93, +5.90, +2.86), OneLLM (+7.18, +13.23, +1.30), and VideoLLaMA 2 (+0.54, +3.28, +2.60), in the most challenging scenarios where visual information is absent.
+
+Regarding MOSI and MOSEI, our methods generally lead to improved performance across all evaluated MLLMs. However, to contextualize these results, it is important to emphasize that the models are assessed in a zero-shot setting and have not been explicitly trained on tasks analogous to sentiment analysis—tasks which demand complex reasoning across textual, visual, and auditory inputs. This leads to two potential issues: (i) a model may lack understanding of the task and thus perform poorly overall (e.g., ChatBridge); or (ii) a model may struggle to reason across multiple modalities, and perform best when prompted exclusively with text—the most natural input for an MLLM (e.g., VideoLLaMA 2 and OneLLM). Furthermore, our approach tries to align the performances of the missing modality scenarios with that of the Complete one, regardless of whether the latter leads to the optimal performance for the MLLM. Consequently, if our method does not yield improvements in every missing modality scenario, we do not attribute this to a shortcoming of the proposed methodology, but rather to inherent limitations of current MLLMs in addressing complex multimodal tasks such as sentiment analysis across au
+
+| Data Processing | Quality Score | Flickr30K | MSCOCO | ImageNet-1K Acc@1 | ImageNet-R Acc@1 | CIFAR100 Acc@1 | VOC2007 Acc@1 |
| I2T R@1 | T2I R@1 | I2T R@1 | T2I R@1 |
| - | - | 19.0 | 13.6 | 9.2 | 7.5 | 13.9 | 16.0 | 28.9 | 38.1 |
| Data Filtering | Performance of Best Baseline Score | 23.5 | 16.7 | 11.5 | 8.2 | 14.3 | 16.5 | 29.5 | 39.0 |
| Average Performance of All Baseline Scores | 22.3 | 15.5 | 10.8 | 8.0 | 14.3 | 16.4 | 28.6 | 38.5 |
| MoS (ensemble all baseline scores) | 24.3 | 17.4 | 12.4 | 9.3 | 15.6 | 18.8 | 31.1 | 40.1 |
| Sample Weighting | Performance of Best Baseline Score | 23.9 | 16.1 | 11.0 | 8.4 | 13.2 | 16.0 | 29.8 | 39.0 |
| Average Performance of All Baseline Scores | 22.4 | 15.3 | 10.6 | 7.9 | 13.9 | 16.0 | 28.8 | 38.5 |
| MoS (ensemble all baseline scores) | 24.7 | 16.7 | 11.8 | 9.1 | 15.3 | 18.2 | 30.5 | 39.8 |
| Image Re-captioning | Performance of Best Baseline Score | 40.0 | 27.6 | 21.6 | 14.9 | 15.2 | 20.0 | 24.0 | 36.4 |
| Average Performance of All Baseline Scores | 39.0 | 26.4 | 21.0 | 14.1 | 15.5 | 20.3 | 22.7 | 35.7 |
| MoS (ensemble all baseline scores) | 43.2 | 29.6 | 23.1 | 16.0 | 17.6 | 22.7 | 26.5 | 37.3 |
+
+Table 1. Comparison on the performance of CLIP ViT-B/32 model trained on CC3M dataset [47] processed by three strategies under different quality scores. The first line in this table denotes the performance of model trained on full CC3M dataset without any data filtering. We consider 18 baseline scores listed in Table 1 of supplementary material. Here, we show the MoS that ensembles all 18 baseline scores to demonstrate its robustness (note that MoS can achieve better performance when ensembling fewer and critical scores, see Table 3).
+
+| Quality Score | Flickr30K | MSCOCO | ImageNet-1K Acc@1 | ImageNet-R Acc@1 | CIFAR100 Acc@1 | VOC2007 Acc@1 |
| I2T R@1 | T2I R@1 | I2T R@1 | T2I R@1 |
| MoS (ensemble all 18 baseline scores) | 24.3 | 17.4 | 12.4 | 9.3 | 15.6 | 18.8 | 31.1 | 40.1 |
| MoS (ensemble top-2 top-performing scores) | 24.5 | 17.3 | 13.1 | 10.1 | 16.4 | 18.0 | 30.6 | 40.1 |
| MoS (ensemble top-3 top-performing scores) | 24.9 | 17.5 | 13.8 | 10.5 | 17.0 | 17.7 | 30.7 | 40.3 |
| MoS (ensemble top-4 top-performing scores) | 25.0 | 17.9 | 14.2 | 11.0 | 17.3 | 18.5 | 31.0 | 40.5 |
| MoS (ensemble top-5 top-performing scores) | 24.7 | 18.0 | 14.0 | 11.0 | 17.4 | 18.6 | 31.2 | 40.6 |
| MoS (ensemble top-2 bottom-performing scores) | 23.5 | 16.5 | 12.0 | 8.9 | 14.6 | 17.4 | 30.1 | 38.4 |
| MoS (ensemble top-4 bottom-performing scores) | 24.0 | 17.1 | 11.8 | 9.0 | 14.8 | 17.7 | 30.5 | 39.0 |
| MoS (random ensemble 4 baseline scores) | 24.0 | 17.2 | 12.5 | 9.8 | 15.9 | 18.8 | 31.4 | 40.0 |
| MoS (ensemble 4 scores: CLIP-ViT-L/14, EVACLIP-ViT-L/14, BLIP-ViT-L/16-pt, BLIP2-ViT-L/14-pt) | 24.4 | 17.3 | 13.0 | 10.1 | 15.5 | 18.3 | 30.9 | 40.1 |
| MoS (ensemble 4 scores: CLIP-R50, EVACLIP-ViT-L/14, BLIP-ViT-B/16-pt, BLIP2-ViT-G/14-pt) | 24.7 | 17.5 | 13.8 | 10.6 | 17.8 | 18.7 | 31.2 | 40.7 |
+
+dataset are shown in supplementary Table 5, the results for other models (BLIP and LLaVA) are shown in supplementary Table 3 and 1. Table 2 in supplementary demonstrates the robustness of MoS on different data filtering ratios.
+
+# 4.3. Discussion
+
+Number of ensembled scores in MoS: more is not always better. It is not necessary to ensemble as many baseline scores for our MoS. As Table 3, ensembling less but critical baseline quality scores can be superior to ensembling all the scores. This demonstrates that our MoS does not rely on ensembling so many baseline quality scores, which is beneficial to its efficiency in practical applications.
+
+No need to get entangled in choosing which scores to ensemble when using MoS. Although ensembling different scores for MoS lead to differences in performance (Table 3, they are still much better than using a single score. Our MoS shows great robustness to the number of ensembled scores. Therefore, there is no need to struggle with choosing which scores to be ensembled when using our MoS. And one of the original intentions of our work is to free the community from the entanglement of choosing the scoring model.
+
+Recipes for choosing less but key scores for MoS ensembling. Considering that some users may want to pursue the best tradeoff between efficiency and performance, we provide two heuristic recipes for choosing less but key ensembled scores when using our MoS.
+
+- If the performance preference of each baseline score is known in advance, you can directly ensemble these well-performing scores. This helps reduce the interference of inaccurate scores, save computational cost, and achieve better performance. As line 2-5 in Table 3, only ensembling several top-performing baseline quality scores can achieve better performance than ensembling all baseline scores because there are fewer negative interferences in the top-performing scores.
+- If the performance preference of each baseline score is unknown in advance, you are recommended to select scoring models with diverse model architecture and varying model sizes. This helps to increase the diversity of scores and
+
+is more likely to obtain complementary effects from each baseline score, because different types of scoring models give quality assessment from different angles. Please refer to line 1,8-10 in Table 3 for the effectiveness of this recipe.
+
+# 4.4. Ablation Study
+
+Ensemble strategy. As Table 4 (line 1&2), simply averaging all the baseline quality scores will not achieve the best performance on all benchmarks, thus cannot eliminate the bias of these baseline scores. This demonstrates the vital necessity of the data-adaptive ensemble strategy in our MoS.
+
+Softmax temperature. Table 4 (line 1&3) compares our uncertainty-awareness temperature in Eq. (6) and the fixed temperature. We can observe some penalty on performance with a fixed temperature coefficient independent of the quality uncertainty. Table 4 (line 1&4-6) ablates the effect on the value of $\tau_{\mathrm{min}}$ and $\tau_{\mathrm{max}}$ in Eq. (6). We employ the best setting $\tau_{\mathrm{min}} = 0.5$ and $\tau_{\mathrm{max}} = 1.5$ by default.
+
+Distance function. The $D(\cdot, \cdot)$ in Eq. (4) can be instantiated as any distance function. Table 4 (line 1&7) shows that L1 distance is slightly better than L2 distance, thus we use L1 distance by default.
+
+Table 3. Comparison on different number and recipes of ensembled scores in our MoS. The experiments are conducted on CLIP (ViT-B/32) model and trained on CC3M dataset [47]. Note: We use the average performance of 8 evaluation datasets as the criterion for the superiority of the performance of the scoring models.
+
+