Bridge the Modality and Capability Gaps in Vision-Language Model Selection

Vision Language Models (VLMs) excel in zero-shot image classification by pairing images with textual category names. The expanding variety of Pre-Trained VLMs enhances the likelihood of identifying a suitable VLM for specific tasks. To better reuse the VLM resource and fully leverage its potential on different zero-shot image classification tasks, a promising strategy is selecting appropriate Pre-Trained VLMs from the VLM Zoo, relying solely on the text data of the target dataset without access to the dataset's images. In this paper, we analyze two inherent challenges in assessing the ability of a VLM in this Language-Only VLM selection: the "Modality Gap" - the disparity in VLM's embeddings across two different modalities, making text a less reliable substitute for images; and the "Capability Gap" - the discrepancy between the VLM's overall ranking and its ranking for target dataset, hindering direct prediction of a model's dataset-specific performance from its general performance. We propose VLM Selection With gAp Bridging (SWAB) to mitigate the negative impact of two gaps. SWAB first adopts optimal transport to capture the relevance between open-source and target datasets with a transportation matrix. It then uses this matrix to transfer useful statistics of VLMs from open-source datasets to the target dataset for bridging two gaps. By bridging two gaps to obtain better substitutes for test images, SWAB can accurately predict the performance ranking of different VLMs on the target task without the need for the dataset's images. Experiments across various VLMs and image classification datasets validate SWAB's effectiveness.

Paper

Similar papers

Peer review

Reviewer mpun5/10 · confidence 4/52024-07-06

Summary

This paper considers a zero-shot image classification strategy by selecting the most appropriate Pre-Trained VLM from the VLM Zoo, relying solely on the text data of the target dataset without access to the dataset’s images. Two challenges, i.e., the “Modality Gap” across two different modalities, and the "Capability Gap" between the VLM’s overall ranking and its ranking for target dataset, hinder the appropriate selection of the different VLMs. To address the challenges, this paper adopts a transportation matrix to capture the relevance between open-source and target datasets, and also uses this matrix to transfer useful statistics of VLMs from open-source datasets to the target dataset. Extensive experiments on image classification datasets demonstrate the effectiveness of the proposed method.

Strengths

Originality: The main novelty of this paper is to utilize Language-Only VLM Selection to address the zero-shot image classification. This is the first time that the Language-Only VLM Selection is applied in the zero-shot scenario where the missing of image data makes it difficult to directly select the VLMs. Quality: This paper has well motivated methods and extensive experiments. Clarity: The paper is well written with clear description and readable figures. Significance: The two key issues of modality gap and capability gap are considered in this paper. In addition, optimal transport-based methods are proposed to alleviate the issues and the experimental results on multiple VLMs and image classification datasets show the effectiveness of them.

Weaknesses

The main weakness is that the proposed VLMs selection strategy relies on Open-Source Datasets’ Data, which restricts the practicability of the proposed method. For the zero-shot image classification task, using the aggregated knowledge from multiple VLMs is ok, but using open-source datasets may violate the zero-shot data restrictions, or even lead to benchmark leakage. In addition, the impact of the open-source datasets is not analyzed. For example, if the categories in the open-source datasets are very different from the ones in the target zero-shot classification tasks, whether the performance of the proposed method is still remarkable?

Questions

A comprehensive analysis on the impact of the open source datasets may improve the rationality of the proposed method for addressing the zero-shot image classification task.

Rating

5

Confidence

4

Soundness

2

Presentation

3

Contribution

3

Limitations

This paper does not include the limitation discussion. Practically, at least the issues raised in the weakness section should be considered if they cannot be addressed appropriately in current version.

Authorsrebuttal2024-08-12

Dear reviewer mpun, We thank you sincerely for your time and effort in reviewing our manuscript and providing valuable suggestions. As the author's response period is nearing its conclusion, we kindly remind you to review our response. We have provided detailed responses to your questions and hope that they adequately address your concerns. If you need further clarification or have any other questions, please feel free to discuss them with us! We are more than willing to continue our communication with you. We would greatly appreciate it if you would update the rating by taking our responses into account.

Authorsrebuttal2024-08-13

Dear Reviewer mpun, We have responded to your comments in detail. As the discussion period will end in less than one day, we would like to ask whether there are any additional concerns or questions we could address. Thanks very much for your effort! Best regards, Authors

Reviewer omtt4/10 · confidence 4/52024-07-10

Summary

With the popularity of Vision Language Model (VLM) research in recent years, many versions have emerged, forming the VLM Zoo. This paper aims to select the most appropriate pre-trained VLM from the VLM Zoo, relying solely on texts of the target dataset without access to images. Two challenges are analyzed, namely, “Modality Gap” and “Capability Gap”. One VLM selection method (SWAB) is proposed: first calculate optimal transportation matrix to capture the relevance between open-source and target datasets; then use this matrix to transfer useful statistics of VLMs from open-source to target dataset for bridging two gaps and enhancing the VLM’s capacity estimation. Experiments are carried out across some VLMs and classification datasets to validate the effectiveness.

Strengths

[+] Due to the differences in training data, architecture and pipelines, existing VLMs do have their own strengths in terms of capabilities. Thus, studying how to better utilize members in VLM Zoo under different scenarios is somewhat valuable. [+] The paper has rich symbols and formalizations, and the space utilization is also reasonable. [+] Some experiments are conducted to demonstrate the effectiveness of components and designs on a diverse set of datasets of image classification.

Weaknesses

[-] Problem rationality. Although each member in the VLM Zoo has their own strengths, relying solely on textual descriptions to find the most suitable VLM (LOVM) seems too demanding. And language is usually compact, which can easily confuse concepts. Why cannot we use one combination of images and texts (or even text-image pairs) for VLM selection, as images are very easy to obtain in real-world scenarios? [-] Selection strategy. Given that the members in VLM Zoo have different strengths and abilities, it means that they have somewhat degree of complementarity. One natural idea is to follow ensemble learning, that is, vote on the results of each member, or select the top-k VLMs’ results for complementary combination. Why only choose the most suitable one? Please provide more comparisons and explanations. [-] Generalization. This paper carries out experiments on many datasets, but all for image classification. Since VLMs excel in handling various tasks, such as detection, segmentation, captioning, and VQA, the generalization on these tasks is still unclear.

Questions

[-] Better visualization. For Fig. 3, there are too many symbols and formulas, increasing difficulty in understanding (the significance of using images is to reduce understanding costs). To this end, the reviewer believes that this paper can be polished better.

Rating

4

Confidence

4

Soundness

2

Presentation

3

Contribution

2

Limitations

This paper does not discuss the limitations of the work. However, the reviewer seems to find some limitations, such as the unrealistic assumptions in settings and the ability to only handle classification tasks. Please refer to Weaknesses for more details.

Authorsrebuttal2024-08-12

Dear reviewer omtt, We thank you sincerely for your time and effort in reviewing our manuscript and providing valuable suggestions. As the author's response period is nearing its conclusion, we kindly remind you to review our response. We have provided detailed responses to your questions and hope that they adequately address your concerns. If you need further clarification or have any other questions, please feel free to discuss them with us! We are more than willing to continue our communication with you. We would greatly appreciate it if you would update the rating by taking our responses into account.

Authorsrebuttal2024-08-13

Dear Reviewer omtt, We have responded to your comments in detail. As the discussion period will end in less than one day, we would like to ask whether there are any additional concerns or questions we could address. Thanks very much for your effort! Best regards, Authors

Authorsrebuttal2024-08-14

Dear Reviewer omtt, We have responded to your comments in detail. As the discussion period will end in less than 10 hours, we would like to ask whether there are any additional concerns or questions we could address. Thanks very much for your effort! Best regards, Authors

Reviewer NUg25/10 · confidence 3/52024-07-11

Summary

The paper proposes SWAB the modificaiton of LOVM to mitigate the negative impact of two gaps of LOVM: the modality gap and capability gap. The resutls show the effectiveness of SWAB.

Strengths

1. The motivation of this paper is clear and structure is easy to follow.

Weaknesses

1. For the modality gap, the SWAB using open-source datasets, could you please provide how many image samples used in the experiment. And could you please provide the accuracy vs number of open-source image samples? 2. The SWAB seems like a learnig-based model, could you please add the ablition study for no learning based SWAB.

Questions

1. Why adding Gaussian noise to the target generated embedding? 2. How to select weighted parameter $\alpha$ in Eq.9 3. The Auxiliary texts is generated by ChatGPT, could you please test the open-source LLM like LLama2?

Rating

5

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

