[论文解读] CyCLIP: Cyclic Contrastive Language-Image Pretraining
CyCLIP 在 CLIP 上加入循环一致性正则化,以强制图像与文本表征之间的几何一致性,从而提升零样本分类和相对于 CLIP 的鲁棒性。
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.
研究动机与目标
- 识别在标准对比学习图像-文本(CLIP)中与几何相关的不一致。
- 提出循环一致性正则化以强化跨模态和模态内的几何结构。
- 证明 CyCLIP 相对于 CLIP 在零样本分类和分布偏移上的经验性提升。
- 分析所添加的几何约束如何提升学习表征中的概念层级捕获。
提出的方法
- 在 CLIP 的基础上,向基线对比损失添加两个循环一致性正则化:模态内一致性和跨模态一致性。
- 跨模态循环一致性使错配的图像-文本对之间的相似性对称(I_j 与 T_k 与 I_k 与 T_j)。
- 模态内循环一致性促进图像-图像对和文本-文本对之间的相似性对称性(I_j 与 I_k vs T_k 与 T_j)。
- 将正则化项与标准 CLIP 损失组合为 L_CyCLIP = L_CLIP + lambda1 L_I-Cyclic + lambda2 L_C-Cyclic,且 lambda1 = lambda2 = 0.25。
- 在 Conceptual Captions 3M 上进行预训练,使用 ResNet-50 作为图像编码器和变换器文本编码器;嵌入维度为 1024。
实验结果
研究问题
- RQ1在图像-文本表征中强制循环一致性是否会减少图像空间与文本空间预测之间的下游不一致?
- RQ2相较于 CLIP,跨模态和模态内循环正则化是否提升零样本分类和对分布偏移的鲁棒性?
- RQ3循环约束如何影响多模态表征的对齐与均匀性,以及模型捕捉粗粒度与细粒度概念层次结构的能力?
主要发现
- CyCLIP 在 ImageNet-1K、CIFAR-10 和 CIFAR-100 的零样本 Top-1 精度上分别比 CLIP 提升 10.2%/10.6%/23.9% 的绝对值。
- CyCLIP 在标准分布偏移基准(ImageNetV2、ImageNetSketch、ImageNet-A、ImageNet-R)上实现了零样本分类的 10%–27% 的提升。
- 一致性分数(图像空间 k-NN 与文本空间预测的一致性)在 CIFAR-10、CIFAR-100 和 ImageNet1K 的 Top1–Top10 上大约提升了 8.6–10.0 个百分点。
- CyCLIP 在粗粒度(概念层级)准确性方面优于 CLIP,表明对高层次层级的捕获更强。
- 在图像-文本检索中,CyCLIP 显示出边际的零样本增益,且在对 Flickr30K 和 MSCOCO 进行微调后有显著改进。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。