Models that embed images and text in one shared space, such as CLIP, are almost always trained in two stages: first on millions of loosely matched web image–caption pairs, then on a small set of carefully written captions. They also carry a known quirk called the modality gap. Image embeddings and text embeddings sit in two separate regions of the shared space, offset from each other by a roughly constant vector, instead of mixing so that matching concepts overlap. The literature disagrees about whether this gap is harmful. Some papers find that closing it restores clean semantic clusters. Others find that the gap protects the model against noise. This proposal asks a question that resolves the disagreement in the setting where it matters in practice. Should the gap be closed while the model learns from noisy pairs, only during the clean stage, or only after training?
Our hypothesis is that the gap acts as slack during noisy training. It lets mismatched web pairs stay apart without distorting the space. Forcing pairs together at that stage, which is what gap-closing losses do, drags images toward wrong captions and leaves damage that a small clean set cannot undo. The practical prescription that follows is simple: keep the gap open on noisy data and close it on clean data. We test this with a controlled schedule study. The study varies noise rate, noise type, and clean-set size, and it tracks the gap's geometry at every stage.
Core Claim
Gap-closing objectives help group-level semantics, such as clustering images and captions by concept, only when they are applied to trustworthy pairs. Applied to noisy pairs, they hurt more as the noise rate rises. We therefore predict three things. A sequential schedule that uses plain contrastive training on noisy data and adds gap closure only on clean data will beat applying gap closure throughout. It will also beat post-hoc centering of a conventionally trained model, and the margin will grow with the noise rate. The margin should depend on the type of noise, being largest for structured semantic errors, where the orthogonal-noise assumptions behind the robustness theory fail.
The claim draws on two lines of work that have never been placed in the same experiment. The first says the gap is a bug. Closing the Modality Gap Aligns Group-Wise Semantics (ModGap) adds two terms to the standard contrastive loss: an align-true-pairs loss that minimizes the distance between matched pairs, and a centroid-uniformity loss that spreads class centroids apart on the sphere. Together they cut the gap from 0.47 to 0.03 and raise MSCOCO V-Measure (a clustering-quality score) from about 13.0 to 23.63. The authors note that the method weakens when pairings are ambiguous. Closing the Modality Gap for Mixed Modality Search (GR-CLIP) removes the gap after training by subtracting each modality's mean embedding.
The second line says the gap is a feature. Mind the Gap traces the gap to a "cone effect" at initialization, in which each encoder squeezes its outputs into a narrow region. It shows that widening the gap can raise zero-shot CIFAR-10 accuracy and reduce FairFace bias. Is the Modality Gap a Bug or a Feature? proves that the gap vector is orthogonal to each modality's subspace and that it buffers zero-mean noise. That proof only covers noise orthogonal to the modality subspace, not structured caption errors.
None of these papers trains through a noisy-to-clean pipeline. On the transfer side, Stronger Than You Think shows that continuing to fine-tune a weakly supervised model on clean labels beats clean-only training. It does so only for text classification. GE2PE shows that sequential training beats mixing noisy and clean data. We supply what these papers leave open: the vision–language geometry.
Research Program
We train dual-encoder contrastive models at a scale where full factorial runs are affordable. Stage 1 uses a noisy image–text corpus. Stage 2 uses a small clean subset. We build two kinds of noisy data.
The first is controlled. We start from MSCOCO images and captions (Microsoft COCO) and corrupt them at a known rate $\rho \in \{0, 0.2, 0.4, 0.6\}$. We use three corruption types. Random mismatch swaps a caption with an unrelated one. Semantic hallucination swaps in a caption from a visually similar image. Partial captions truncate or genericize the text. The second kind is natural: Conceptual Captions alt-text (Conceptual Captions), whose noise is unlabeled but realistic.
Stage 2 uses held-out human COCO captions at 1%, 5%, and 20% of the training images. This lets us trace a crossover curve in the spirit of the BOXWRENCH benchmark from Stronger Than You Think: how many clean pairs the model needs before noisy pretraining stops helping.
The central manipulation is where the ModGap align and uniformity terms are active: never, Stage 1 only, Stage 2 only, or both. Each resulting model is also evaluated after post-hoc centering. At every checkpoint we log four geometric quantities. The first is the gap magnitude, the distance between the two modalities' mean embeddings. The second is the angle between each image and its caption for known-clean versus known-corrupted pairs. The third is the linear separability of the two modalities, which Towards understanding the modality gap in CLIP found to be 100% in full-scale CLIP. The fourth is within-class scatter.
This logging also answers a descriptive question no one has measured: does noisy pretraining widen or shrink the gap, and does clean fine-tuning close it or freeze it? We then borrow the learning-order idea from Fine-grained Contrastive Learning for Relation Extraction. That paper found that instances a model gets right in early epochs are mostly clean (93% precision) and that later-learned instances are much noisier (53%). We ask whether clean vision–language pairs likewise close their per-pair angle early while corrupted pairs stay far apart. This per-pair trajectory is the mechanism our hypothesis predicts. If it holds, it also permits one variant: apply the alignment loss in Stage 1 only to pairs the trajectory flags as early-aligned.
Baselines
Do-nothing reference. The weakest reference is clean-only training: the same architecture trained from scratch on the Stage 2 subset with plain contrastive loss. It sets the floor that noisy pretraining must clear at each clean-set size.
Standard sequential transfer. This is plain contrastive loss in both stages, with no gap intervention. It isolates the effect of the gap intervention itself.
Mixing. We pool noisy and clean pairs in one run with the clean pairs upweighted. This tests whether ordering matters in the vision–language case as it did in GE2PE. We tune the clean weight over a small grid.
Gap closure throughout. The strongest training-time competitor is ModGap applied in both stages. On clean data, ModGap reports MSCOCO V-Measure of 23.63 against about 13.0 for CLIP, and 32.1 against 23.3 on MSR-VTT. These are the only relevant reported numbers, and they come from a clean-training setup unlike ours, so we reproduce ModGap inside our pipeline rather than quote them.
Post-hoc centering. The strongest post-hoc competitor is GR-CLIP centering applied to standard sequential transfer. GR-CLIP reports up to 26 NDCG@10 points of gain over CLIP on MixBench and an average of 4 points over VLM2Vec.
Ablations. Two ablations isolate the key ingredient. The first applies closure in Stage 1 only. The second is the trajectory-gated variant of Stage 1 closure.
Fairness and the bar for winning. All arms share the same encoders, data order, and total steps. Each gets the same hyperparameter budget of eight configurations per arm, tuned on a clean validation split disjoint from test. Everything runs over three seeds. We count "beating" the strongest competitor as follows. The Stage-2-only schedule must exceed both closure-throughout and centered standard transfer on V-Measure by more than the seed standard deviation at $\rho \geq 0.4$. It must also stay within one R@1 point on retrieval.
Why not just…?
Why not just train normally and subtract modality means afterward? This is the most serious threat. Post-hoc centering is nearly free, and GR-CLIP's MixBench gains show it fixes rank bias. However, it moves every embedding of a modality by the same vector. ModGap's evidence is that the gap inflates within-class scatter into parallel "semantic stripes," which a single global shift cannot merge. We test this directly by applying centering to every arm. If centered standard transfer matches Stage-2-only closure on V-Measure, our training-time claim fails, and we will report that centering suffices.
Why not just apply ModGap everywhere? If the gap were purely a bug, closing it from the start should be best. The robustness results cut against that. So does ModGap's own caveat that it weakens on ambiguous pairs. Our Stage-1-closure arm measures exactly how much early closure costs as noise rises. If it costs nothing, the "slack" hypothesis is wrong.
Why not just filter the noisy data first? Conceptual Captions itself was built by filtering web alt-text. Filtering is a plausible substitute for keeping the gap open, so we include a filtered-then-ModGap arm. The filter drops the lowest-agreement pairs according to a clean-trained scorer, and we remove as many pairs as the true noise rate $\rho$. On the controlled data, where noise labels are known, we can check whether filtering recovers the Stage-2-only result. If it does, the gap's role reduces to what filtering already provides, and we will say so.
Proposed Experiments
Metrics. The primary gap-sensitive metric is V-Measure on MSCOCO. We also report zero-shot clustering transfer to OpenImage-V7, following ModGap's protocol. The gap-insensitive control is MSCOCO and Flickr30K R@1. Robustness is measured as CIFAR-10/100 zero-shot accuracy under the Gaussian perturbations used in the robustness-perspective paper. Mixed-modality search is measured as MixBench NDCG@10. We do not compare against CLIPS's 76.4% MSCOCO text R@1 (CLIPS), because it comes from a far larger training run.
Decisive checks. First, the gain of Stage-2-only closure over closure-throughout should be near zero at $\rho = 0$ and should grow monotonically with $\rho$. A flat curve refutes the claim. Second, the gain should be largest for semantic-hallucination noise and smallest for random mismatch. That pattern would indicate that the orthogonal-noise theory explains the random case but not the structured case. Third, the per-pair angle trajectories should separate clean from corrupted pairs, measured as AUROC against the known corruption labels, better than final-epoch similarity does. Fourth, the Stage-2-only advantage should shrink as the clean set grows toward 20%, mirroring the crossover behavior seen in text. Finally, we repeat the core comparison with Conceptual Captions as Stage 1 to check that the pattern holds with natural noise.
References
- Closing the Modality Gap Aligns Group-Wise Semantics
- Closing the Modality Gap for Mixed Modality Search
- Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learning
- Is the Modality Gap a Bug or a Feature? A Robustness Perspective
- Stronger Than You Think: Benchmarking Weak Supervision on Realistic Tasks
- GE2PE: Persian End-to-End Grapheme-to-Phoneme Conversion
- Microsoft COCO: Common Objects in Context
- Conceptual Captions: A Cleaned, Hypernymed, Image Alt-text Dataset For Automatic Image Captioning
- Towards understanding the modality gap in CLIP
- Fine-grained Contrastive Learning for Relation Extraction
- CLIPS: An Enhanced CLIP Framework for Learning with Synthetic Captions