No.

Reviewer NUg22024-08-12

Thank you for your detailed response and for addressing my concerns. However, I have a few more questions. Is the parameter $\alpha$ sensitive to different datasets, and what is the best strategy for selecting it? Additionally, could you provide some analysis on this? Another question for clarification: Regarding the experiment setting in Q2, is the performance measured on just one specific test dataset, or is it an average across all 23 test datasets?

Authorsrebuttal2024-08-12

We appreciate your response and are happy to address your issue. Here is our reply: * Q1: Is the parameter $\alpha$ sensitive to different datasets, and what is the best strategy for selecting it? Provide some analysis on this. * A1: Firstly, we emphasize that we use the same $\alpha$ across all datasets. The reasons for this are: (1) we found that using the same $\alpha$ achieves good performance on most datasets and (2) applying the same $\alpha$ to all datasets is a simple and effective approach. Regarding the strategy for selecting $\alpha$, our experiments revealed that our method's performance is fairly robust to different $\alpha$ values, so we chose an $\alpha$ that performs well on our benchmark. To provide relevant analysis on this point, we varied the $\alpha$ values and demonstrated our method's performance metrics on the LOVM Benchmark. | $\alpha$ | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | ModelGPT | |---------|-------|-------|-------|-------|-------|-------|-------| -------| | $R_5$ | 0.487 | 0.513 | 0.478 | 0.470 | 0.452 | 0.461 | 0.487 | 0.457 | | $\tau$ | 0.301 | 0.206 | 0.264 | 0.296 | 0.330 | 0.290 | 0.264 | 0.197 | | $R_5+\tau$ | 0.788 | 0.719 | 0.742 | 0.766 | 0.782 | 0.751 | 0.751 | 0.654 | The experimental results show that, for different values of $\alpha$, our approach consistently outperforms the current SoTA method, ModelGPT, demonstrating the robustness of our method to the choice of $\alpha$. * Q2: Regarding the experiment setting in Q2, is the performance measured on just one specific test dataset, or is it an average across all 23 test datasets? * A2: It is an average across all 23 test datasets.

Authorsrebuttal2024-08-13

Dear Reviewer NUg2, We have responded to your comments in detail. As the discussion period will end in less than one day, we would like to ask whether there are any additional concerns or questions we could address. Thanks very much for your effort! Best regards, Authors

Reviewer qHTS7/10 · confidence 5/52024-07-12

Summary

This article focuses on selecting the best model from a visual-language multimodal model zoo for specific downstream tasks without having images of those tasks. It provides a detailed analysis of two challenges faced in this problem — Modality Gap and Capacity Gap. This paper proposes a method called SWAB, which leverages the statistical measures of VLM on open-source tasks based on the category similarity between historical open-source tasks and target tasks, to mitigate the negative impacts of these gaps on Language-Only VLM model selection. Experimental results demonstrate the effectiveness of the proposed method.

Strengths

1.The problem studied in this paper is novel and interesting, with significant practical value. In recent years, the number of open-source VLMs has been increasing, and their zero-shot capabilities have been improving. For practical downstream users, especially those who lack computational resources, have limited funding to label extensive evaluation datasets, or are non-machine learning practitioners with little experience in setting up and evaluating various VLMs, the Language-Only Vision Model selection (LOVM) problem studied in this article is important. 2.This paper presents a clear and well-motivated problem statement. The authors provide a detailed analysis of the negative impacts of the Modality Gap and Capacity Gap on Language-Only Vision Model (LOVM) selection through explanations and experimental validation. They demonstrate that we cannot directly use text samples related to categories in the target dataset as substitutes for test image samples, nor can we use the average performance of VLMs on open-source datasets as proxies for their performance on specific tasks. This problem statement is compelling and well-supported. 3.The method presented in the paper is novel and interesting. It leverages the category similarity between target tasks and open-source tasks to estimate the corresponding gap vectors and accuracy/ranking of VLMs on the target tasks, based on their gap vectors and accuracies/rankings on the open-source tasks. This idea is grounded in a reasonable assumption: the statistics of VLMs on similar categories are likely to be similar. By doing so, the method effectively utilizes the rich information contained in category similarity to make targeted use of the models' statistics on historical tasks. 4.The evaluation approach in the article is comprehensive and detailed. The benchmark includes 23 commonly used image classification datasets and 43 widely recognized VLMs (such as CLIP, CoCa, BLIP, BEiT, among others, with different pre-training methods and model architectures), making the experimental results highly convincing. Additionally, the article compares its method with various baseline approaches, including the current state-of-the-art method ModelGPT, and demonstrates its significant superiority over these methods. The article also conducts thorough ablation studies to validate the effectiveness of each component of the proposed method.

