Abstract
Contrastive Language-Image Pretraining (CLIP) enables zero-shot inference in downstream tasks such as image-text retrieval and classification. However, recent works extending CLIP suffer from the issue of modality gap, which arises when the image and text embeddings are projected to disparate manifolds, deviating from the intended objective of image-text contrastive learning. We discover that this phenomenon is linked to the modality-specific characteristic that each image or text encoder independently possesses. Herein, we propose two methods to address the modality gap: (1) a post-hoc embedding standardization method, I0Tpost that reduces the modality gap approximately to zero and (2) a trainable method, I0Tasync, to alleviate the modality gap problem by adding two normalization layers for each encoder. Our I0T framework can significantly reduce the modality gap while preserving the original embedding representations of trained models with their locked parameters. In practice, I0Tpost can serve as an alternative explainable automatic evaluation metric of widely used CLIPScore (CLIP-S).
Introduction
Vision-Language Models (VLMs) like CLIP have revolutionized how we approach multimodal tasks by creating a shared latent space for images and text. The goal is simple: pull matching pairs closer together and push mismatched pairs apart. However, in practice, these models suffer from a persistent "modality gap." Instead of a perfectly integrated space, image and text embeddings tend to cluster into two disjoint manifolds. This separation means that random samples from the same modality often appear more similar to each other than an image does to its own textual description, undermining the model's cross-modal utility.
The Root Cause: Modality-Specific Peak Activations
To address this gap, it is first necessary to understand its origin. The authors discovered that the modality gap is not just a random geometric artifact but is driven by consistent "peak activations" within the hidden dimensions of the embeddings. These peaks act as a modality signature or "watermark."
As shown in the analysis of normalized embedding activations, specific dimensions consistently fire for images (e.g., a negative peak at dimension 93) while others fire for text (e.g., positive peaks at dimensions 134 and 313). These signatures are so strong that they force the two modalities apart regardless of the semantic content. Simply clipping these peaks is insufficient, as the modality-specific characteristics are distributed across the entire embedding vector.
The I0T Framework
The proposed I0T (Zero Modality Gap) framework introduces two distinct approaches to neutralize these signatures and close the gap:
- I0T_post (Post-hoc Standardization): This is a training-free, plug-and-play method. It calculates the mean vector for each modality across a batch of data and subtracts it from the normalized embeddings before re-normalizing. This simple standardization effectively centers both manifolds at the origin, reducing the modality gap (measured by Centroid Distance) from a severe 0.7642 to a near-zero 0.0102.
- I0T_async (Learnable Normalization): While
I0T_postis highly effective, it requires a batch of data to compute means, making it difficult for single-sample inference.I0T_asyncaddresses this by freezing the pre-trained encoders and training independent Batch Normalization (BN) layers for each modality. These layers learn to automatically subtract the modality-specific bias, allowing for efficient zero-shot inference on individual samples.
Redefining Evaluation with I0TScore
A significant practical benefit of closing the modality gap is the creation of a more intuitive evaluation metric. Current metrics like CLIPScore (CLIP-S) are forced to use arbitrary scaling factors because the raw cosine similarity between an image and its correct text is often very low due to the modality gap.
By eliminating the gap, I0TScore (I0T-S) produces a natural and wide distribution of similarity scores. As illustrated in the figure above, I0TScore assigns significantly higher values to correct image-text pairs compared to CLIPScore, while maintaining low scores for irrelevant content. This results in a metric that aligns much more closely with human intuition and provides better discriminative power for retrieval tasks.
Key Results and Conclusion
The I0T framework demonstrates that we can decouple semantic understanding from modality-specific bias. Experimental results on the Flickr30k dataset show that closing the gap actually improves retrieval performance: I0T_post increased Image-to-Text (I2T) retrieval accuracy to 73.30% (from CLIP's 69.60%) and Text-to-Image (T2I) to 76.30% (from 67.10%).
In summary, the modality gap is a structural bias that can be effectively mitigated through standardization. Whether through the training-free I0T_post or the learnable I0T_async, the I0T framework provides a robust path toward truly unified multimodal latent spaces and more reliable evaluation metrics for the next generation of vision-language models.
Summary updated