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

跨越鸿沟:通过模态反演揭示CLIP中的模态内失配

Cross the Gap: Exposing the Intra-modal Misalignment in CLIP via Modality Inversion

University of Florence(佛罗伦萨大学);University of Pisa(比萨大学)

Marco Mistretta, Alberto Baldrati, Lorenzo Agnolucci, Marco Bertini, Andrew D. Bagdanov

AI总结:

本文揭示CLIP因模态间对比损失缺乏模态内约束而导致模态内失配,并通过模态反演实验证明以模态间方式处理模态内任务可显著提升检索性能,同时提出缓解失配的训练策略。

摘要:

预训练的多模态视觉-语言模型(如CLIP)被广泛直接用于各种应用。在本文中,我们表明,单独利用这些强大多模态模型的文本编码器或图像编码器的常见做法,对于图像到图像检索等模态内任务而言是高度次优的。我们认为,这本质上源于CLIP风格的模态间对比损失,该损失不施加任何模态内约束,从而导致我们称之为模态内失配的现象。为了证明这一点,我们利用两种基于优化的模态反演技术,将表示从其输入模态映射到互补模态,而无需任何辅助数据或额外训练的适配器。我们通过实验表明,在图像到图像和文本到文本检索的模态内任务中,以模态间方式处理这些任务,在超过十五个数据集上相对于模态内基线显著提升了性能。此外,我们证明,以模态内方式处理原生模态间任务(例如零样本图像分类)会降低性能,进一步验证了我们的发现。最后,我们表明,在预训练目标中加入模态内项,或缩小文本和图像特征嵌入空间之间的模态差距,有助于减少模态内失配。代码公开于:https://github.com/miccunifi/Cross-the-Gap。

英文摘要:

Pre-trained multi-modal Vision-Language Models like CLIP are widely used off-the-shelf for a variety of applications. In this paper, we show that the common practice of individually exploiting the text or image encoders of these powerful multi-modal models is highly suboptimal for intra-modal tasks like image-to-image retrieval. We argue that this is inherently due to the CLIP-style inter-modal contrastive loss that does not enforce any intra-modal constraints, leading to what we call intra-modal misalignment. To demonstrate this, we leverage two optimization-based modality inversion techniques that map representations from their input modality to the complementary one without any need for auxiliary data or additional trained adapters. We empirically show that, in the intra-modal tasks of image-to-image and text-to-text retrieval, approaching these tasks inter-modally significantly improves performance with respect to intra-modal baselines on more than fifteen datasets. Additionally, we demonstrate that approaching a native inter-modal task (e.g. zero-shot image classification) intra-modally decreases performance, further validating our findings. Finally, we show that incorporating an intra-modal term in the pre-training objective or narrowing the modality gap between the text and image feature embedding spaces helps reduce the intra-modal misalignment. The code is publicly available at: https://github.com/miccunifi/Cross-the-Gap.

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

↑