Decipher the Modality Gap in Multimodal Contrastive Learning: From Convergent Representations to Pairwise Alignment
Lingjie Yi, Raphael Douady, Chao Chen
TL;DR
This work provides the first theoretical framework for analyzing representational convergence in multimodal contrastive learning and the modality gap. It shows that, in the absence of distributional constraints, MCL representations converge to a paired uniform distribution on the unit sphere, driving the modality gap to zero, but that a dimension-collapse-induced subspace constraint can yield a nonzero gap equal to the minimal angle between two modality-specific hyperplanes. The authors prove that perfect cross-modal alignment cannot be achieved for all pairs under subspace constraints, yet offer two mechanisms—hyperplane rotation and shared space projection (SSP)—that can realize perfect alignment, with SSP demonstrated as a practical post-hoc method in CLIP embeddings on MSCOCO. The results connect gap size to downstream modality alignment and provide a principled path to improve cross-modal consistency while preserving downstream performance, potentially guiding both pretraining and post-hoc alignment of multimodal models. Key insights identify dimension collapse as the root cause of the modality gap and show how strategic geometric transformations can achieve alignment without sacrificing the benefits of MCL.
Abstract
Multimodal contrastive learning (MCL) aims to embed data from different modalities in a shared embedding space. However, empirical evidence shows that representations from different modalities occupy completely separate regions of embedding space, a phenomenon referred to as the modality gap. Moreover, experimental findings on how the size of the modality gap influences downstream performance are inconsistent. These observations raise two key questions: (1) What causes the modality gap? (2) How does it affect downstream tasks? To address these questions, this paper introduces the first theoretical framework for analyzing the convergent optimal representations of MCL and the modality alignment when training is optimized. Specifically, we prove that without any constraint or under the cone constraint, the modality gap converges to zero. Under the subspace constraint (i.e., representations of two modalities fall into two distinct hyperplanes due to dimension collapse), the modality gap converges to the smallest angle between the two hyperplanes. This result identifies \emph{dimension collapse} as the fundamental origin of the modality gap. Furthermore, our theorems demonstrate that paired samples cannot be perfectly aligned under the subspace constraint. The modality gap influences downstream performance by affecting the alignment between sample pairs. We prove that, in this case, perfect alignment between two modalities can still be achieved via two ways: hyperplane rotation and shared space projection.
