CyCLIP:循环对比图像预训练
CyCLIP: Cyclic Contrastive Language-Image Pretraining
摘要:
最近在成对图像-文本数据上的对比表示学习的进展已经导致了诸如CLIP的模型,其实现了zero-shot分类和分布鲁棒性的最新性能。这种模型通常需要在图像和文本表示空间中进行联合推理,以完成下游推理任务。与先前的信念相反,我们证明了通过标准对比目标学习的图像和文本表示是不可互换的,并且可能导致不一致的下游预测。为了缓解这个问题,我们正式一致性,并提出了CyCLIP,一个框架的对比表示学习,明确优化的学习表示是几何一致的图像和文本空间。特别是,我们表明,一致的表示可以通过明确对称(a)两个不匹配的图像-文本对之间的相似性(跨模态一致性);和(b)图像-图像对和文本-文本对之间的相似性(模态一致性)。从经验上讲,我们表明,在CyCLIP中的改进的一致性转化为显着的增益CLIP,增益范围从10%-24%的zero-shot分类精度标准基准(CIFAR-10,CIFAR-100,ImageNet 1 K)和10%-27%的鲁棒性,以各种自然分布偏移。该代码可在https://github.com/goel-shashank/CyCLIP上获得。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。