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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Mistretta, Marco, Baldrati, Alberto, Agnolucci, Lorenzo, Bertini, Marco, Bagdanov, Andrew D.
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912222495637504
author Mistretta, Marco
Baldrati, Alberto
Agnolucci, Lorenzo
Bertini, Marco
Bagdanov, Andrew D.
author_facet Mistretta, Marco
Baldrati, Alberto
Agnolucci, Lorenzo
Bertini, Marco
Bagdanov, Andrew D.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_04263
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Cross the Gap: Exposing the Intra-modal Misalignment in CLIP via Modality Inversion
Mistretta, Marco
Baldrati, Alberto
Agnolucci, Lorenzo
Bertini, Marco
Bagdanov, Andrew D.
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
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.
title Cross the Gap: Exposing the Intra-modal Misalignment in CLIP via Modality Inversion
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.04263