atlas

Research map / Vision-language and multimodal / CLIP and zero-shot

TripletCLIP: Improving Compositional Reasoning of CLIP via Synthetic Vision-Language Negatives

NeurIPS 2024 · Vision-language and multimodal › CLIP and zero-shot · approach: CLIP training recipes and data curation · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TripletCLIP, which pairs LLM-generated hard negative captions with SDXL-turbo-generated negative images (the 13M TripletData) and trains CLIP with a triplet contrastive loss, improving SugarCrepe compositionality on CC3M and CC12M at equal compute.

Problem

CLIP models show weak compositional reasoning ("bag of words" behavior) because random batch sampling rarely exposes them to hard negatives, and prior hard-negative augmentation has been text-only with rule-based, often unrealistic captions.

Approach

Generate hard negative captions with an LLM via in-context prompting, synthesize matching negative images with a text-to-image diffusion model, and train CLIP with a triplet contrastive loss that alternates the roles of positive and negative image-text pairs so that both modalities contribute hard negatives.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train with hard negative image-text pairs and triplet contrastive loss instead of LaCLIPViT-B/32 · SugarCrepe (CC3M and CC12M)overall accuracy: 54.09 -> 63.49; 63.54 -> 74.45Helped
Use both negative captions and negative images rather than negative captions alone (ablation)TripletCLIP · SugarCrepe (CC3M)accuracy: 61.69 -> 63.49Helped
Use negative images without negative captions (ablation)LaCLIP · SugarCrepe (CC3M)accuracy: 54.09 -> 56.28Helped
Use negative captions without negative images (ablation)LaCLIP · SugarCrepe (CC3M)accuracy: 54.09 -> 61.69Helped
Filter TripletData using CLIP Score (ablation)TripletCLIP · SugarCrepe (CC3M)accuracy: 63.49 -> 66.09Helped
Freeze the vision encoder while training the text encoder (ablation)TripletCLIP · SugarCrepeaccuracy: 0.6373 -> 0.6227Hurt
Train the vision encoder while freezing the text encoder (ablation)TripletCLIP · SugarCrepeaccuracy: 0.5886 -> 0.6923Helped
Generate negative captions with Gemma-2b-it rather than Mistral-7b-instruct-v0.2 (ablation)NegCLIP++ · SugarCrepe (CC3M)accuracy: 61.69 -> 56.00Hurt
Add TripletLoss to CyCLIP (ablation)CyCLIP · SugarCrepe (CC3M)accuracy: 54.62 -> 58.64Helped

Surprising findings

Limitations

Experimental setup

Datasets: CC3M CC12M TripletData

Benchmarks: SugarCrepe Winoground Valse Cola Flickr30k MSCOCO ImageNet1k VTAB CLIP-Benchmark datasets

Metrics: accuracy recall@k winoground text/image/group score

Baselines: LaCLIP LaCLIP + HN NegCLIP NegCLIP++ CLIP CyCLIP DAC TSVLC CoN-CLIP DataComp models

Builds on: CLIP NegCLIP LaCLIP LiT SDXL-turbo

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy