arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.18570cs.CVcs.CLcs.IRcs.LG
收藏

并非模态鸿沟:表征并解决对比鸿沟

It's Not a Modality Gap: Characterizing and Addressing the Contrastive Gap

University of Alberta(阿尔伯塔大学)

Abrar Fahim, Alex Murphy, Alona Fyshe

AI总结:

本文证明CLIP等双编码器对比模型中的模态鸿沟源于对比损失本身,将其重新定义为对比鸿沟,并通过引入均匀性与对齐约束改进CLIP损失,从而弥合鸿沟并提升下游任务性能。

摘要:

诸如CLIP之类的多模态对比模型通过在联合表示空间中嵌入输入图像和文本,在零样本分类中取得了最先进的性能。最近,在像CLIP这样的双编码器对比模型中报告了模态鸿沟,这意味着图像和文本嵌入位于潜在空间的不相交区域。先前的研究表明,这种鸿沟的存在是由于1)锥效应,2)数据集中的不匹配对,以及3)训练不足。我们表明,即使考虑到所有这些因素,甚至在使用相同模态时,对比损失实际上在训练过程中也会产生鸿沟。因此,我们提出模态鸿沟是双编码器对比损失所固有的,并将其重新命名为对比鸿沟。我们提出的证据将这种对比鸿沟归因于CLIP空间中的低均匀性,导致嵌入只占据潜在空间的一小部分。为了弥合这一鸿沟,我们将单模态对比损失的均匀性和对齐特性适配到多模态设置中,并表明简单地将这些项添加到CLIP损失中可以使嵌入在表示空间中分布得更均匀,从而弥合鸿沟。在我们的实验中,我们表明修改后的表示空间在下游任务(如零样本图像分类和多模态算术)中比默认的CLIP损失取得了更好的性能。

英文摘要:

Multi-modal contrastive models such as CLIP achieve state-of-the-art performance in zero-shot classification by embedding input images and texts on a joint representational space. Recently, a modality gap has been reported in two-encoder contrastive models like CLIP, meaning that the image and text embeddings reside in disjoint areas of the latent space. Previous studies suggest that this gap exists due to 1) the cone effect, 2) mismatched pairs in the dataset, and 3) insufficient training. We show that, even when accounting for all these factors, and even when using the same modality, the contrastive loss actually creates a gap during training. As a result, We propose that the modality gap is inherent to the two-encoder contrastive loss and rename it the contrastive gap. We present evidence that attributes this contrastive gap to low uniformity in CLIP space, resulting in embeddings that occupy only a small portion of the latent space. To close the gap, we adapt the uniformity and alignment properties of unimodal contrastive loss to the multi-modal setting and show that simply adding these terms to the CLIP loss distributes the embeddings more uniformly in the representational space, closing the gap. In our experiments, we show that the modified representational space achieves better performance than default CLIP loss in downstream tasks such as zero-shot image classification and multi-modal arithmetic.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