Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Visual-Text Cross Alignment: Refining the Similarity Score in Vision-Language Models

About

It has recently been discovered that using a pre-trained vision-language model (VLM), e.g., CLIP, to align a whole query image with several finer text descriptions generated by a large language model can significantly enhance zero-shot performance. However, in this paper, we empirically find that the finer descriptions tend to align more effectively with local areas of the query image rather than the whole image, and then we theoretically validate this finding. Thus, we present a method called weighted visual-text cross alignment (WCA). This method begins with a localized visual prompting technique, designed to identify local visual areas within the query image. The local visual areas are then cross-aligned with the finer descriptions by creating a similarity matrix using the pre-trained VLM. To determine how well a query image aligns with each category, we develop a score function based on the weighted similarities in this matrix. Extensive experiments demonstrate that our method significantly improves zero-shot performance across various datasets, achieving results that are even comparable to few-shot learning methods.

Jinhao Li, Haopeng Li, Sarah Erfani, Lei Feng, James Bailey, Feng Liu• 2024

Related benchmarks

TaskDatasetResultRank
Image ClassificationDTD
Accuracy49.91
487
Image ClassificationImageNet--
429
Image ClassificationImageNet 1k (test)
Top-1 Accuracy77.4
359
Image ClassificationImageNet (test)
Top-1 Accuracy77.32
291
Image ClassificationCUB-200 2011
Accuracy44.64
257
Image ClassificationFood101 (test)
Accuracy93.93
87
ClassificationCUB
Accuracy56.74
85
ClassificationCUB (test)
Accuracy65.12
79
Image ClassificationDownstream Datasets Average
Average Accuracy72.5
57
ClassificationFood101--
51
Showing 10 of 22 rows

Other info

Follow for update