Pith. sign in

REVIEW 3 major objections 6 minor 25 references

The modality gap is a low-temperature failure of InfoNCE with independent encoders; mixing same-modality negatives (xNCE) removes it while improving zero-shot transfer.

Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →

T0 review · grok-4.5

2026-07-14 09:54 UTC pith:NHT2TL3C

load-bearing objection Clean causal experiment + simple fix that actually improves zero-shot; the low-temp mode-failure story is plausible but still rests on a stylized MNIST proxy and a qualitative limit argument. the 3 major comments →

arxiv 2607.10698 v1 pith:NHT2TL3C submitted 2026-07-12 cs.LG cs.CV

On the modality gap and the contrastive loss in multi-modal representation learning

classification cs.LG cs.CV
keywords modality gapInfoNCEcontrastive learningCLIPxNCEtemperaturemulti-modal representation learningzero-shot classification
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved

The pith

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

CLIP-style models train separate image and text encoders with a shared contrastive loss called InfoNCE. Even after training, the two kinds of embeddings often sit in separate regions of the joint space—the modality gap. This paper argues that the gap is not mainly an accident of data, initialization, or high dimension; it is actively produced by the loss itself when the encoders do not share weights and the temperature is low. The authors show the effect cleanly with two identical image encoders on MNIST: InfoNCE immediately drives the two embedding clouds apart at low temperature, even though they start identical. They then rewrite the negative set so that each anchor also sees same-modality negatives (xNCE). The rewritten loss keeps the modalities mixed, preserves retrieval on COCO, and raises zero-shot accuracy on every benchmark they test, whereas simply raising temperature or adding explicit alignment regularizers does not. The practical claim is that a one-line change to the negative sampler can close the gap without throwing away the sharp geometry that zero-shot transfer needs.

Core claim

The modality gap is a mode-failure of the multi-modal InfoNCE objective that appears only at low temperature: with independent encoders the denominator can be satisfied by pushing the two modalities apart rather than by learning aligned features. Replacing a controllable fraction of the negatives with same-modality samples (xNCE) removes this divergence incentive, collapses the gap, and still yields the low-temperature geometry required for strong zero-shot classification.

What carries the argument

xNCE: the InfoNCE softmax is computed on a mixed batch in which a fraction r_mix of the embeddings of one modality are swapped with those of the other, so that both inter- and intra-modality pairs appear as negatives. The same temperature regime can then be used without inducing a gap.

Load-bearing premise

That the two-encoder MNIST experiment (identical nets, identical start weights, same-family augmentations) and the low-temperature limit analysis correctly capture the optimization dynamics that create the gap inside a real high-dimensional pretrained CLIP model.

What would settle it

Train a CLIP-scale model from scratch with xNCE at the usual low temperature and measure whether the modality-centroid distance stays near zero while retrieval and zero-shot accuracy remain at least as high as the InfoNCE baseline; if the gap reappears or accuracy collapses, the claimed mechanism fails.

Watch this falsifier — get emailed when new claim-graph text bears on it.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit.

Referee Report

3 major / 6 minor

Summary. The paper argues that the modality gap in CLIP-style dual-encoder contrastive learning is a low-temperature mode-failure of InfoNCE with independent encoders, not merely an artifact of initialization or data. A controlled uni-modal MNIST experiment with two identically initialized, non-shared encoders shows that InfoNCE actively separates the two embedding clouds at low τ. A low-temperature limit analysis of the InfoNCE loss (Eqs. 3–4) is used to explain margin collapse into separated cones. The authors propose xNCE, which mixes a fraction r_mix of intra-modality negatives into the contrastive denominator, and show on COCO-finetuned CLIP ViT-B/16 that small mixing reduces the gap, nearly matches InfoNCE retrieval, and improves zero-shot accuracy on Caltech-101, CIFAR-10/100, and ImageNet relative to standard InfoNCE, high-temperature InfoNCE, and a regularized InfoNCE baseline.

Significance. If the mechanism is correct, the paper supplies a simple, loss-level fix for a widely observed pathology of dual-encoder contrastive models, with a favorable trade-off between gap reduction and transfer geometry that temperature scaling and explicit alignment/uniformity regularizers do not achieve. Strengths include a clean controlled MNIST construction that isolates the dual-encoder InfoNCE dynamics under matched initialization, an explicit low-τ limit argument, multi-run COCO tables with standard deviations, and head-to-head comparison against the natural alternatives (high-τ InfoNCE and Fahim-style regularized InfoNCE). The zero-shot gains at small r_mix are practically relevant and falsifiable. The contribution is incremental rather than foundational, but it is useful and actionable for multimodal representation learning.

