Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

CyCLIP: Cyclic Contrastive Language-Image Pretraining

About

Recent advances in contrastive representation learning over paired image-text data have led to models such as CLIP that achieve state-of-the-art performance for zero-shot classification and distributional robustness. Such models typically require joint reasoning in the image and text representation spaces for downstream inference tasks. Contrary to prior beliefs, we demonstrate that the image and text representations learned via a standard contrastive objective are not interchangeable and can lead to inconsistent downstream predictions. To mitigate this issue, we formalize consistency and propose CyCLIP, a framework for contrastive representation learning that explicitly optimizes for the learned representations to be geometrically consistent in the image and text space. In particular, we show that consistent representations can be learned by explicitly symmetrizing (a) the similarity between the two mismatched image-text pairs (cross-modal consistency); and (b) the similarity between the image-image pair and the text-text pair (in-modal consistency). Empirically, we show that the improved consistency in CyCLIP translates to significant gains over CLIP, with gains ranging from 10%-24% for zero-shot classification accuracy on standard benchmarks (CIFAR-10, CIFAR-100, ImageNet1K) and 10%-27% for robustness to various natural distribution shifts. The code is available at https://github.com/goel-shashank/CyCLIP.

Shashank Goel, Hritik Bansal, Sumit Bhatia, Ryan A. Rossi, Vishwa Vinay, Aditya Grover• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-100--
622
Image ClassificationImageNet-1K
Top-1 Acc52.83
524
Image ClassificationFood-101
Accuracy54.96
494
Image ClassificationDTD
Accuracy63.44
487
Image ClassificationImageNet V2
Top-1 Acc15.25
487
Image ClassificationStanford Cars
Accuracy22.14
477
Image ClassificationSUN397--
425
Image ClassificationSVHN (test)--
362
Image ClassificationImageNet-Sketch
Top-1 Accuracy8.3
360
Image ClassificationSVHN
Accuracy54.29
359
Showing 10 of 66 rows

Other info

Code

Follow for update