atlas

Research map / Label-efficient and robust learning / Zero-/few-shot and meta-learning

OT-CLIP: Understanding and Generalizing CLIP via Optimal Transport

ICML 2024 · Label-efficient and robust learning › Zero-/few-shot and meta-learning · approach: Transductive and semantic-dictionary zero-shot

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.

Reinterprets CLIP's InfoNCE training as inverse entropic optimal transport and generalizes the loss to an OT-based family (FGW, unbalanced, DBOT), plus OT-based graph-matching inference for zero-shot, long-tailed and selective classification.

Problem

CLIP's InfoNCE contrastive loss lacks a principled explanation of its alignment mechanism, and zero-shot inference treats classification as independent point matching, ignoring structure among samples and labels.

Approach

Shows CLIP training equals a bilevel inverse entropic OT problem whose inner constraints are the row and column normalizations of InfoNCE; replaces these constraints with variants of regularized OT (fused Gromov, unbalanced, DBOT) to form an OT-CLIP loss family, and recasts zero-shot inference as fused Gromov graph matching.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace InfoNCE with FGromov OT for representation learningOT-CLIP · CC3M pretraining; average across 18 zero-shot datasetstop-1 accuracy: 19.2 -> 20.6Helped
Replace InfoNCE with unbalanced OT for representation learning (ablation)OT-CLIP · CC3M pretraining; ImageNet1K zero-shottop-1 accuracy: 16.3 -> 17.1Helped
Use entropic OT instead of InfoNCE for representation learning (ablation)OT-CLIP image encoder · COCO instance segmentationmAP: 0.162 -> 0.166Helped
Use unbalanced OT instead of InfoNCE for representation learning (ablation)OT-CLIP image encoder · CIFAR100 full fine-tuningtop-1 accuracy: 68.0 -> 68.4Hurt
Use FGromov OT instead of InfoNCE for text-encoder training (ablation)OT-CLIP text encoder · STS tasks; average scoreaverage score: 57.29 -> 58.20Helped
Use FGromov OT-ISoftmax instead of vanilla softmax for inferenceOpenAI CLIP · Zero-shot classification; average across 19 datasetstop-1 accuracy: 44.3 -> 49.9Helped
Use FGromov OT for long-tailed inference instead of vanilla softmaxOpenAI CLIP · ImageNet; zero-shot, long-tailed test distributiontop-1 accuracy: 58.6 -> 63Helped
Use FGromov OT instead of vanilla softmax for inferenceFine-tuned OpenAI CLIP · ImageNet; uniform test distributiontop-1 accuracy: 44.4 -> 59.9Helped
Use unbalanced OT instead of softmax for selective inferenceOpenAI CLIP · Selective zero-shot classification; average across 19 datasetstop-1 accuracy: 54.9 -> 56.9Helped
Use partial OT instead of softmax for selective inferenceOpenAI CLIP · Selective zero-shot classification; average across 19 datasetstop-1 accuracy: 54.9 -> 56.6Helped

Surprising findings

Limitations

Experimental setup

Datasets: CC3M ImageNet-1K CIFAR100 Places365 COCO STS12-16 STS-B SICK-R

Benchmarks: ImageNet-1K CIFAR-10 CIFAR-100 SUN397 Food-101 Pets Caltech-101 STL-10 Country211 PCAM ImageNet-A ImageNet-R

Metrics: top-1 accuracy mAP mAR Spearman correlation

Baselines: InfoNCE HNS Triplet CyCLIP Softmax Classifier Normalization Class-Aware Bias

Builds on: CLIP InfoNCE Inverse entropic OT (Shi et al., 2023) DBOT Fused Gromov-Wasserstein

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