Modality gap geometry explains performance shifts in vision language models

One Geometry, Different Outcomes: Readout-Dependent Effects of the Modality Gap in Vision-Language Models

Computer Vision and Pattern RecognitionArtificial IntelligenceMachine Learning

Summary

Vision-language models match images and text but keep some differences, known as the modality gap. The authors found that this gap mostly points in one direction in the model’s geometry. Changing or removing this gap direction can help or hurt different tasks like classifying images, finding matching texts, or mixing images and text. Their work explains why tweaking this gap affects model outcomes differently for each task, helping developers know when to adjust it.

What this means in practice

  • For machine learning engineers: Choose when and how to adjust the modality gap in vision-language models to improve zero-shot classification or retrieval performance.
  • For search system developers: Enhance image-text retrieval accuracy by applying geometry-derived corrections informed by the modality gap direction.

Authors

Aditya Sharma, Divya Saxena

Abstract

Contrastive vision-language models learn shared embedding spaces by aligning matched image-text pairs, yet their representations remain separated by a modality gap. Prior work reports divergent effects of modifying this gap: reducing it can improve zero-shot classification and cross-modal alignment, whereas removing gap-related structure can degrade image-text retrieval. In this paper, we provide a unified geometric explanation for these task-dependent effects. Across CLIP and SigLIP encoders, we find that a single dominant direction captures 94.4-99.9% of the squared norm of the image-text mean separation, revealing that the mean-separation component is approximately rank-one. A decomposition of the similarity score then identifies three task-specific roles. In zero-shot classification, query-side fixed gap-offset subtraction is exactly equivalent to an additive class bias. In standard cross-modal retrieval, projecting out the gap direction and renormalising residuals discards candidate-specific norm information, inducing a multiplicative ranking distortion; a geometry-derived exponent tracks the grid-search optimum (Spearman rho = 0.93) and restores performance in some settings, although the gains transfer unevenly. In mixed-modal retrieval, the gap direction sorts candidates by modality; its removal can improve cross-modal ranking, unlike random or non-gap controls. Residual semantic structure after removal defines the limits of the rank-one account. Together, these results explain why gap modification can improve, degrade, or restore performance across downstream settings. By clarifying when and why gap modification changes model behavior, this account provides a principled basis for selecting gap interventions in similarity-based vision-language systems across evaluated downstream tasks.