Introduction
Contrastive Vision-Language Models (VLMs), such as CLIP, have revolutionized zero-shot image classification and retrieval. However, these models are often criticized for being "bag-of-words" learners. While they can identify individual objects like "dog" or "frisbee" with high accuracy, they frequently fail to understand the compositional relationships between them—struggling to distinguish "the dog chases the man" from "the man chases the dog."
Previous research has attempted to address this by introducing "hard negatives" during training—incorrect captions that swap words to force the model to attend to structure. While effective at improving compositional reasoning, these methods typically suffer from a significant "compositionality tax," where performance on standard benchmarks like ImageNet drops drastically.
The CLoVe Framework
The CLoVe (Compositional Language in Contrastive Vision-Language Models) framework proposes a three-pronged approach to enhance compositional understanding without sacrificing general-purpose capabilities.
1. Synthetic Captions
Web-scraped alt-text is often noisy and lacks descriptive detail. CLoVe utilizes LAION-COCO, a dataset where images are re-captioned using the BLIP model. These synthetic captions are more visually grounded and provide a cleaner signal for learning fine-grained relationships.
2. Fine-tuning with Hard Negatives
To sharpen the model's linguistic representations, CLoVe employs the REPLACE strategy. During fine-tuning, the model is presented with "hard" text negatives—captions where an entity, attribute, or relation has been swapped with a similar but incorrect term (e.g., replacing "shoes" with "boots"). This forces the model to move beyond simple keyword matching.
3. Weight-Space Patching
To mitigate catastrophic forgetting, CLoVe uses weight-space averaging. The final model weights ($w$) are a linear interpolation of the original pre-trained weights ($w_{PT}$) and the fine-tuned weights ($w_{FT}$): $$w = (1 - \alpha)w_{PT} + \alpha w_{FT}$$ This "patching" technique allows the model to retain its broad zero-shot knowledge while integrating the new compositional skills.
Experimental Results
CLoVe was evaluated on compositionality benchmarks (SugarCrepe, ARO, SVO-Probes) and general classification tasks (ImageNet-1k).
As shown in the figure above, CLoVe achieves a superior balance compared to existing methods:
- Compositionality: CLoVe improves SugarCrepe performance by over 10% absolute compared to the original CLIP.
- Generalization: Unlike NegCLIP, which sees ImageNet accuracy plummet, CLoVe (with patching) maintains performance within 1% of the original CLIP model (62.8% vs. 63.4%).
- Retrieval: The model also shows an average 4% absolute improvement in zero-shot retrieval across datasets like CC3M and MSR-VTT.
Conclusion
CLoVe demonstrates that the "compositionality tax" is not an inevitability. By combining high-quality synthetic data, targeted hard negatives, and weight-space patching, it is possible to build VLMs that understand complex language while remaining robust general-purpose classifiers. Future work will focus on reducing noise in synthetic captions and closing the remaining gap between model performance and human-level compositional reasoning.
Summary updated