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

Jinhao Li, Haopeng Li, S. Erfani, Lei Feng, James Bailey +1 more
2/12/2026

No official code found. Best implementation: tmlr-group/WCA (60 stars, MIT, last commit 2024-09-03). 1 more below.

Abstract

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.

View on arXivView PDF

Code Implementations(2)

tmlr-group/WCACommunity100%
MIT

[ICML 2024] "Visual-Text Cross Alignment: Refining the Similarity Score in Vision-Language Models"

605PythonJun 3, 20242 years agoMIT
clipdomain-generalizationimage-text-alignmentlarge-language-modelssimilarity-score+4 more
JinhaoLee/WCACommunity77%
MIT

[ICML 2024] Visual-Text Cross Alignment: Refining the Similarity Score in Vision-Language Models

197PythonMay 29, 20247 months agoMIT
deep-learningimage-text-matchinglarge-language-modelssimilarity-scoretextual-prompting+4 more

Similar Papers

Cite this paper

@article{li2026visualtext,
  title  = {Visual-Text Cross Alignment: Refining the Similarity Score in Vision-Language Models},
  author = {Jinhao Li and Haopeng Li and S. Erfani and Lei Feng and James Bailey and Feng Liu},
  year   = {2026},
  eprint = {2406.02915},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2406.02915},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.02915.svg)](https://codeofpaper.com/paper/2406.02915)

Discussion