Abstract
Pre-trained Vision-Language Models (VLMs) are becoming increasingly popular across various visual tasks, and several open-sourced VLM variants have been released. However, selecting the best-performing pre-trained VLM for a specific downstream task is challenging since no single VLM can achieve promising performance on all downstream tasks, and evaluating all available VLMs is impossible due to time and data limitations. To address this problem, this paper proposes a novel paradigm to select and reuse VLM for downstream tasks, called Model Label Learning (MLL). The proposal contains three key modules: model labeling, which assigns labels to each VLM to describe their specialty and utility; model selection, which matches the requirements of the target task with model labels; and model reuse, which applies selected VLMs to the target task in an ensemble manner. The proposal is highly computationally efficient and growable since the model labeling process is completed target task independent and the ability could grow with the number of candidate VLMs. We also introduce a new benchmark for evaluating VLM selection methods, including 49 VLMs and 17 target task datasets. Experimental results clearly demonstrate the effectiveness of the proposed method for selecting and reusing VLMs.
Introduction
The "zoo" of open-source Vision-Language Models (VLMs), such as CLIP and its variants, is expanding rapidly. Hubs like Open-CLIP now host over 100 pre-trained models. However, this abundance presents a significant challenge: a model that excels on a general benchmark like ImageNet may perform poorly on specialized downstream tasks like medical imaging or satellite classification. Currently, identifying the optimal model often requires exhaustive testing on specific datasets, which is computationally prohibitive and often impossible under data or time constraints.
Furthermore, model performance is not uniform even within a single dataset; one model might be superior at identifying certain classes while another excels at others. This paper addresses the challenge of fine-grained model selection and reuse, proposing a framework to efficiently identify and ensemble the best "specialist" models for any given task.
The Model Label Learning (MLL) Framework
The authors introduce Model Label Learning (MLL), a three-stage paradigm designed for efficient VLM selection and reuse:
- Model Labeling (Offline Phase): Each model added to the hub undergoes a one-time characterization. A Semantic Graph, comprising over 9,000 nodes from WordNet, represents various visual concepts. Models are tested against representative images for these nodes to generate a "Model Label"—a profile of strengths and weaknesses across the visual spectrum.
- Model Selection (Matching Phase): For a new task, an LLM (e.g., GPT-4) expands class names into detailed descriptive captions. These are matched against the Semantic Graph nodes. By analyzing the Model Labels of the most similar nodes, the system predicts which VLMs will perform best.
- Model Reuse (Ensemble Phase): Instead of selecting a single model, MLL identifies the top $k$ models for each class. A weighted ensemble strategy is employed, using probability entropy to favor models with high confidence in their predictions.
Experimental Evaluation
The study utilizes a benchmark of 49 diverse pre-trained VLMs and 17 downstream tasks, including CIFAR100, MNIST, PCam (medical), RESISC45 (satellite), and FER2013 (facial expressions).
Key Insights
- The "ImageNet Trap": Results confirm that the top-performing model on ImageNet is frequently not the best choice for specialized downstream tasks.
- Class-Level Specialization: Different models exhibit varying expertise even within the same dataset. MLL leverages this by selecting class-specific ensembles.
- Scalability and Efficiency: MLL selection is based on metadata and text, avoiding the need to run every candidate VLM on target images.
Performance Results
In zero-shot tests across 17 datasets, MLL consistently outperformed the "ImageNet Baseline" and "ModelGPT" (a text-based selection method). With a single selected model ($k=1$), MLL achieved an average accuracy of 66.20%, compared to 64.34% for the standard baseline. Crucially, as the number of models in the hub increases, MLL demonstrates superior scalability.
Conclusion and Future Work
MLL provides a computationally efficient and growable solution for VLM selection. While currently focused on image classification, future work aims to extend this paradigm to more complex tasks like object detection and image segmentation, and to explore its performance across a wider range of model architectures.
Summary updated