arXiv:2609.05031stat.MLSep 2026

Manuscript Offprint

arXiv:2609.05031

An Analysis of Self-supervised Pre-training with Dependent Samples

Maximilian Fleissner, Debarghya Ghoshdastidar, Samory Kpotufe

ABSTRACT

Self-supervised learning relies on so-called data augmentations ϕ(x)\phi(x) of unlabeled datapoints xx — for example, masking random pixels in an image xx — that should leave the label of xx invariant and are often used to learn a lower-complexity invariant subspace V\mathcal{V} for downstream tasks. In practice, such augmentations {ϕl(xi)}\{\phi_l(x_i)\} are pooled together to learn V\mathcal{V}, despite obvious inter-dependencies between different augmentations ϕl(x),ϕk(x)\phi_l(x), \phi_k(x) of the same datapoint xx. However, theoretical works on the subject typically consider procedures that avoid such dependencies, and are therefore limited to operate on smaller subsets of independent data.

We show in this work that pooling augmentations together, despite inter-dependencies, is a better alternative than the baseline of partitioning the data into subsets of independent data. More precisely, in the context of estimating V\mathcal{V}, the statistical estimation error bounds for pooling are never worse than the partitioning baseline, and in some cases — such as masking or noise injection-based augmentations over a shallow neural network — naive pooling leads to faster rates in terms of the number of augmentations. The benefits of pooling are particularly prominent when the correlations between different augmentations ϕl(x),ϕk(x)\phi_l(x), \phi_k(x) have mild effects on estimation or help decrease the estimation variance. The analysis, therefore, yields new insights into the success of pooling augmented samples in self-supervised pre-training, and provides an intuition behind the practical preference towards using many augmentations.

1 Introduction

The modern paradigm of self-supervised learning (SSL)—a.k.a. self-supervised pre-training—aims to learn low-dimensional representations of complex unlabeled data (e.g., image, text, speech) which can be subsequently leveraged in downstream prediction tasks; importantly the approach aims to reduce the demand for labeled downstream data by training on the learned low-dimensional space (usually a layer of a neural network). Quite interestingly, despite relying solely on unlabeled data, these approaches have been quite successful in practice, while theoretical insights on why they work remain fledgeling.