major comments (3)
  1. [§5.2, Eqs. (3)–(4)] §5.2, Eqs. (3)–(4): The limit argument correctly shows that imperfect ranking plus τ→0+ incentivizes shrinking all similarities toward their mean m_i, which can produce a tight negative cluster. The dual-encoder-specific step—that this optimum is realized as two separated modality cones rather than within-modality collapse or other geometries—is only sketched in §3.3 and is not derived from the same limit. The manuscript should either (i) make the dual-encoder geometry a formal consequence of independent parameters under the low-τ objective, or (ii) clearly label the modality-gap interpretation as a plausible reading of the limit rather than a proven mode-failure unique to independent encoders.
  2. [§4.1–4.2, Fig. 6, Hypothesis H1] §4.1 vs §4.2 / Fig. 6: The claim that InfoNCE “actively generates” the gap is demonstrated only in the MNIST two-encoder proxy (identical architecture, identical init, same-family augmentations). All COCO results finetune pretrained CLIP weights that already exhibit a large gap (Fig. 6: distance starts high; Org maintains ~0.88). Thus the multimodal evidence shows that xNCE reduces an existing gap and improves transfer under finetuning, not that the same low-τ ranking-error mechanism induces the gap from scratch in high-dimensional image–text training. Either a from-scratch (or randomly re-initialized) multimodal run, or a carefully scoped claim limited to gap maintenance/reduction under finetuning, is needed for the central causal statement in the abstract and H1.
  3. [Tables 1–3, §4.2] Tables 1–3: xNCE is run with learnable τ initialized at 0.02 (clipped), while Org uses 0.01 and Reg uses 0.01. Given that temperature is itself a primary control on gap and geometry (§5.1, Fig. 2), the zero-shot and gap comparisons should include an Org ablation at the same τ schedule/init as Mix, or a joint sweep, so that gains cannot be attributed to the slight temperature difference rather than to mixed negatives.
minor comments (6)
  1. [Figure 2] Fig. 2 pseudocode: labels use loss_i / loss_t in the text but loss_j appears in the last line (loss = (loss_i + loss_j) / 2). Fix the variable name.
  2. [Acknowledgements] Acknowledgements: typo “futher” → “further”.
  3. [Abstract] Code availability is listed as “...” in the abstract; provide a concrete link or anonymized repo for review.
  4. [§3.1] §3.1 / Eq. (1): a_ij is introduced as cosine similarity in [−1,1], but the theoretical discussion sometimes treats a_ii → 1 and E[a_ik] = 0 as if they were simultaneous optima under dual encoders; a short remark that these are the uni-modal ideal (Wang & Isola) would avoid confusion.
  5. [Appendix D, Figure 7] Fig. 7 and §D: the sensitivity plot is useful; stating the exact r_mix grid and number of seeds in the caption would improve reproducibility.
  6. [§2] Related work cites Liang et al., Shi et al., Fahim et al. appropriately; a one-sentence contrast with Oh et al.’s modality-mix hard negatives (already cited) would clarify that xNCE mixes negatives inside the batch softmax rather than via geodesic mixup at finetuning time.

Circularity Check

0 steps flagged

No circularity: theory, controlled MNIST experiment, and COCO/zero-shot results are independent of one another and of any fitted target.

full rationale

The paper’s central claim (modality gap as low-temperature mode-failure of dual-encoder InfoNCE) is supported by three independent pillars that do not reduce to one another by construction. (1) The MNIST two-encoder experiment (identical architecture, identical initialization, same-family augmentations) is a controlled construction that actively generates a gap under InfoNCE; the gap is measured, not assumed. (2) The lim τ→0+ analysis of Li (Eq. 4) is a standard asymptotic expansion of the softmax loss under an irreducible ranking error; it derives the collapse of similarities toward their mean as a consequence of the loss, not as a definition of the gap. (3) xNCE is a simple change of the negative set that is then evaluated on external, held-out benchmarks (COCO retrieval R@K, four zero-shot classification datasets) whose metrics are independent of the loss derivation or of any fitted parameter. Temperature and mixing ratio are free hyperparameters swept on a grid; they are not fitted to force the claimed gap reduction. No self-citation is load-bearing, no uniqueness theorem is imported from the authors, and no known empirical pattern is merely renamed. The derivation chain is therefore self-contained against external evidence.

