Statistical guarantees for multimodal contrastive learning via pointwise mutual information estimation
Anonymous authors
ICLR 2027
TL;DR. nfoNCE provides statistically efficient PMI estimation despite dependence among negative pairs, yielding guarantees for representation learning and zero-shot classification.
Abstract. Multimodal contrastive learning has emerged as a powerful approach for learning representations from paired multimodal data. In this work, we develop a theoretical framework for analyzing the finite-sample behavior of contrastive learning with the InfoNCE objective. Our approach is based on viewing the learned similarity score as an estimator of the pointwise mutual information (PMI) function, which characterizes the population-optimal similarity score up to an additive constant. By exploiting the curvature of the InfoNCE objective together with a localized analysis around the PMI score, we derive fast convergence rates for the PMI estimation error despite the dependence among negative pairs in InfoNCE. When PMI is Hölder smooth, we further show that InfoNCE achieves the minimax-optimal rate up to logarithmic factors for both joint-input neural networks and CLIP-style dual encoders. For downstream learning, we show that accurate recovery of PMI implies approximate sufficiency of the learned representations and yields a bound on the excess risk of zero-shot classification. We provide numerical experiments to support our theoretical results.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 25 Nov 2026, 10:42 UTC.
- Rating
- 3/4(+1)
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 1/3
- Informativeness
- 2/3
Read review
Summary
This paper proposed a finite-sample statistical analysis of multimodal contrastive learning by interpreting InfoNCE as an estimator of pointwise mutual information (PMI). Via localized complexity analysis, it leads to fast convergence rates and establishes minimax-optimal PMI estimation rates for both joint-input networks and CLIP-style dual encoders. The results are further extended to representation sufficiency and zero-shot classification.
Strengths
-
The paper provides a clear theoretical analysis of InfoNCE, establishing fast convergence rates while accounting for the dependence among negative pairs within a batch. The localized analysis offers a stronger statistical guarantee than conventional global generalization bounds.
-
The matching minimax upper and lower bounds establish the optimality of PMI estimation under Holder smoothness assumptions. Extending these results to CLIP-style dual encoders, along with theoretical guarantees for downstream representation learning, further strengthens the contribution.
Weaknesses
-
The theoretical setting differs from practical CLIP architectures and training procedures. The minimax-optimal rate for dual encoders allows the embedding dimension and network capacity to increase with the sample size, while the analysis assumes unnormalized similarity scores and empirical risk minimization over fixed batches. These assumptions limit the direct applicability of the theoretical results to practical CLIP models.
-
The connection between PMI estimation and downstream performance remains somewhat limited. Proposition 5.2 depends on the excess risk of the ideal PMI-based classifier and an additional prompt coverage condition, which may lead to loose guarantees in realistic settings. Moreover, the real-data experiments show relatively low zero-shot classification accuracy without directly evaluating PMI estimation error or representation sufficiency. Thus, the practical significance of the downstream guarantees remains unclear.
Questions for the authors
-
Theorem 4.5 establishes minimax-optimal rates for CLIP-style dual encoders, but the embedding dimension and network capacity are allowed to increase with the sample size. How should these results be interpreted for practical CLIP models with fixed embedding dimensions and normalized similarity scores? Clarification of which guarantees remain applicable under these settings would help assess the scope of the theoretical contribution.
-
The theoretical analysis assumes empirical risk minimization over fixed disjoint batches, whereas practical contrastive learning typically uses stochastic optimization with reshuffled batches. How essential are these assumptions to the fast convergence rates? A clarification of their role in the analysis would help establish the applicability of the results to practical training procedures.
-
Proposition 5.2 includes the excess risk of the ideal PMI-based classifier and an additional prompt coverage constant. Under what conditions does this bound provide a meaningful guarantee for downstream classification? Clarifying the effect of these terms would help assess the significance of the theoretical results.
5 comments
Regarding stochastic optimization, our paper focuses on the finite-sample statistical analysis, as is typical in statistical learning theory. Whether SGD converges to the empirical risk minimizer is a question of optimization. The InfoNCE loss is highly nonconvex in the network parameters, so a convergence theory for SGD on the contrastive loss should be treated as a separate work, and it is beyond the scope of this paper. As we pointed out in the original paper, we view this as an interesting direction for future work. We also note that our results still apply to the output of any training procedure, including SGD, in two ways. First, we have now added Theorem E.1 to the revised paper, which holds for every approximate minimizer, and the optimization error appears in addition to the approximation and estimation errors, so any guarantee for the convergence of the optimization algorithm can be combined with it. Second, the lower bound of Theorem 4.6 holds for every estimator based on the pairs, including the output of SGD with reshuffled batches, so no training procedure can improve on the rate in terms of when the PMI is Hölder smooth.
Response to W2 and Q3
(i) W2 and Q3 (downstream guarantee). We thank the reviewer for this question. We discussed the conditions under which Proposition 5.2 gives a meaningful guarantee in Appendix D.2 of the original paper. Since most of this discussion appeared only in the appendix, we have also added a short summary of it to the main text of the revised paper after Proposition 5.2. We summarize it here.
The first term, , is the excess risk of the classifier that uses the true PMI. It does not depend on the learned score or on the sample size . It is small when the logits of the true PMI approximately recover the class probabilities. For example, let be the set of texts that describe class and take the prompt distribution with the class bias . If the image affects the text only through its class, then the logits of the true PMI are exactly the log class probabilities , and the first term is zero (see Appendix D.2 of the original paper for further details). This corresponds to the conditions discussed in Uesaka et al. '25, who also give a bound when the conditions hold only approximately. In the revised paper we also state this bound in Appendix D.2.
The second term, , reflects how accurately the learned score estimates the PMI . For the prompt distributions considered above we showed in Appendix D.2 of the original paper. In this case the second term equals , so it is of the same order as the PMI error . When the first term is small, our results for the PMI error then directly translate into guarantees for zero-shot classification.
(ii) W2 (real data experiments). We would like to first clarify that the PMI error and the representation sufficiency both require the true joint distribution of images and texts, so they cannot be evaluated on real data. In this experiment we instead report zero-shot accuracy, which is a standard evaluation metric for contrastive pretraining (e.g. Radford et al. '21) and can be seen as a proxy for the quality of the learned score.
Regarding the low accuracy, we did not tune the training for accuracy, and both encoders are trained from scratch on at most image-text pairs (far fewer than the 400M pairs used for CLIP in Radford et al. '21). Even so, the top-1 accuracy on ImageNet-1K, which has classes, is about at , which is still far above the random chance (). On Caltech-101, which has classes, the top-1 and top-5 accuracies are also up to and , respectively. More importantly, the goal of this experiment is not to obtain high accuracy but to examine whether the predictions of our theory hold on real data. The results show that they do, i.e., the performance is mainly governed by the total number of pairs , and the batch size is less important.
To further address the reviewer's comment about evaluating the PMI error, we note that our theory also bounds the excess InfoNCE risk (see Theorem 4.2 of the original paper), and this risk can be estimated on real data. We therefore additionally evaluated the held-out InfoNCE loss on the WIT dataset, which is a good proxy for the excess InfoNCE risk. It is computed on pairs of the WIT dataset that are not used for training, for the models of the original paper (fixed batches) and for models trained with batches reshuffled at every epoch. As the table below shows, the loss decreases clearly with , and the effect of the batch size is smaller than that of .
Held-out InfoNCE loss on the WIT dataset
| batches | ||||
|---|---|---|---|---|
| fixed | 6.859 | 6.769 | 7.046 | |
| reshuffled | 6.519 | 6.830 | 7.051 | |
| fixed | 5.784 | 5.792 | 6.024 | |
| reshuffled | 5.391 | 5.876 | 6.107 | |
| fixed | 4.722 | 4.909 | 5.156 | |
| reshuffled | 4.233 | 4.801 | 5.197 | |
| fixed | 3.627 | 3.826 | 4.136 | |
| reshuffled | 3.057 | 3.577 | 4.086 |
- Rating
- 3/4
- Confidence
- 2/4
- Soundness
- 3/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
The paper develops a finite-sample theory for multimodal contrastive learning by treating the InfoNCE score as an estimator of pointwise mutual information, up to an additive constant. A self-concordance argument links the InfoNCE excess risk to the L²(Q) error of PMI, with constants that do not depend on the batch size. Maurer's inequality for weakly interacting functions handles the reuse of samples as negatives within a batch. Combined with localization, this gives an oracle inequality whose rate depends on the total number of pairs n = NK. For Hölder-smooth PMI, both joint-input ReLU networks and CLIP-style dual encoders reach the minimax rate up to log factors, and a matching lower bound is given. The paper also bounds approximate sufficiency and the zero-shot excess risk in terms of the PMI error. Synthetic experiments show the predicted 1/n scaling and little dependence on K, and the appendix adds a small image-text experiment on WIT.
Strengths
-
The paper handles the dependence created by reusing samples as negatives within a batch, which is a real technical obstacle, and gets a fast O(1/n) rate in the total number of pairs instead of the n^{-1/2} that global analyses give. The upper bound is matched by a minimax lower bound and connected to sufficiency and zero-shot classification, so the story is complete from estimation to downstream use. This is the main reason for a positive assessment: it answers a clear question left open by Oko et al. and Lin & Mei.
-
The writing is clear and the technical work is careful. Section 4.3 explains well why localization gives the faster rate. I checked Prop. 4.1, Lemma A.4, the proof of Theorem 4.2 and the lower bound, and found no problems. The synthetic experiments also line up with the predicted scaling.
Weaknesses
- The guarantees are far from what practical CLIP training looks like.
- The constants are exponential in M₀, C₁ ∝ e^{2M₀}, C₂ ∝ e^{7M₀}, and Prop. 5.1 has a factor e^{2M₀}. With τ = 0.01, CLIP logits span roughly ±100, so the bounds say very little in practice.
- The CLIP-style rate in Theorem 4.5 needs the embedding dimension to grow polynomially with n (Lemma C.4). The main text hides this behind "network sizes can be chosen", although fixed embedding dimension is exactly what makes dual encoders interesting.
- The rate is in the ambient dimension d_X + d_Y.
- For single prompts, the coverage constant C̃ = Σ 1/P_Y({y_c}) in Prop. 5.2 is essentially infinite in a continuous text space.
Some of this is inherent to the setting, but much of it can be addressed. The paper should state the growth of p in the main theorem, discuss the M₀ and τ dependence openly, and consider adapting to intrinsic dimension, as Han et al. (JASA 2025) and Gui et al. (2025) do.
- The novelty over existing work is moderate.
- Oko et al. (2025) and Lin & Mei (2025) already provide the sufficiency framework and sample-complexity bounds.
- Han et al. (JASA 2025) already give minimax-optimal deep estimation of the mutual density ratio (i.e., PMI) via Bregman objectives, including manifold adaptation, and should be discussed more directly.
- The genuinely new piece is localization under batch dependence. The tools used (self-concordance, Maurer's inequality, chaining, Schmidt-Hieber approximation, Assouad) are standard, and the downstream results are short corollaries.
The experiments don't add much beyond this. The synthetic setting is low-dimensional and well-specified, and it checks the 1/n scaling but not the dependence on α or d. In the real-data experiment, ImageNet zero-shot top-1 is between 0.7% and 3.8%, which is too low to support conclusions about the role of K. Positioning is fixable; the experiments could be strengthened by varying α or d and by using a setting where zero-shot accuracy is meaningful.
Questions for the authors
-
For the CLIP-style class, what can be said when the embedding dimension p is fixed? For example, does the rate change if the PMI has low rank, and can the bound be stated in terms of that rank?
-
How do the constants scale with M₀ and τ, and is there a realistic regime (e.g., τ = 0.01) where the bounds are non-vacuous? Can the exponential dependence be improved?
-
For single-prompt zero-shot classification, C̃ seems to be infinite when the text distribution is continuous. Is there a version of Prop. 5.2 that covers realistic prompts, e.g., by smoothing over neighbourhoods of the prompt?
-
In the WIT experiment, a larger K with a fixed number of epochs means fewer optimization steps. How is this separated from the statistical effect of K?
5 comments
We thank the reviewer for the helpful comments and thoughtful feedback. We respond to each point below. All major changes in the revised paper have been highlighted in blue, and the list of references can be found in the global response.
Response to W1 and Q1 and Q2 and Q3
W1(a) and Q2. We first note that the exponential dependence of the constants in is common in the theory of contrastive learning (e.g. Oko et al. '25, Lin & Mei '25, Li et al. '26) and also in the related literature on density ratio estimation (e.g. Han et al. '25). And indeed, we can also show that this dependence is rather unavoidable. To see this, consider in Proposition 4.1 as the reviewer says, and let have uniform marginals and , so that if and if . Consider the score if and if , so that with . Then we can show that
and so , i.e., must be at least of order . We have now added this result with the details in Proposition A.5 of the revised paper, and we also improved in Proposition 4.1 from to to match this lower bound.
Regarding the dependence on the temperature , the proof of Proposition 4.1 of the revised paper shows that we can take when for all and . In the revised paper we bounded , , and by of Assumption 3.2, which gives . For normalized CLIP-style scores (i.e., with on the unit sphere) we have . If and , then is actually , whereas bounding and by would give , which is very conservative. For example, with these are of order and . This shows that the constant can be much smaller in practice than its bound in terms of . We stated our results with the single constant only for simplicity, because our work focuses on the statistical rate in terms of rather than optimizing the constants. We have added this discussion to Appendix A.3 of the revised paper.
W1(b) and Q1. Our Theorem 4.5 is interpreted as follows: for a given sample size , we can find network sizes, including the embedding dimension , such that the InfoNCE minimizer attains the convergence rate stated in the theorem. The dependence of the architecture on the sample size is very common in statistical learning theory for neural networks, where the size of the network is chosen as a function of (e.g. Schmidt-Hieber '20, Nakada & Imaizumi '20, Han et al. '25, Ma et al. '26). This is also known as the sieve method in nonparametric statistics (Shen & Wong '94), where the class has to grow with so that its approximation error vanishes as grows. In the CLIP-style score, increasing the embedding dimension with allows the score to approximate a Hölder-smooth PMI more accurately. We now state this more explicitly in the revised paper after Theorem 4.5.
For a fixed embedding dimension , a minor modification of Theorem 4.5 gives up to logarithmic factors (see Corollary E.3 of the revised paper). The first term is the approximation error, and for a fixed it does not decrease as grows, so it remains in the bound. This is unavoidable in general, since a score with embedding dimension has rank at most (see Lemma E.2 of the revised paper). However, as the reviewer suggests, a fixed suffices when the PMI has low rank. If the PMI has rank , we take so that there is no error due to the rank, and the encoders only need to approximate the factors of the PMI, which are functions of alone or of alone. By the existing approximation results for ReLU networks, this approximation error vanishes as grows, and we can show the rate up to logarithmic factors. We have now added this low-rank case as Theorem E.5 of the revised paper.
W1(c). Our paper makes no assumption on a low-dimensional structure of the data, so the rate in Theorem 4.5 depends on the ambient dimension , and Theorem 4.6 shows that this rate is minimax optimal up to logarithmic factors, that is, it cannot be improved without further assumptions. If the data have a low-dimensional structure as in Han et al. '25, the same argument gives a rate in terms of the intrinsic dimension. For simplicity consider the joint-input class . Corollary 4.3 of the original paper gives up to logarithmic factors. Approximating a Hölder function within on the whole cube requires , which gives the rate of Theorem 4.5. However, the approximation is needed only on the support of the data, which is much smaller than the whole cube when the data are low-dimensional. Specifically, if the support has intrinsic dimension less than for some (in the sense of the Minkowski dimension), then Theorem 5 of Nakada & Imaizumi '20 shows that suffices for the same accuracy , and we obtain
up to logarithmic factors. Choosing then gives the rate instead of the rate of Theorem 4.5.
W1(d) and Q3. As the reviewer mentioned, for a single prompt when the text space is continuous. Since text is usually discrete, we thought that this would not be a problem in Proposition 5.2. When the text space is continuous, as the reviewer suggests, we can smooth over a neighbourhood of each prompt, that is, take . This choice was also discussed in Appendix D.2 of the original submission. Proposition 5.2 then holds with , which is finite as long as each has positive probability.
Response to W2
We thank the reviewer for raising this point. We would like to clarify the novelty of our work over the existing work below.
W2(a). One of our main contributions is to show that estimating the PMI is enough to control the approximate sufficiency of Oko et al. '25 and Lin & Mei '25, as the title of our paper "via pointwise mutual information estimation" says. We do not claim the sufficiency framework itself as our contribution. Proposition 5.1 bounds the sufficiency by the PMI error, so a rate for the PMI error translates to a rate for the sufficiency. Additionally, their sample-complexity bounds control the difference between the empirical and the population loss uniformly over the class, which gives a slow rate. In the setting of Corollary 4.4 such a bound would be of order , whereas our bound is of order , up to logarithmic factors. We thus improve the statistical rate compared to Oko et al. '25 and Lin & Mei '25.
W2(b). Our work and Han et al. '25 have substantially different goals. Han et al. design a new objective based on Bregman divergence for estimating the PMI directly. On the other hand, we analyze InfoNCE, the objective that is used in contrastive pretraining, and the PMI appears because it is the population minimizer of this objective. Our question is whether the objective used in practice for contrastive learning is statistically efficient, and we show that it attains the minimax rate uniformly in the batch size. The dependence structure is also different. The Bregman objective of Han et al. is a U-statistic of order 2, which has been well studied in the classical theory of U-processes. In contrast, the InfoNCE loss of a batch depends on all pairs in the batch through the many scores , , and may grow with , so it requires a more delicate analysis. Finally, unlike Han et al., we also consider CLIP-style dual encoders and establish guarantees for sufficiency and zero-shot classification. We have added a remark on this comparison to Section 4.3 of the revised paper.
W2(c). Yes, localization under batch dependence is the main technical contribution of our paper, and we agree that tools such as chaining, the approximation results for ReLU networks, and Assouad's lemma are standard. However, although self-concordance and the inequality by Maurer '19 are known, to the best of our knowledge neither of them has been used before in the analysis of contrastive learning, and Maurer's inequality has also not been used within the localization framework in the literature to obtain fast rates. A direct approach is to treat each batch (or tuple) as one independent observation (e.g. Saunshi et al. '19, Lei et al. '23). Then with this approach, standard localization (e.g. Wainwright '19) can give a fast rate only in terms of the number of batches , so the bound becomes worse as the batch size grows. We overcome this difficulty with a novel analysis that combines localization with a control of the dependence among the pairs within a batch, which gives a fast rate in uniformly in .
Further, as the reviewer points out, the downstream results are short. We believe this is indeed an advantage of our paper, because the sufficiency and zero-shot guarantees follow easily from the bound on the PMI error and do not require a separate involved analysis.
Response to W3 and Q4
(i) We thank the reviewer for this suggestion. We conducted an additional synthetic experiment where we vary the smoothness and the dimension . For each we choose the network width from that gives the smallest InfoNCE loss on a held-out dataset. The table below shows the relative PMI error of the score function given by a joint-input ReLU network. As the table shows, the error decreases with in every case, and it decreases faster for a larger and more slowly for a larger , which is in line with our theoretical result (see Theorem 4.5 of the original paper).
Relative PMI error
| 1 | 0.5 | 0.95 | 0.294 | 0.15 | 0.0811 |
| 1 | 1.5 | 0.36 | 0.1 | 0.0435 | 0.0166 |
| 1 | 2.5 | 0.275 | 0.0727 | 0.0258 | 0.00874 |
| 2 | 0.5 | 2.9 | 1.18 | 0.77 | 0.543 |
| 2 | 1.5 | 1.79 | 0.793 | 0.48 | 0.241 |
| 2 | 2.5 | 2.06 | 0.689 | 0.39 | 0.19 |
(ii) Regarding the low accuracy on ImageNet-1K, we believe it arises mainly because both encoders are trained from scratch on at most image-text pairs (far fewer than the 400M pairs used for CLIP in Radford et al. '21) and the training is not tuned for accuracy. The purpose of our experiment was to examine how well real data align with our theory, and not to achieve high accuracy. Even so, the accuracy on ImageNet-1K, which has classes, is still above the random chance (). We also note that the accuracy is not low on every dataset. On Caltech-101, which has classes, the top-1 and top-5 accuracies are up to and at , respectively. On this dataset as well, the accuracy increases by a large factor as grows, whereas it changes much less when varies.
(iii) Q4. As the reviewer points out, in the original paper we train for epochs for every , so a larger has fewer updates. To reduce the effect of the optimization in training, we compute the accuracy of each run at the epoch with the smallest held-out InfoNCE loss, instead of at a fixed number of epochs. We also train the larger batch sizes for more epochs ( and epochs for and , respectively), so that they are not limited by the number of updates. As the table below shows, the accuracy is still similar across , and the differences across are much smaller than the effect of .
Top-5 accuracy (IN-1K: ImageNet-1K, C-100: CIFAR-100, Cal-101: Caltech-101)
| IN-1K, 64 | IN-1K, 256 | IN-1K, 1024 | C-100, 64 | C-100, 256 | C-100, 1024 | Cal-101, 64 | Cal-101, 256 | Cal-101, 1024 | |
|---|---|---|---|---|---|---|---|---|---|
| 3.12 | 3.11 | 2.47 | 10.02 | 10.84 | 10.36 | 13.93 | 16.27 | 12.03 | |
| 4.72 | 4.85 | 4.84 | 11.94 | 10.86 | 10.39 | 22.36 | 20.05 | 19.78 | |
| 7.61 | 8.06 | 8.02 | 12.49 | 13.38 | 13.39 | 35.56 | 35.98 | 38.82 | |
| 11.28 | 11.52 | 12.43 | 16.44 | 17.92 | 18.33 | 47.55 | 46.26 | 48.19 |
- Rating
- 3/4(+1)
- Confidence
- 3/4
- Soundness
- 1/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
This paper provides a theoretical analysis of the finite-sample statistical properties of multimodal contrastive learning, in particular the InfoNCE objective, from the perspective of viewing the learned similarity score as an estimator of pointwise mutual information (PMI). The main contributions are as follows. First, the authors establish a general finite-sample oracle inequality based on a localized analysis, which directly controls the PMI estimation error and yields fast convergence rates. Second, they specialize this to joint-input and CLIP-style encoders and show that, for Hölder-smooth PMI, the resulting estimators achieve the minimax-optimal rate up to logarithmic factors, together with a matching lower bound. Third, they show that the PMI estimation error controls the approximate sufficiency of the learned representations and the excess risk of zero-shot classification. The analysis is validated through experiments on synthetic data and on real image-text data (WIT).
Strengths
- While the fact that the population optimum of InfoNCE is PMI is already known, this paper directly quantifies it as a finite-sample estimation error and establishes minimax optimality by providing both a matching upper bound and lower bound. Proving not only the upper bound but also the lower bound gives the theoretical contribution a degree of completeness. (I note, however, that I have not verified all of the proofs in full detail.)
Weaknesses
-
My major concern is that the fixed-batch assumption on which the analysis relies is too far removed from realistic training settings, which substantially limits the practical relevance of the main results. In actual contrastive learning, batches are reshuffled at every epoch, and the analysis assumes a fixed partition into disjoint batches instead. The paper does not make clear whether fixing the batches is essential to the derivation or whether it is merely an analytical convenience that could be relaxed, and this makes it difficult to judge how far the results extend to the settings used in practice. Because the key theoretical message, namely that performance is governed by the total number of pairs rather than the number of batches , is stated under this assumption, the gap from real training is not something I can overlook. In addition, the boundedness assumption (Assumption 3.2) is not shown to hold for realistic distributions, which further weakens the case for the applicability of the theory.
-
The empirical validation does not adequately compensate for this gap. The absolute zero-shot classification accuracy on real data is low, making it difficult to draw conclusions beyond confirming the qualitative trend predicted by the theory, and it is unclear whether this low performance is itself a consequence of the fixed batch construction. Furthermore, the batch presentation order is fixed for the synthetic data but reshuffled every epoch for the real data, and the paper does not explain which of these settings is intended to be consistent with the theory. The dependence on the batch size observed on Caltech-101 is also left unexplained, which raises doubts about the central claim of independence from .
Questions for the authors
All of the following questions are relevant to my assessment of the paper.
-
How essential is the fixed-batch assumption for obtaining the derived convergence rates and minimax optimality? Or is it an analytical convenience, so that an extension to batches that are reshuffled every epoch is in principle feasible? If such an extension is feasible, please indicate the degree of technical difficulty that you anticipate.
-
To what extent do you expect the boundedness of PMI and of the score (Assumption 3.2) to hold realistically for actual data distributions? In addition, how does the constant affect the convergence rate and the bounds in the downstream-task guarantees?
5 comments
We thank the reviewer for the helpful comments and thoughtful feedback. We respond to each point below. All major changes in the revised paper have been highlighted in blue, and the list of references can be found in the global response.
Response to W1 and Q1
(i) First, regarding the fixed-batch assumption, we agree that our problem setting has some gaps from real training (we also pointed this out in the original paper as a direction for future work), but we would like to emphasize that much of the existing literature on finite-sample results for contrastive learning assumes the fixed-batch setting and our formulation follows this standard. For example, Chen et al. '24, Oko et al. '25, Lin & Mei '25, and van Elst & Ghoshdastidar '25 all assume that the batches are fixed as in our paper. Other existing works such as Saunshi et al. '19, HaoChen et al. '21, Lei et al. '23, Nakada et al. '23, Hieu et al. '25, and Li et al. '26 consider settings that are even more restrictive than our fixed-batch setting, in which the negative pairs are drawn independently for each positive pair or each positive pair is contrasted with all the other samples as negatives so that only one batch is used. In this sense our setting is closer to how negative samples are used in practice, where they are reused within the same batch, and we allow the batch size to be fixed or to grow with .
(ii) We can also show that the fixed-batch assumption is not essential to our theoretical results. We would first like to clarify that reshuffling the batches at every epoch, as the reviewer mentions, involves stochastic updates of the model parameters. Our paper focuses on the statistical analysis and does not study the optimization. Since the InfoNCE loss is nonconvex with respect to the network parameters, a convergence analysis of stochastic updates would be a separate work in itself and is beyond the scope of this paper.
In the statistical setting, however, our results extend easily to reshuffled batches, and we have added this extension to the revised paper (see Theorem E.1 in Appendix E.1). Specifically, for each epoch , let be the reshuffled batches and consider the objective that averages the batch losses over all epochs, i.e.,
where is the InfoNCE loss of a batch . For this is the fixed-batch loss. Training with batches reshuffled at every epoch takes one SGD step on each , so it is the natural empirical objective for SGD with reshuffled batches. Similar objectives that average a contrastive loss over a collection of mini-batches have also been considered in the literature (e.g. Cho et al. '24).
Since the batches within each epoch are disjoint and thus independent, for each epoch the moment generating function (MGF) of can be bounded as in the proof of Proposition B.7 of the original paper, where is the centered loss difference of Appendix B.1 computed on the batches of epoch . Jensen's inequality then gives
so the same MGF bound holds for the centered loss difference of , and hence the same concentration bound and the theoretical results follow directly.
Response to W2
(i) We thank the reviewer for raising this point. We believe the low accuracy arises mainly because both encoders are trained from scratch on at most image-text pairs (far fewer than the 400M pairs used for CLIP in Radford et al. '21) and the training is not tuned for accuracy, since the purpose of this experiment is only to examine how well real data align with our theory. Following the reviewer's comment, we also repeated the experiment of the original paper with the batches reshuffled at every epoch (see the table below), and the accuracies with fixed and with reshuffled batches are not much different. We also point out that while the accuracy is low on ImageNet-1K, even there it is above the random chance (), so the agreement with our theory observed in this experiment still supports our theoretical results.
Top-1 accuracy (IN-1K: ImageNet-1K, C-100: CIFAR-100, Cal-101: Caltech-101)
| batches | IN-1K, 64 | IN-1K, 256 | IN-1K, 1024 | C-100, 64 | C-100, 256 | C-100, 1024 | Cal-101, 64 | Cal-101, 256 | Cal-101, 1024 | |
|---|---|---|---|---|---|---|---|---|---|---|
| fixed | 0.86 | 0.79 | 0.65 | 2.13 | 2.11 | 1.82 | 2.00 | 1.98 | 2.45 | |
| reshuffled | 0.89 | 0.77 | 0.65 | 2.23 | 2.32 | 1.75 | 2.38 | 2.56 | 1.86 | |
| fixed | 1.38 | 1.29 | 1.17 | 2.42 | 2.42 | 2.36 | 4.99 | 5.24 | 3.70 | |
| reshuffled | 1.50 | 1.25 | 1.08 | 2.73 | 2.91 | 1.91 | 6.87 | 7.37 | 4.19 | |
| fixed | 2.29 | 2.28 | 2.01 | 3.22 | 3.08 | 3.29 | 13.83 | 12.78 | 12.72 | |
| reshuffled | 2.76 | 2.42 | 1.92 | 3.64 | 3.56 | 3.45 | 17.46 | 13.81 | 9.65 | |
| fixed | 3.77 | 3.92 | 3.75 | 4.94 | 4.59 | 4.40 | 20.70 | 19.20 | 20.40 | |
| reshuffled | 4.76 | 4.49 | 3.89 | 5.90 | 4.55 | 3.94 | 25.15 | 19.98 | 16.12 |
Top-5 accuracy (IN-1K: ImageNet-1K, C-100: CIFAR-100, Cal-101: Caltech-101)
| batches | IN-1K, 64 | IN-1K, 256 | IN-1K, 1024 | C-100, 64 | C-100, 256 | C-100, 1024 | Cal-101, 64 | Cal-101, 256 | Cal-101, 1024 | |
|---|---|---|---|---|---|---|---|---|---|---|
| fixed | 2.91 | 2.74 | 2.30 | 9.65 | 9.45 | 7.47 | 11.07 | 7.41 | 8.64 | |
| reshuffled | 3.01 | 2.60 | 2.26 | 9.33 | 9.07 | 7.89 | 10.32 | 9.42 | 7.16 | |
| fixed | 4.42 | 4.28 | 3.85 | 10.61 | 10.02 | 9.23 | 16.87 | 18.36 | 12.89 | |
| reshuffled | 4.85 | 4.00 | 3.63 | 10.06 | 10.35 | 7.98 | 23.10 | 21.44 | 15.03 | |
| fixed | 6.77 | 6.76 | 5.92 | 12.56 | 11.99 | 11.93 | 35.58 | 31.58 | 27.94 | |
| reshuffled | 8.00 | 7.02 | 5.83 | 13.60 | 13.33 | 12.23 | 37.73 | 32.18 | 26.85 | |
| fixed | 10.59 | 10.97 | 10.17 | 16.63 | 14.61 | 14.78 | 47.53 | 38.61 | 39.01 | |
| reshuffled | 12.86 | 12.00 | 10.52 | 18.86 | 14.99 | 13.91 | 49.87 | 42.99 | 34.57 |
(ii) Regarding the batch presentation order, we would like to clarify that the batches are fixed in both experiments of the original paper, as in our theory, and the two experiments are different only in how the loss is optimized. In the synthetic experiments, every step uses the gradient of the full loss, so there is no presentation order, and therefore the synthetic experiments are exactly in the setting of our theory. On real data, using the gradient of the full loss is computationally infeasible, so we take one step per batch and visit the same fixed batches in a random order at each epoch. While this is slightly different from our theoretical setting, the objective is the same and the results are still qualitatively aligned with our theory.
(iii) Regarding the claim of independence from , we note that our paper does not claim that the downstream accuracy is identical for every . Our theoretical results state that the bounds on the PMI error hold with constants that do not depend on the batch size (see Theorem 4.5 of the original paper), so the convergence rate in terms of is the same for every and matches the minimax lower bound of Theorem 4.6. For the real data experiment, the original paper states that the downstream performance improves primarily with and is comparatively less sensitive to the batch size, and it already mentions that the differences across batch sizes are somewhat larger on Caltech-101.
For the dependence on on Caltech-101 that the reviewer mentioned, we believe that it is not a statistical effect of the batch size. First, the effect of on the accuracy is much larger than that of . As the table in (i) shows, the accuracy on Caltech-101 increases by a large factor as grows, whereas it changes much less with at a fixed . Second, in actual training several other factors such as the optimization are also involved. To reduce the effect of the optimization, we then conducted an additional experiment in which we find the epoch with the smallest held-out InfoNCE loss for each training run and evaluate the downstream accuracy at this epoch (best-val in the table below). As the table shows, at this epoch the differences across mostly become smaller, and with reshuffled batches they nearly disappear when the sample size is large (i.e., ).
Caltech-101 top-5 accuracy
| batches | 30 epochs, 64 | 30 epochs, 256 | 30 epochs, 1024 | best-val, 64 | best-val, 256 | best-val, 1024 | |
|---|---|---|---|---|---|---|---|
| fixed | 11.07 | 7.41 | 8.64 | 14.89 | 14.92 | 16.67 | |
| reshuffled | 10.32 | 9.42 | 7.16 | 12.53 | 14.54 | 16.17 | |
| fixed | 16.87 | 18.36 | 12.89 | 21.67 | 17.71 | 15.75 | |
| reshuffled | 23.10 | 21.44 | 15.03 | 17.54 | 25.72 | 26.27 | |
| fixed | 35.58 | 31.58 | 27.94 | 32.81 | 39.90 | 35.22 | |
| reshuffled | 37.73 | 32.18 | 26.85 | 42.32 | 40.06 | 36.54 | |
| fixed | 47.53 | 38.61 | 39.01 | 41.69 | 47.29 | 50.38 | |
| reshuffled | 49.87 | 42.99 | 34.57 | 45.43 | 44.77 | 44.08 |
Response to Q2
(i) The boundedness assumption is indeed common in the theory of contrastive learning (e.g. Tosh et al. '21, Chen et al. '24, Oko et al. '25, Lin & Mei '25, Li et al. '26) and also in the related literature on density ratio estimation (e.g. Nguyen et al. '10, Han et al. '25). Furthermore, the boundedness assumption on the PMI is reasonable in practice. It says , or equivalently . The upper bound means that seeing an image does not make any caption much more likely than before. This is reasonable because in practice one image can be described by many different captions. The lower bound holds when the data contain some mismatched pairs. For example, if a fraction of the captions is unrelated to their images, then the density of the data is , where is the density of the correctly matched pairs. Hence the PMI is lower bounded by . Image-text datasets collected from the web often contain such mismatched pairs (e.g. Jia et al. '21, Li et al. '22).
(ii) appears in our bounds on the PMI error and in the downstream guarantees only through the constants, so it does not affect the convergence rates or the minimax optimality. For example, the constant in Proposition 4.1 of the revised paper is (see also our response to Reviewer p5GV). This dependence is unavoidable, as shown in Proposition A.5 of the revised paper. A similar exponential dependence also appears in prior work such as Oko et al. '25, Lin & Mei '25, Han et al. '25, and Li et al. '26.
Comments on the paper
2 comments
Global response
We sincerely thank all reviewers for their careful reading and valuable feedback. We have responded to each reviewer's comments individually. We have also uploaded a revised paper in which all major changes are highlighted in blue. We hope that our responses and these changes help address the reviewers' comments. If you have further questions, we would be very happy to clarify.
The main changes in the revised paper are as follows.
(1) Reshuffled batches (Reviewers TU7F and D7aL): In the revised paper, we have added Theorem E.1, which extends Theorem 4.2 to the loss averaged over batches that are reshuffled at every epoch. It also covers approximate minimizers through an additional optimization error.
(2) Embedding dimension (Reviewers p5GV and D7aL): In the revised paper, we have explicitly stated after Theorem 4.5 how the embedding dimension grows with . We have also added results for a fixed (Lemma E.2 and Corollary E.3) and Theorem E.5, which shows that a fixed suffices when the PMI has low rank. In addition, we have added results for normalized scores (Lemma E.4).
(3) Constants (Reviewers TU7F and p5GV): In the revised paper, we have improved the constant of Proposition 4.1 from to . We have also added Proposition A.5, which shows that the factor cannot be improved.
Other changes in the revised paper are also highlighted in blue.
Below we collect the references cited in our responses.
- Chen et al. '24. Understanding transferable representation learning and zero-shot transfer in CLIP. ICLR 2024.
- Cho et al. '24. Mini-batch optimization of contrastive loss. Transactions on Machine Learning Research, 2024.
- Han et al. '25. Deep mutual density ratio estimation with Bregman divergence and its applications. Journal of the American Statistical Association, 2025.
- HaoChen et al. '21. Provable guarantees for self-supervised deep learning with spectral contrastive loss. NeurIPS 2021.
- Hieu et al. '25. Generalization analysis for deep contrastive representation learning. AAAI 2025.
- Jia et al. '21. Scaling up visual and vision-language representation learning with noisy text supervision. ICML 2021.
- Lei et al. '23. Generalization analysis for contrastive representation learning. ICML 2023.
- Li et al. '22. BLIP: Bootstrapping language-image pre-training for unified vision-language understanding and generation. ICML 2022.
- Li et al. '26. Statistical consistency and generalization of contrastive representation learning. ICML 2026.
- Lin & Mei '25. A statistical theory of contrastive learning via approximate sufficient statistics. NeurIPS 2025.
- Ma et al. '26. Optimal in-context adaptivity and distributional robustness of Transformers. NeurIPS 2026.
- Maurer '19. A Bernstein-type inequality for functions of bounded interaction. Bernoulli, 2019.
- Nakada & Imaizumi '20. Adaptive approximation and generalization of deep neural network with intrinsic dimensionality. Journal of Machine Learning Research, 2020.
- Nakada et al. '23. Understanding multimodal contrastive learning and incorporating unpaired data. AISTATS 2023.
- Nguyen et al. '10. Estimating divergence functionals and the likelihood ratio by convex risk minimization. IEEE Transactions on Information Theory, 2010.
- Oko et al. '25. A statistical theory of contrastive pre-training and multimodal generative AI. arXiv:2501.04641, 2025.
- Radford et al. '21. Learning transferable visual models from natural language supervision. ICML 2021.
- Saunshi et al. '19. A theoretical analysis of contrastive unsupervised representation learning. ICML 2019.
- Schmidt-Hieber '20. Nonparametric regression using deep neural networks with ReLU activation function. The Annals of Statistics, 2020.
- Shen & Wong '94. Convergence rate of sieve estimates. The Annals of Statistics, 1994.
- Tosh et al. '21. Contrastive learning, multi-view redundancy, and linear models. ALT 2021.
- Uesaka et al. '25. Weighted point set embedding for multimodal contrastive learning toward optimal similarity metric. ICLR 2025.
- van Elst & Ghoshdastidar '25. Tight PAC-Bayesian risk certificates for contrastive learning. SIAM Journal on Mathematics of Data Science, 2025.
- Wainwright '19. High-Dimensional Statistics: A Non-Asymptotic Viewpoint. Cambridge University Press, 2019.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the reviewer for the helpful comments and thoughtful feedback. We respond to each point below. All major changes in the revised paper have been highlighted in blue, and the list of references can be found in the global response.
Response to W1 and Q1 and Q2
(i) W1 and Q1 (embedding dimension). Our Theorem 4.5 is interpreted as follows: for a given sample size n, we can find network sizes, including the embedding dimension p, such that the InfoNCE minimizer attains the minimax rate. Choosing the network size as a function of the sample size is very common in statistical learning theory for neural networks (e.g. Schmidt-Hieber '20, Nakada & Imaizumi '20, Han et al. '25, Ma et al. '26). This is also known as the sieve method in nonparametric statistics (Shen & Wong '94), where the class has to grow with n so that its approximation error vanishes as n grows. It is a standard technique for deriving convergence rates in terms of the sample size n.
For a fixed embedding dimension p, a minor modification of Theorem 4.5 also gives the result in terms of the approximation and estimation errors. Specifically, we obtain
up to logarithmic factors, where the first term is the approximation error and the second is the estimation error. We now state this as Corollary E.3 in the revised paper. For a fixed p the approximation error does not go to zero as n grows, so it remains in the bound. If we instead choose p≍nmindX,dY/(2α+dX+dY) in the above, the two terms balance and we can recover the minimax rate n−2α/(2α+dX+dY) for the Hölder class.
(ii) W1 and Q1 (normalized scores). We have now added results for normalized scores (see Lemma E.4 of the revised paper). We consider the class of scores ⟨f/∣f∣2,g/∣g∣2⟩/τ, where f and g are ReLU networks whose norms are bounded away from zero. These scores are bounded by 1/τ, so Proposition 4.1 and Theorem 4.2 of the original paper apply without change. The only change occurs when we compute the covering number of this class, where we use that the normalization u↦u/∣u∣2 is Lipschitz away from zero. This gives the same bound as for unnormalized scores, i.e.,
up to logarithmic factors, where ϵnor is the approximation error of the class and minS,W2L is the size of the networks as in Corollary 4.4.
(iii) W1 and Q2 (fixed batches). We first note that many existing finite-sample theories of contrastive learning analyze the empirical loss or its minimizer with fixed batches, or under an even more restrictive assumption on the negative pairs (e.g. Saunshi et al. '19, HaoChen et al. '21, Lei et al. '23, Chen et al. '24, Oko et al. '25, Lin & Mei '25, Hieu et al. '25, Li et al. '26). Following this literature, we also analyzed the empirical risk minimizer with fixed batches. Having said this, the fixed-batch assumption is not essential for our analysis, and the same results extend to reshuffled batches. Specifically, for each epoch e=1,…,E, let Be,1,…,Be,N be the reshuffled batches and consider the objective that averages the batch losses over all epochs, i.e.,
where ℓK(s;B) is the InfoNCE loss of a batch B as in the paper. Similar objectives that average a contrastive loss over a collection of mini-batches have been also considered in Cho et al. '24. Then the same concentration bound of Proposition B.7 also holds for the loss averaged over the mini-batches, which allows us to obtain the same convergence rates as in the fixed-batch setting (see Theorem E.1 in Appendix E.1 of the revised paper, and also our response to Reviewer TU7F for further details).