Introduction
Contrastive Language-Image Pre-training (CLIP) has set the standard for zero-shot vision-language tasks. However, its reliance on a "bag-of-words" approach often leaves it blind to the structural nuances of language. While CLIP can identify individual objects, it frequently fails to distinguish between complex relational compositions—for instance, confusing "a dog sitting on a bench" with "a bench sitting on a dog."
Previous attempts to address this via fine-tuning on "hard negatives" (factually incorrect, slightly altered captions) often suffer from catastrophic forgetting. By forcing the model to distinguish between highly similar embeddings, its general semantic knowledge and zero-shot performance on standard benchmarks like ImageNet typically degrade. The Decoupled Global-Local Alignment (DeGLA) framework addresses this challenge by improving compositional reasoning without sacrificing general capabilities.
The DeGLA Framework
DeGLA achieves a superior Pareto frontier between compositionality and general accuracy through three core components:
1. LLM-Driven Negative Generation
Rather than relying on simple rule-based word swapping, which can produce nonsensical or easily dismissed sentences, DeGLA utilizes Large Language Models (LLMs) like GPT-4 and Llama-3. The authors generated 2 million high-quality negative captions categorized into intra-sentence reshuffling (swapping roles) and minimal semantic substitution (replacing attributes).
2. Global Alignment with Self-Distillation
To preserve the model's original training, DeGLA employs an Exponential Moving Average (EMA) teacher model. During fine-tuning, the student model is constrained to remain close to the teacher's original embedding space. This self-distillation acts as an anchor, preventing the loss of general zero-shot knowledge.
3. Local Alignment (IGC & TGC)
DeGLA introduces two contrastive mechanisms to refine structural understanding:
- Image-Grounded Contrast (IGC): Aligns the image embedding with the correct caption while pushing it away from hard negatives.
- Text-Grounded Contrast (TGC): Operates within the text modality to help the encoder distinguish subtle linguistic differences using the frozen teacher's embeddings as a stable reference.
Experimental Results
The model was evaluated on compositional benchmarks (ARO, VALSE, SugarCrepe) and 11 standard zero-shot classification datasets.
Compositional Mastery
DeGLA achieved significant state-of-the-art (SOTA) gains on the SugarCrepe benchmark, improving performance by +10.3% on "Replace" tasks, +17.9% on "Swap" tasks, and +22.1% on "Add" tasks compared to vanilla CLIP. It also set new marks on VALSE and ARO, particularly in spatial relations and counting.
Preserving General Performance
Unlike previous methods like CE-CLIP, which often see a ~15% drop in average zero-shot accuracy, DeGLA maintains a high baseline. It improved general performance by 13% relative to existing composition-focused methods, nearly matching the original CLIP's zero-shot baseline while being significantly more robust to structural changes.
Conclusion
The DeGLA framework demonstrates that compositional understanding in vision-language models does not have to come at the cost of general zero-shot performance. By decoupling the "don't forget" objective from the "learn structure" objective and leveraging high-quality LLM-generated data, DeGLA provides a scalable path forward for building more linguistically aware foundation models.
Summary updated