For intuition, given an unlabeled dataset X={Xi}i∈[m]⊂Rd1\mathbb{X} = \{X_i\}_{i \in [m]} \subset \mathbb{R}^{d_1}, SSL often relies on multiple views of each XiX_i, i.e., transformations ϕl(Xi),l∈[L]\phi_l(X_i), l \in [L] which downstream prediction tasks are expected to remain invariant to. For example, a so-called augmentation function ϕl(⋅)\phi_l(\cdot) may denote masking of pixel ll of an image, or adding noise to the ll-th Fourier component of a speech signal: intuitively, such transformation ϕl(X)\phi_l(X) would typically not change the evident YY label for XX (i.e., object in an image, word in speech, etc, [1, 2]). The augmented dataset S≐{ϕl(Xi)}i∈[m],l∈[L]\mathcal{S} \doteq \{\phi_l(X_i)\}_{i \in [m], l \in [L]} is subsequently used to learn a suitable lower complexity representation of XX: e.g., minimize (over possible embedding spaces V\mathcal{V} in a fixed family), an objective of the form r^(V)≐∑i∈[m]∑l∈[L]ℓV(Xi,ϕl(Xi))\widehat{r}(\mathcal{V}) \doteq \sum_{i \in [m]} \sum_{l \in [L]} \ell_{\mathcal{V}}(X_i, \phi_l(X_i)), for some loss ℓV\ell_{\mathcal{V}} that forces xx and ϕl(x)\phi_l(x) to yield similar embeddings into V\mathcal{V}. We note that, to avoid trivial solutions (e.g., a constant embedding space V={0}\mathcal{V} = \{0\}, often referred to as dimension collapse) the minimization is taken over a suitable search space for V\mathcal{V} (e.g., constraining the neural architecture [2, 3]), or further regularization terms are added [1, 4, 5]. Furthermore, other variations are possible, i.e., rather than seeking embeddings of ϕl(Xi)\phi_l(X_i) close to XiX_i, other losses instead force embeddings of ϕl(Xi)\phi_l(X_i) close to that of other views ϕl′(Xi)\phi_{l'}(X_i). While we do not directly work with any of these objectives, we focus our discussion on the form r^(V)\widehat{r}(\mathcal{V}) above, which generically captures the main questions of concern in this work, as described below.

The questions motivating this work have to do with the following important aspects of SSL which remain opaque: despite the various interdependencies between terms in r^(V)\widehat{r}(\mathcal{V}), owing to multiple views ϕl(Xi),l∈[L]\phi_l(X_i), l \in [L] of the same datapoints XiX_i, SSL approaches are very successful in practice, and even appearing to converge faster with larger LL, i.e., despite (apparently) increased dependency (as brought up, e.g., by empirical works such as [6, 7]). Yet, these perplexing empirical observations remain unresolved; emerging theoretical literature predominantly treats LL as a small constant1^1, thus bypassing the complex interaction between interdependent views, and their effect on performance. To shed some light into these questions, our analysis aims to elicit situations where performance is provably not affected by dependencies between views, or better yet, improves in both mm and LL thanks to surprisingly favorable aspects of correlations between views.

Main Contribution. We adopt a similar (idealized) formalism for the embedding space V\mathcal{V} as in some previous theoretical works on the subject: namely, we view the desired V\mathcal{V} as a low-dimensional subspace of a feature space G≐{g(x):x∈Rd1}⊆Rd\mathcal{G} \doteq \{g(x): x \in \mathbb{R}^{d_1}\} \subseteq \mathbb{R}^d, for a given feature map g:Rd1↦Rdg: \mathbb{R}^{d_1} \mapsto \mathbb{R}^d. Restricting the embedding space V\mathcal{V} to be a subspace is motivated by several lines of research that show the optimal embedding in SSL is the projection onto a subspace, as induced by the SSL objective itself (see, e.g., [11, 12]), by the optimization dynamics (see, e.g., [9, 13]), or induced inside an RKHS2^2 arising from the choice of augmentation (see [14, 8]). We consider a simplified but practically motivated setting, where we view G\mathcal{G} as a layer of a shallow neural network of the form f(x)=w⋅σ(Wx)f(x) = w \cdot \sigma(Wx) for x∈Rd1x \in \mathbb{R}^{d_1} and W∈Rd2×d1W \in \mathbb{R}^{d_2 \times d_1}. For instance, G\mathcal{G} may denote the middle layer, i.e., g(x)=σ(Wx)g(x) = \sigma(Wx), or the input layer, i.e., g(x)=xg(x) = x. We then want to estimate a subspace V\mathcal{V} of G\mathcal{G} of fixed dimension (say kk) which minimizes ∥ΠV(g(X)−g(ϕl(X)))∥2\|\Pi_{\mathcal{V}}(g(X) - g(\phi_l(X)))\|^2—i.e., the discrepancy in views upon projection (ΠV)(\Pi_{\mathcal{V}}) onto V\mathcal{V}—on average over XX and ϕl,l∈[L]\phi_l, l \in [L] (see Section 2).

In order to better understand the effects of inter-dependencies between views that arises in SSL objectives, our analysis then contrasts two approaches for learning V\mathcal{V}: on one end, we have naive pooling of S≐{ϕl(Xi)}\mathcal{S} \doteq \{\phi_l(X_i)\} via an objective of the form ∑i∈[m]∑l∈[L]∥ΠV(g(Xi)−g(ϕl(Xi)))∥2\sum_{i \in [m]} \sum_{l \in [L]} \|\Pi_{\mathcal{V}}(g(X_i) - g(\phi_l(X_i)))\|^2, i.e., involving LL dependent views per datapoint; on the other end, we consider a baseline which avoids dependencies between views by carefully partitioning XiX_i's into LL disjoint sets Xl\mathbb{X}_l to ensure a single view ϕl(Xi)\phi_l(X_i) per datapoint XiX_i. The baseline objective thus takes the form ∑l∈[L]∑X∈Xl∥ΠV(g(X)−g(ϕl(X)))∥2\sum_{l \in [L]} \sum_{X \in \mathbb{X}_l} \|\Pi_{\mathcal{V}}(g(X) - g(\phi_l(X)))\|^2.

  • We first show that naive pooling estimates the population V\mathcal{V} at a rate never worse than a natural upper-bound on the performance of the baseline (which achieves usual m\sqrt{m} rates). The analysis thus reveals a clear example of situations where inter-dependencies between views are in fact not hurtful as compared to a baseline that carefully removes such dependencies. Interestingly, these results follow easily by closely contrasting certain variance terms—derived from classical matrix concentration inequalities—corresponding to each of the pooled or baseline objectives. We refer the reader to Section 3 for a detailed overview.

  • We then show that in fact, for various common augmentations (e.g., masking, salt-and-pepper, cropping, solarization), viewed from given layers G\mathcal{G}, the number of augmentations LL allows for strictly faster rates in estimating V\mathcal{V} than the baseline upper-bound. In other words, the analysis reveals situations (based on actual practical augmentations) where indeed the number LL of views can speed up estimation. However, there is a practical caveat: the analysis does not imply one should take L→∞L \to \infty, since in fact for L≫dL \gg d, the corresponding V\mathcal{V} being learned may no longer preserve predictive features (think, e.g., of masking all dd pixels of an image). In other words, there is a range of values of LL where V\mathcal{V} is estimated faster as LL increases, which in turn improves downstream prediction, as verified in simulations on controlled and real datasets.

The latter technical results, based on actual practical augmentations, are nontrivial: the main technical difficulty resolved in our analysis is to understand the effect of cross-correlation terms (resulting from specific practical augmentations and choices of feature map gg) on estimation variance. These are detailed in Sections 4 for masking, salt-and-pepper, and polarization in that order.

Further Background and Related Works. As described above, theoretical works on SSL have generally (except for a few works we will mention below) treated the number of views LL as a constant, and therefore have avoided the intricacies of the interactions between interdependent views. Convergence rates, on various aspects of SSL (e.g.,

1^1For instance, L=2L=2, with objectives of the form 1m∑i∈[m]ℓV(ϕ1(Xi),ϕ2(Xi))\frac{1}{m} \sum_{i \in [m]} \ell_{\mathcal{V}}(\phi_1(X_i), \phi_2(X_i)), with ϕ1,ϕ2\phi_1, \phi_2 independently drawn conditioned on each XiX_i (see, e.g., [8, 9, 10]).

2^2Reproducing Kernel Hilbert Space.

estimation of a shared embedding, or downstream prediction errors) have therefore been in terms of the unlabeled pre-training sample size mm but not LL.

This is because the main focus of seminal theoretical works has primarily been on understanding how the learned embedding (V\mathcal{V} in our case) may be beneficial for downstream tasks. Various explanations have been proposed. For instance, one line of work (see e.g. [15, 16, 17, 10]) aims to establish bounds between certain SSL objectives and suitable (downstream) classification loss surrogates (in terms of conditions on how class label distributions interact with the draw of augmentations ϕl(⋅)\phi_l(\cdot)). In another line of work, [18, 19, 20] proposes that SSL may be learning a subspace where data points with different class labels are highly clusterable—in particular, distances between the embedding of a point XX and a view ϕl(X)\phi_l(X) are tied to a higher likelihood that they are of the same label. A separate line of work [21, 22] proposes that SSL might learn a latent variable space sufficient for downstream prediction, whereby a low-dimensional latent variable (say ZZ) is predictive of the class label, and assumed to be revealed by a joint distribution on X,ϕl(X)X, \phi_l(X) (viewing ϕl(⋅)\phi_l(\cdot) themselves as random objects). However, such modeling, aimed at explaining the predictive quality of the learned embedding (V\mathcal{V} in our case), is peripheral to our work. While we do justify, both empirically and theoretically, how our modeling assumptions on V\mathcal{V} translate to downstream prediction invariance (see Section 2 and Lemma 1), our main focus is on the estimation of V\mathcal{V} itself when multiple interdependent views are pooled together.

A different line of works aims to provide a unified view of SSL objectives by showing how the optimal embedding is a projection onto a subspace of a suitable linear space G\mathcal{G}. This was discussed earlier as we build of such formalism for V\mathcal{V} as a projection subspace. In particular [18, 11] argue that SSL learns specific eigenspaces or spectral projections, with [11] showing that several SSL objectives share some similarity with PCA and related spectral problems. For intuition, recall that for a random vector XX, PCA finds a projection maximizing E∥ΠVX∥2\mathbb{E} \|\Pi_{\mathcal{V}}X\|^2, while typical SSL objectives would minimize averages of terms of the form ∥ΠV(g(X)−g(ϕl(X)))∥2\|\Pi_{\mathcal{V}}(g(X) - g(\phi_l(X)))\|^2 for some base featurization g(⋅)g(\cdot). For example, g(⋅)g(\cdot) is made concrete for kernel models, deep linear networks, and wide neural networks (in the neural tangent regime) [5, 23, 24, 12, 13, 14, 8] where the target projection V\mathcal{V} corresponds to given eigenspaces of certain (kernel) operators. A further theoretical aim is then to bound downstream prediction error, assuming the downstream regression function ff belongs to (or is well aligned with) V\mathcal{V}—which we often refer to as invariance. While we adopt a similar formalism as these works, we are instead interested on the effect of the number LL of views (and interactions between interdependent views) on the error in estimating V\mathcal{V}, which also translates to bounds on downstream error under similar invariance assumptions that ff aligns with V\mathcal{V}.

Finally, we note that term self-supervised learning is sometimes colloquially used to also refer to next-token prediction in language models, which in a sense, is more of a supervised problem; our work does not apply in such settings.

References (26)