Is the Modality Gap a Bug or a Feature? A Robustness Perspective

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chowers, Rhea, Naparstek, Oshri, Barzelay, Udi, Weiss, Yair
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910171781922816
author Chowers, Rhea
Naparstek, Oshri
Barzelay, Udi
Weiss, Yair
author_facet Chowers, Rhea
Naparstek, Oshri
Barzelay, Udi
Weiss, Yair
contents Many modern multi-modal models (e.g. CLIP) seek an embedding space in which the two modalities are aligned. Somewhat surprisingly, almost all existing models show a strong modality gap: the distribution of images is well-separated from the distribution of texts in the shared embedding space. Despite a series of recent papers on this topic, it is still not clear why this gap exists nor whether closing the gap in post-processing will lead to better performance on downstream tasks. In this paper we show that under certain conditions, minimizing the contrastive loss yields a representation in which the two modalities are separated by a global gap vector that is orthogonal to their embeddings. We also show that under these conditions the modality gap is monotonically related to robustness: decreasing the gap does not change the clean accuracy of the models but makes it less likely that a model will change its output when the embeddings are perturbed. Our experiments show that for many real-world VLMs we can significantly increase robustness by a simple post-processing step that moves one modality towards the mean of the other modality, without any loss of clean accuracy.
format Preprint
id arxiv_https___arxiv_org_abs_2603_29080
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Is the Modality Gap a Bug or a Feature? A Robustness Perspective
Chowers, Rhea
Naparstek, Oshri
Barzelay, Udi
Weiss, Yair
Computer Vision and Pattern Recognition
Machine Learning
Many modern multi-modal models (e.g. CLIP) seek an embedding space in which the two modalities are aligned. Somewhat surprisingly, almost all existing models show a strong modality gap: the distribution of images is well-separated from the distribution of texts in the shared embedding space. Despite a series of recent papers on this topic, it is still not clear why this gap exists nor whether closing the gap in post-processing will lead to better performance on downstream tasks. In this paper we show that under certain conditions, minimizing the contrastive loss yields a representation in which the two modalities are separated by a global gap vector that is orthogonal to their embeddings. We also show that under these conditions the modality gap is monotonically related to robustness: decreasing the gap does not change the clean accuracy of the models but makes it less likely that a model will change its output when the embeddings are perturbed. Our experiments show that for many real-world VLMs we can significantly increase robustness by a simple post-processing step that moves one modality towards the mean of the other modality, without any loss of clean accuracy.
title Is the Modality Gap a Bug or a Feature? A Robustness Perspective
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2603.29080