Axiom & Free-Parameter Ledger

3 free parameters · 3 axioms · 1 invented entities

The paper rests on standard contrastive-learning mathematics plus two domain assumptions (independent encoders can realize a shared geometry; the MNIST dual-encoder setup is representative). Free parameters are the usual temperature and the newly introduced mixing ratio; both are scanned rather than derived. No new physical or mathematical entities are postulated.

free parameters (3)
  • temperature τ = 0.01 (CLIP default / learned); 0.02 (xNCE initial); grid 0.01-1.0 (MNIST)
    Controls the sharpness of the softmax; the gap appears only for small τ. In COCO experiments τ is either learned (clipped at 0.01) or cosine-annealed; for xNCE an initial value of 0.02 is chosen by hand.
  • mixing ratio r_mix = 0.01 / 0.05 / 0.5
    Fraction of negatives drawn from the same modality. Scanned at 0.01, 0.05, 0.5; small values preserve retrieval while still collapsing the gap.
  • regularization weights λ_u, λ_xu, λ_a = 1
    Weights on the three extra terms of the Fahim et al. regularized baseline; set to 1 by hand.
axioms (3)
  • domain assumption InfoNCE with independent encoders admits a degenerate optimum in which all cross-modal similarities collapse toward their mean while preserving ranking (low-τ limit).
    Stated in Section 5.2, Eqs. 3-4; used to explain why the gap is a mode-failure rather than an initialization artifact.
  • domain assumption A dual-encoder MNIST experiment with identical weights and same-family augmentations isolates the contribution of the loss from data heterogeneity and architecture mismatch.
    Hypothesis H1 and Section 4.1; the experiment is taken as evidence that the gap is actively generated by InfoNCE.
  • standard math Cosine similarity on ℓ2-normalized embeddings and the symmetric InfoNCE objective are the correct geometric setting for analyzing the modality gap.
    Standard CLIP formulation (Section 3.1); inherited from Radford et al. and Wang & Isola.
invented entities (1)
  • xNCE (Mixed Noise-Contrastive Estimation) independent evidence
    purpose: Loss that samples both intra- and inter-modality negatives so the denominator no longer rewards modality divergence.
    Defined in Section 4 and Figure 2; the only new algorithmic object. Independent evidence is the empirical gap reduction and zero-shot gains on public benchmarks.

pith-pipeline@v1.1.0-grok45 · 18958 in / 3034 out tokens · 32368 ms · 2026-07-14T09:54:28.380155+00:00 · methodology

0 comments
read the original abstract

We study the modality gap in CLIP-style dual-encoder contrastive learning, where image and text embeddings remain misaligned despite being trained in a shared space. We argue that the gap is induced by a failure of the InfoNCE formulation with independent encoders. We conduct a uni-modal experiment with two independent encoders and identical initialization conditions and find that InfoNCE actively generates a gap at low temperatures. We provide a theoretical analysis of this phenomenon and show that the modality gap is indeed a mode-failure of InfoNCE, but only at low temperatures. We propose a simple modification called xNCE, which uses intermodal as well as intra-modality negative contrastive pairs. xNCE matches retrieval performance on MS-COCO while consistently reducing the gap even at low temperatures. Notably, xNCE improves zero-shot classification over the InfoNCE baseline across all benchmarks, whereas high-temperature InfoNCE and regularized InfoNCE both fail to do so, demonstrating that xNCE reduces the modality gap without sacrificing the discriminative geometry needed for transfer.

Figures

Figures reproduced from arXiv: 2607.10698 by Fabian Mager, Hiba Nassar, Lars Kai Hansen.