Weaknesses

1.The performance of ModelGPT is slightly inconsistent with the results in its paper. What are the reasons for this? 2.The method of setting the \alpha value in formula 9 is not stated. Is the same \alpha used for all data sets? What is the exact value?

Questions

Refer to the weakness.

Rating

7

Confidence

5

Soundness

3

Presentation

3

Contribution

3

Limitations

N/A

Reviewer mpun2024-08-13

Response to Rebuttal

Thank the authors for the Rebuttal. I read the Rebuttal and other reviewers' comments. Since the authors have addressed my concerns, I would like to raise my score to boardline accept.

Reviewer omtt2024-08-14

Thanks to the authors for their efforts during the rebuttal. I have read all the comments from other reviewers and the authors' responses. Some of my concerns have been resolved, such as Q3. Yet, I stand by my opinion that “make the diverse text from LLMs substitute for diverse images” is a bit idealistic, as compact texts cannot cover pixel-level vision. Besides, for Q2, ranking VLMs does not seem to imply the effectiveness of an ensemble. Thus, I decide to slightly raise my score to "borderline reject".

Authorsrebuttal2024-08-14

Thank you very much for your response. We would like to provide the following further clarifications regarding your concerns: **Regarding Q1**: We believe that text with different semantics can serve as a substitute for images that match its semantics. In fact, several studies have recognized and validated this perspective. For instance, in [1], the authors state that “collecting a large enough test set that covers different image distributions is a fundamental challenge.” Therefore, they use diverse text generated by large language models as a supplement to image training samples to debias vision models and improve performance (see Figure 1 and Section 2.2 in [1] for more details). Based on our work and the successful implementation of this approach in previous studies, we believe that considering the high noise characteristics of image or image-text pairs collected online, as mentioned in numerous papers [2,3,4], the practice of "using text with different semantics as a substitute for images that match its semantics" is both reasonable and valuable. **Regarding Q2**: Firstly, we emphasize that once the model rankings are obtained, these rankings can enhance the performance of an ensemble (e.g., using the top three models most suitable for the current task in an ensemble will generally outperform an ensemble formed by randomly selecting three models from the model zoo). Secondly, as we mentioned in our rebuttal, using multiple models in an ensemble requires significant computational resources. Therefore, in many cases, a common practice to balance performance and efficiency is to select the best single model. As a result, our paper primarily focuses on the scenario of using a single model. [1] Zhang et al. Diagnosing and Rectifying Vision Models using Language. ICLR 2023. [2] Radford et al. Learning transferable visual models from natural language supervision. ICML 2021 [3] Li et al. Align before fuse: Vision and language representation learning with momentum distillation. NeurIPS 2021. [4] Li et al. Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation. ICML 2022.

Area Chair Yvdz2024-08-14

Impact of the new members in the model zoo

Another difference might stem from adding new members in the Model Zoo. Could you quantify the impact of this? For example, what is the performance of your approach using same Model Zoo in the LOVM paper?

Authorsrebuttal2024-08-14

Dear Area Chair, Thank you very much for your attention to our work. In fact, we initially conducted our experiments on the 35 models provided in the LOVM Benchmark. However, we later received some suggestions from other researchers to include a greater variety of vision-language models (e.g. BLIP and BEIT-3) to enhance the diversity of models in the benchmark, thereby increasing the credibility of the evaluation results. Therefore, we expanded the variety of models based on the LOVM Benchmark. To address your concerns, we are also providing our experimental results on the original 35 models from the benchmark. | Method | ModelGPT | SWAB (Ours) | |-----------------------|----------|-------------| | $R_5$ | 0.452 | **0.501** | | $\tau$ | 0.201 | **0.291** | | $R_5 + \tau$ | 0.653 | **0.792** |

Area Chair Yvdz2024-08-14

Thanks, but inconsistent numbers

