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

$\beta$-CLIP: Text-Conditioned Contrastive Learning for Multi-Granular Vision-Language Alignment

About

CLIP achieves strong zero-shot image-text retrieval by aligning global vision and text representations, yet it falls behind on fine-grained tasks even when fine-tuned on long, detailed captions. In this work, we propose $\beta$-CLIP, a multi-granular text-conditioned contrastive learning framework designed to achieve hierarchical alignment between multiple textual granularities-from full captions to sentences and phrases-and their corresponding visual regions. For each level of granularity, $\beta$-CLIP utilizes cross-attention to dynamically pool image patches, producing contextualized visual embeddings. To address the semantic overlap inherent in this hierarchy, we introduce the $\beta$-Contextualized Contrastive Alignment Loss ($\beta$-CAL). This objective parameterizes the trade-off between strict query-specific matching and relaxed intra-image contextualization, supporting both soft Cross-Entropy and hard Binary Cross-Entropy formulations. Through extensive experiments, we demonstrate that $\beta$-CLIP significantly improves dense alignment: achieving 91.8% T2I 92.3% I2T at R@1 on Urban1K and 30.9% on FG-OVD (Hard), setting state-of-the-art among methods trained without hard negatives. $\beta$-CLIP establishes a robust, adaptive baseline for dense vision-language correspondence. The code and models are released at https://github.com/fzohra/B-CLIP.

Fatimah Zohra, Chen Zhao, Hani Itani, Bernard Ghanem• 2025

Related benchmarks

TaskDatasetResultRank
Image-to-Text RetrievalDCI
R@163.6
68
Text-to-Image RetrievalDCI
R@165.1
68
Text-to-Image RetrievalUrban-1K
R@191.8
34
Image-to-Text RetrievalUrban-1K
R@192.3
34
Text-to-Image RetrievalSV-1k
R@194.4
33
Image-to-Text RetrievalSV-1k
R@194.1
23
Fine-grained retrievalFG-OVD Hard split
R@130.9
9
Fine-grained retrievalFG-OVD (Medium)
R@155.4
9
Fine-grained retrievalFG-OVD Easy
R@160.4
9
Fine-grained retrievalFG-OVD (Trivial split)
R@180.3
8
Showing 10 of 10 rows

Other info

Follow for update