Introduction
Vision-language models (VLMs) like CLIP have revolutionized multi-modal representation learning. However, they often exhibit a "bag-of-words" behavior, excelling at object identification but failing to capture nuanced logical and syntactic relationships. A primary issue is the misalignment between lexical form and semantic content: adding a single word like "not" drastically alters meaning with minimal text change, while paraphrasing maintains meaning despite significant lexical shifts. SemCLIP addresses this by introducing specialized loss functions for paraphrasing and negation.
Methodology: The SemCLIP Framework
SemCLIP extends the standard contrastive learning objective by incorporating semantic constraints through caption augmentation and projection-based embedding strategies.
Caption Augmentation
Using Large Language Models (LLMs) such as Phi-4 and Mistral-7B, the framework generates triplets for each image-caption pair: the original caption, a paraphrase (same meaning, different words), and a negation (opposite meaning). A two-stage generation and validation process is employed to ensure high-quality training data and reduce hallucinations.
Embedding Projections and Loss Functions
Instead of comparing raw high-dimensional vectors, SemCLIP maps embeddings into a low-dimensional subspace specifically tasked with learning semantic transformations. The total training objective, $L_{total}$, is a combination of three components:
- Contrastive Loss ($L_{contrastive}$): The standard CLIP loss that aligns images with their correct captions.
- Paraphrasing Loss ($L_{paraphrase}$): Forces the projections of the original caption and its paraphrase to point in the same direction (high cosine similarity).
- Negation Loss ($L_{negation}$): Forces the projections of the original caption and its negation to point in different or orthogonal directions.
Experimental Setup
The authors evaluated SemCLIP across several key benchmarks:
- CC-Neg: Based on Conceptual Captions (CC-3M), featuring over 228,000 image-caption-negation triplets.
- Sugarcrepe++ (SCPP): A curated, challenging benchmark for compositional understanding (e.g., swapped object attributes).
- Zero-Shot Generalization: Downstream tasks including CIFAR-10, CIFAR-100, Food 101, Flowers 102, and Oxford-IIIT Pet to test model generalizability.
Key Results and Discussion
SemCLIP demonstrates significant improvements in semantic robustness without compromising standard retrieval performance.
Improved Negation Handling
On the CC-Neg benchmark, SemCLIP increased "original over negation" retrieval accuracy from 68.1% (CLIP baseline) to 78.1%. This indicates that the model has learned to treat negation as a directional flip in the embedding space rather than a minor lexical variation.
Performance on Compositional Benchmarks
While results on the harder SCPP dataset were mixed, SemCLIP remained consistently less sensitive to negation than models trained solely on negative samples. The composite score on CC-Neg improved from 30.4 to 36.8, reflecting a better balance of semantic understanding.
Zero-Shot Generalization
In downstream tasks, SemCLIP showed a larger accuracy "Delta"—the performance gap between identifying correct versus negated captions. This suggests the model generalizes the concept of negation rather than simply memorizing training patterns, effectively proving that "robustness is free."
Conclusion and Future Work
SemCLIP successfully bridges the gap between lexical form and semantic content for negation and paraphrasing. Future research will explore more complex linguistic relationships, such as entailment (e.g., if "a dog is running" is true, then "an animal is moving" must also be true), and non-verbal forms of negation to further enhance VLM understanding.
Summary updated