Figure 1
Figure 1. Figure 1: Left: A SimCLR like investigation of the multimodal InfoNCE loss. We generate two views of the same datapoint from the same family of augmentations t ∼ T and t ′ ∼ T, and pass the two views to identically initialized, independent encoders f(·) and g(·) (i.e. no weight sharing). Adapted from Chen et al. Right: Our proposed method xNCE to avoid modality shifts. Rather than only sampling cross-modal negative … view at source ↗
Figure 2
Figure 2. Figure 2: Left: The proposed xNCE loss function. Numpy like pseudo-code for mixing image and text embeddings. Right: Model behaviour for different temperature values. We measure classification accuracy of a linear probe, modality distance as euclidean distance of modality centroids and modality classification accuracy using a linear probe. Dataset. We use the digit split of the Extended MNIST (EMNIST) dataset (Cohen… view at source ↗
Figure 3
Figure 3. Figure 3: Two dimensional UMAP projection of MNIST embeddings for training using InfoNCE at low [PITH_FULL_IMAGE:figures/full_fig_p007_3.png] view at source ↗
Figure 4
Figure 4. Figure 4: Distribution of similarity scores over different temperatures for the original InfoNCE loss ( [PITH_FULL_IMAGE:figures/full_fig_p008_4.png] view at source ↗
Figure 5
Figure 5. Figure 5: Visualization of Image (blue) and Text (orange) embeddings of COCO after finetuning with InfoNCE (left) and xNCE (right) using UMAP (McInnes et al., 2020). Matching pairs are connected with grey lines. InfoNCE shows a clear separation of modalities, whereas xNCE does not. We can rewrite eq. (2) as the sum of the negative energy term aii/τ and the entropy term log PN j=1 e aij /τ . We define mi = 1 N PN j… view at source ↗
Figure 6
Figure 6. Figure 6: Modality distance progression during training. All models are initialized using pretrained CLIP [PITH_FULL_IMAGE:figures/full_fig_p016_6.png] view at source ↗
Figure 7
Figure 7. Figure 7: Sensitivity of retrieval performance to r [PITH_FULL_IMAGE:figures/full_fig_p016_7.png] view at source ↗

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Reference graph

Works this paper leans on

25 extracted references · 1 canonical work pages · 1 internal anchor

  1. [1]

    Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learning , author =

  2. [2]

    International conference on machine learning , pages=

    Understanding contrastive representation learning through alignment and uniformity on the hypersphere , author=. International conference on machine learning , pages=. 2020 , organization=

  3. [3]

    Welle and M

    Peiyang Shi and Michael C. Welle and M. Towards understanding the modality gap in. ICLR 2023 Workshop on Multimodal Representation Learning: Perks and Pitfalls , year=

  4. [4]

    Learning Transferable Visual Models From Natural Language Supervision , issn =

    Radford, Alec and Kim, Jong Wook and Hallacy, Chris and Ramesh, Aditya and Goh, Gabriel and Agarwal, Sandhini and Sastry, Girish and Askell, Amanda and Mishkin, Pamela and Clark, Jack and Krueger, Gretchen and Sutskever, Ilya , urldate =. Learning Transferable Visual Models From Natural Language Supervision , issn =. Proceedings of the 38th International ...

  5. [5]

    Mind the Gap: Preserving and Compensating for the Modality Gap in

    Huang, Linlan and Cao, Xusheng and Lu, Haori and Meng, Yifan and Yang, Fei and Liu, Xialei , langid =. Mind the Gap: Preserving and Compensating for the Modality Gap in

  6. [6]

    Fill the Gap: Quantifying and Reducing the Modality Gap in Image-Text Representation Learning , url =

    Role, François and Meyer, Sébastien and Amblard, Victor , urldate =. Fill the Gap: Quantifying and Reducing the Modality Gap in Image-Text Representation Learning , url =. doi:10.48550/arXiv.2505.03703 , shorttitle =. 2505.03703 [cs] , keywords =

  7. [7]

    It's Not a Modality Gap: Characterizing and Addressing the Contrastive Gap , url =

    Fahim, Abrar and Murphy, Alex and Fyshe, Alona , urldate =. It's Not a Modality Gap: Characterizing and Addressing the Contrastive Gap , url =. doi:10.48550/arXiv.2405.18570 , shorttitle =. 2405.18570 [cs] , keywords =

  8. [8]

    arXiv preprint arXiv:2406.17639 , year=

    Mitigate the gap: Investigating approaches for improving cross-modal alignment in clip , author=. arXiv preprint arXiv:2406.17639 , year=

  9. [9]

    The Double-Ellipsoid Geometry of

    Levi, Meir Yossef and Gilboa, Guy , urldate =. The Double-Ellipsoid Geometry of. doi:10.48550/arXiv.2411.14517 , abstract =. 2411.14517 [cs] , keywords =

  10. [10]

    Understanding the Behaviour of Contrastive Loss , rights =

    Wang, Feng and Liu, Huaping , urldate =. Understanding the Behaviour of Contrastive Loss , rights =. 2021. doi:10.1109/CVPR46437.2021.00252 , abstract =

  11. [11]

    IEEE Transactions on Artificial Intelligence , volume=

    Dynamically scaled temperature in self-supervised contrastive learning , author=. IEEE Transactions on Artificial Intelligence , volume=. 2025 , publisher=

  12. [12]

    and Lin, Dahua , urldate =

    Wu, Zhirong and Xiong, Yuanjun and Yu, Stella X. and Lin, Dahua , urldate =. Unsupervised Feature Learning via Non-parametric Instance Discrimination , isbn =. 2018. doi:10.1109/CVPR.2018.00393 , abstract =

  13. [13]

    Representation Learning with Contrastive Predictive Coding , url =

    Oord, Aaron van den and Li, Yazhe and Vinyals, Oriol , urldate =. Representation Learning with Contrastive Predictive Coding , url =. doi:10.48550/arXiv.1807.03748 , abstract =. 1807.03748 [cs] , keywords =

  14. [14]

    Learning Representations by Maximizing Mutual Information Across Views , volume =

    Bachman, Philip and Hjelm, R Devon and Buchwalter, William , urldate =. Learning Representations by Maximizing Mutual Information Across Views , volume =. Advances in Neural Information Processing Systems , publisher =

  15. [15]

    A Simple Framework for Contrastive Learning of Visual Representations , url =

    Chen, Ting and Kornblith, Simon and Norouzi, Mohammad and Hinton, Geoffrey , urldate =. A Simple Framework for Contrastive Learning of Visual Representations , url =. doi:10.48550/arXiv.2002.05709 , abstract =. 2002.05709 [cs] , keywords =

  16. [16]

    Momentum

    He, Kaiming and Fan, Haoqi and Wu, Yuxin and Xie, Saining and Girshick, Ross , abstract =. Momentum

  17. [17]

    doi:10.48550/arXiv.1702.05373 , shorttitle =

    Cohen, Gregory and Afshar, Saeed and Tapson, Jonathan and Schaik, André van , urldate =. doi:10.48550/arXiv.1702.05373 , shorttitle =. 1702.05373 [cs] , note =

  18. [18]

    Lawrence and Dollár, Piotr , urldate =

    Lin, Tsung-Yi and Maire, Michael and Belongie, Serge and Bourdev, Lubomir and Girshick, Ross and Hays, James and Perona, Pietro and Ramanan, Deva and Zitnick, C. Lawrence and Dollár, Piotr , urldate =. Microsoft. doi:10.48550/arXiv.1405.0312 , shorttitle =. 1405.0312 [cs] , keywords =

  19. [19]

    Geodesic Multi-Modal Mixup for Robust Fine-Tuning

    Oh, Changdae and So, Junhyuk and Byun, Hoyoon and Lim, YongTaek and Shin, Minchul and Jeon, Jong-June and Song, Kyungwoo , date =. Geodesic. doi:10.48550/arXiv.2203.03897 , url =. 2203.03897 , eprinttype =

  20. [20]

    Second Workshop on Representational Alignment at ICLR 2025 , year=

    Closing the modality gap enables novel multimodal learning applications , author=. Second Workshop on Representational Alignment at ICLR 2025 , year=

  21. [21]

    2020 , eprint=

    UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction , author=. 2020 , eprint=

  22. [22]

    2018 , eprint=

    VSE++: Improving Visual-Semantic Embeddings with Hard Negatives , author=. 2018 , eprint=

  23. [23]

    2015 , eprint=

    Deep Visual-Semantic Alignments for Generating Image Descriptions , author=. 2015 , eprint=

  24. [24]

    Delphboy/Karpathy-Splits , author =

  25. [25]

    arXiv preprint arXiv:2010.11929 , year=

    An image is worth 16x16 words: Transformers for image recognition at scale , author=. arXiv preprint arXiv:2010.11929 , year=