Thanks for the quick response. Adding new models makes sense, but makes the comparison harder. Also ModelGPT reports: INB+G+C 0.461 (R5) 0.223 (\tau) for top-1 accuracy according to Table 2 in their paper, which are a fair bit higher than your table above. Could you clarify how the results were obtained?

Authorsrebuttal2024-08-14

Dear Area Chair, Thank you very much for your interest in our work. **First, we want to emphasize that we used the code provided by LOVM to ensure consistency with the evaluation methods of their benchmark.** We think the slight differences between the ModelGPT results we reported and those in the LOVM paper can be attributed to two main reasons: 1. **The use of different random seeds.** As we mentioned in our response to Reviewer NUg2's Q4, in both the LOVM paper and ours, we add Gaussian noise to the text features to simulate the variance in image samples because different images can correspond to the same caption. This process introduces randomness. We noticed that in the code provided by LOVM, no random seed was specified, and they also did not report the random seed used in their experiments. To ensure the reliability of our experimental results, we repeated the experiments using 10 different random seeds (from 1 to 10) and reported the mean and standard deviation of the results. Therefore, the difference in random seeds may lead to slight variations between our results and theirs. 2. **The text generated by the LLM used may differ.** In the GitHub repository provided by LOVM, the specific text collection generated by ChatGPT was not directly provided; instead, they included a Python script to generate the text collection using ChatGPT. In our experiments, we used this provided Python script to generate the text collection with ChatGPT. Considering the inherent randomness in LLM-generated responses, the text collection we used might differ slightly from the one used by LOVM. This variability in LLM-generated responses can also contribute to the slight differences between our results and theirs. We emphasize that in our experiments, we used the same evaluation methods as LOVM. Furthermore, when comparing ModelGPT with our approach, we ensured that the data and random seeds were completely consistent to guarantee the comparability of the experimental results. Thank you very much for your attention and suggestions regarding our work. We hope our responses address your concerns.

Area Chair Yvdz2024-08-14

Thank you again for the quick responses. The reasons you provided make sense as potential sources of discrepancy between the results. It is unfortunate that the authors of LOVM have not released a reproducible version of their code. However, please note that with your implementation, ModelGPT performs no better than the ImageNet baseline according to the R5 metric.

Authorsrebuttal2024-08-14

Dear Area Chair, Thank you for your attention to our work. We think that ModelGPT's $R_5$ could indeed be lower than ImageNet. This is because, within LOVM, it utilizes the actual performance of various models on open-source datasets as a training set's label to train a Linear Regression Model to predict performance or ranking of the VLMs (for details, see Section 3 of LOVM). The inputs of this Linear Regression Model include the current model's score on the ImageNet Baseline and some performance metrics calculated on text samples generated by LLM (such as text-acc1 and text-f1, details in Section 3.2 of LOVM). Therefore, **the performance prediction of the Linear Regression Model for the current model actually depends on the weighted sum of scores on the ImageNet Baseline and the performance metrics calculated on text samples produced by LLM.** However, as analyzed in our paper regarding the Modality Gap, **due to the existence of a modality gap between image features and text features in the feature spaces of many VLMs, text samples cannot directly serve as a good substitute for image samples**. Therefore, **we cannot expect that the performance metrics calculated directly on text samples generated by LLMs (such as text-acc1 and text-f1) will positively correlate with the actual performance of the current model,** which in turn affects the performance of the linear regression model in LOVM that uses metrics like text-acc1 as inputs. We believe there are two pieces of evidence that can substantiate this idea: 1. In Figure 5 of our paper, we analyzed the consistency between the text top-1 accuracy calculated on text samples and the actual accuracy of the model before and after using our method to bridge the modality gap. The experimental results show that before bridging the modality gap, the consistency between text top-1 accuracy and the model's actual accuracy was poor. However, **our method significantly improves the consistency between the two by bridging the modality gap, demonstrating the effectiveness of our approach.** 2. We observed that in the original paper of LOVM, the improvement in the $R_5$ metric when using ModelGPT compared to the ImageNet Baseline is very slight (0.461 vs 0.452). **This modest increase could likely disappear due to the randomness of the methods mentioned in our previous response** (i.e., this improvement might fall within the error bars, so after changing to a new random seed, this improvement might disappear). This indicates that the introduction of the performance metrics calculated directly on text samples generated by LLMs provides minimal help. Thank you very much for your attention and suggestions regarding our work. We hope our responses address your concerns.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC