Models that embed images and captions into one shared space, such as CLIP, leave the two modalities in separate regions of that space even after training. This separation is called the modality gap. Two influential results disagree about what to do with it. Mind the Gap found that widening the gap slightly improved CLIP's zero-shot CIFAR-10 accuracy and reduced offensive misclassifications on FairFace. Closing the Modality Gap Aligns Group-Wise Semantics found that collapsing it nearly to zero roughly doubled clustering quality. Both papers treat the gap as a single dataset-wide offset. We propose that it is not. Each image–caption pair has its own residual gap, and that residual is largely set by how intrinsically hard the pair is. A pair is hard in this sense when the caption describes only part of the image, the text is generic, or the grounding is ambiguous. Such pairs should be hard for every model, not just the one being trained.
If that holds, the two findings stop contradicting each other. Closing the gap helps on easy, well-grounded pairs and hurts on hard pairs, because hard pairs are forced to coincide even though their contents only partly overlap. The practical consequence is a simple change to gap-closing training: pull a pair's image and caption to the same point only when independent evidence says the pair is easy, and keep ordinary contrastive ranking for the rest. The result is a measurement study plus one targeted training change, not a new alignment architecture.
Core Claim
Two things are measured per pair. The first is the residual gap: the distance between an image embedding and its caption embedding after subtracting the global offset between the two modality centroids. The second is intrinsic difficulty, estimated without the model under study. We use two independent estimates. One is a consensus over several separately trained image–text encoders, based on how each ranks the true partner among distractors. The other is a human grade: the 0–5 image–text similarity judgments in Crisscrossed Captions (CxC).
The claim has three parts, and each can fail on its own. First, residual gaps are consistent across models, even after controlling for each model's own similarity score. Second, residual gaps track intrinsic difficulty. Third, the effect of global gap closure divides by difficulty: clustering gains concentrate in easy pairs, while losses in fine-grained matching and fairness concentrate in hard pairs.
This builds on the data-difficulty literature. That work found that very different architectures agree on which examples are hard, for example Comparing Sample-Wise Learnability across Deep Neural Network Models and Empirical Study of Easy and Hard Examples in CNN Training. The same agreement holds for few-shot task difficulty in Uniform Sampling over Episode Difficulty. All of that work is unimodal. It motivates our hypothesis but does not test it for paired modalities.
Research Program
Measurement. For CLIP, BLIP and VSE∞, the encoder families evaluated in RoCOCO, plus two or three additional contrastive checkpoints with different backbones, we embed the MS-COCO 5k test split. For each pair we compute the residual gap, both as a distance and as an angle.
Difficulty estimates. We borrow the logic of pointwise usable information from Understanding Dataset Difficulty with V-Usable Information. That paper scores an instance by how much its input raises the log-probability of the correct label compared with a model that sees no input. We adapt this to retrieval: the "label" is the true partner, and the no-input reference is the caption prior over the batch. We then average this score over the other models, excluding the model whose gap is being explained. The leave-one-out step matters because it breaks the circularity that the file flags for PVI, where difficulty is only defined relative to a trained model class. The CxC human grades serve as a model-free anchor. The perturbed items in RoCOCO serve as a controlled hard set.
Test of the paradox. Using CLIP ViT-B/32 as the backbone, we fine-tune on COCO with ModGap. We then measure clustering quality (V-measure), retrieval Recall@1, CIFAR-10 zero-shot accuracy and FairFace offensive-misclassification rates, each stratified by difficulty tercile. Following Mind the Gap, we also shift the gap vector post hoc in both directions and record which terciles gain and which lose.
Training change. ModGap combines two terms: a pull that makes true pairs coincide, and a uniformity term on pair centroids that prevents collapse. Our change weights the pull per pair by frozen, precomputed consensus easiness, while keeping InfoNCE on all pairs. Hard pairs therefore still teach ranking but are not forced into a single point. The difficulty weights come from models other than the one being trained. This keeps them fixed during training and prevents the self-reinforcing behaviour where a model stops pulling on pairs simply because it has not learned them yet.
Baselines
Zero-shot CLIP. The first reference point is off-the-shelf CLIP ViT-B/32 evaluated with no changes, and the same model after a plain InfoNCE fine-tune on COCO with the same compute as every other arm. Closing the Modality Gap reports CLIP clustering V-measure of about 13.0 on MSCOCO and a gap distance of 0.47.
ModGap. This is the strongest competitor on clustering and the method our proposal directly modifies. It reports MSCOCO V-measure of 23.63 with the gap reduced to 0.03, and MSR-VTT trimodal V-measure rising from 23.3 to 32.1. We rerun it on identical data with the same number of epochs and the same hyperparameter-search budget as our method. On its own, reproducing its number counts only as a sanity check. Beating it means a higher V-measure without losing retrieval, or equal V-measure with measurably better hard-tercile retrieval and fairness.
FSAlign. This is the strongest competitor on retrieval. FSAlign reports MS-COCO image-to-text Recall@1 of 51.26% (up from 40.4%) and text-to-image Recall@1 of 31.20% with a ViT-B/32 backbone. It aligns local neighbourhoods rather than gating by difficulty. We run it at the same batch size, because its neighbourhood estimates depend on batch size. Our method should stay within noise of its retrieval while exceeding it on clustering. We also test whether adding our gating on top of FSAlign helps.
Global offset shift. The post-hoc gap-vector shift of Mind the Gap is the zero-training reference. It reports CIFAR-10 zero-shot accuracy moving from 0.9013 to 0.9081 and the FairFace "White" offensive rate falling from 15.7% to 13.7%.
Ablations. Two ablations isolate the key ingredient. The first swaps the consensus difficulty weights for the training model's own current cosine similarity, which gives self-paced weighting. The second swaps them for random weights with the same distribution. If own-cosine weighting matches consensus weighting, the "intrinsic" part of the claim adds nothing to the method, and we will report that.
Why not just…?
Why not just weight the pull term by the model's own pair similarity? This is the most serious threat. It needs no extra models, and it may capture most of the benefit. There are two arguments against it. First, own-similarity weighting is self-referential: pairs the model has not yet aligned get less pull and stay unaligned. Second, it cannot tell a genuinely partial caption apart from a pair that is merely under-trained. The CxC grades can separate these two cases. The ablation above decides the question directly. We treat a tie as a real outcome, in which case the measurement findings stand but the training change reduces to self-paced ModGap.
Why not just drop hard pairs before applying ModGap? Filtering removes the ranking signal that hard pairs carry. Recognising partial descriptions is exactly what fails on RoCOCO, where BLIP image-to-text Recall@1 falls from 81.9% to 48.4%. We run a filtered-ModGap arm at a matched keep rate and compare its RoCOCO robustness and hard-tercile retrieval against gating.
Why not just tune the temperature or scale the model? Mind the Gap shows the gap already exists at initialization, a consequence of how deep networks squeeze their outputs into a narrow cone. Closing the Modality Gap shows InfoNCE settles near a 60° angle between modalities. Neither result addresses per-pair variation. On scale, the cross-architecture studies suggest that hard examples stay hard. We test this directly: if larger checkpoints show flatter residual-gap profiles across difficulty terciles, the capacity explanation wins.
Proposed Experiments
Existence check. This comes first and could kill the project. We compute the Spearman correlation of residual gaps between every pair of models, both raw and after partialling out each model's own pair similarity. We also correlate residual gaps with CxC human grades, and compare residual gaps on RoCOCO-perturbed items against their clean counterparts. If the partial cross-model correlations are weak, residual gaps are model-specific quirks. In that case the story fails and we report a negative result.
Stratification check. We apply ModGap and the post-hoc offset shifts, then report V-measure, COCO Recall@1, CIFAR-10 zero-shot accuracy and FairFace rates by difficulty tercile. The prediction is that closure's gains on clustering and matching sit in the easy tercile, while its losses on hard-tercile retrieval, RoCOCO and FairFace sit in the hard tercile. A uniform effect across terciles would refute the proposed resolution of the paradox.
Method check. We compare gated ModGap against every baseline on the same benchmarks, and on MSR-VTT for a third modality. We report three seeds and confidence intervals computed by resampling test pairs. This follows the warning in Oops, I Sampled it Again about separating sampling variance from genuine method effects. The key comparisons are consensus weighting against own-similarity weighting and against filtering.
References
- Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learning
- Closing the Modality Gap Aligns Group-Wise Semantics
- Crisscrossed Captions: Extended Intramodal and Intermodal Semantic Similarity Judgments for MS-COCO
- Comparing Sample-Wise Learnability across Deep Neural Network Models
- Empirical Study of Easy and Hard Examples in CNN Training
- Uniform Sampling over Episode Difficulty
- RoCOCO: Robustness Benchmark of MS-COCO to Stress-Test Image-Text Matching Models
- Understanding Dataset Difficulty with-Usable Information
- Mitigating the Modality Gap in Vision–Language Models with Fractal Spectral Geometry
- Oops, I Sampled it Again: Reinterpreting Confidence Intervals in Few-Shot Learning