betaFeedback

WorksComputer Science

Dataset-Level Regularization for Joint-Embedding Self-Supervised Learning

Abstract

Self-supervised joint embedding learning aligns representations of augmented views while regularizing their distribution to prevent collapse. Regularization aims to shape the overall representation distribution, but most joint embedding methods restrict its computation to the active minibatch. We propose out-of-batch regularization, which maintains a dataset-level state in CPU memory and uses globally constructed per-instance targets during minibatch training. Evaluated on natural images and biomedical datasets, these anchors approximate the full-dataset regularization gradient more faithfully than conventional minibatch estimation at small batch sizes. Applications to contrastive (SimCLR) and non-contrastive (SIGReg) approaches show consistent improvement over the corresponding in-batch objectives for image classification, minority-class performance under controlled imbalance, instance retrieval, and continued self-supervised pretraining, with the largest gains at small batch sizes. These results suggest that dataset-level regularization can be decoupled from minibatch optimization, making batch size an optimization choice that does not affect the geometry of the regularizer.

Introduction

Joint-embedding architectures (JEAs) ([12, 23, 10, 6]) have been the dominant paradigm for visual self-supervised representation learning. Applications range from 3D medical image analysis ([37]) to 3D scene reconstruction ([39]) and vision–language alignment ([32]). They use augmentations to create a pretraining objective based on view invariance. Anti-collapse regularization complements this objective to prevent trivial solutions ([13]). While different regularization mechanisms have been proposed over the years, most of them act on the embeddings of the current minibatch (or a few recent batches with EMA) that might be too small to represent the dataset under memory or optimization constraints.

The bottleneck is particularly relevant for high-dimensional inputs, including high-resolution images and 3D volumes, where each sample requires more activation memory. Such applications are thus often limited to small-batch training. The problem worsens for imbalanced data, where rare classes may contribute only a few examples to each batch ([26]). The simple solution of using a larger batch is constrained by hardware ([21]), and even when a large batch is possible, it may not be ideal for optimization. On small datasets, using a large fraction of the training samples per batch leaves few parameter updates per epoch. Masters & Luschi [29] also report that larger batches can require more careful choice of the learning rate and training duration. The batch size needed to estimate a population regularizer can therefore differ from the best batch size for optimization.

We propose a framework that moves the statistical context of SSL regularizers from the active batch to the dataset-level state. We maintain a detached, dataset-indexed state in CPU memory. A periodic refresh encodes the training set and constructs globally optimized targets, while online steps retrieve only the current samples’ targets (Figure 1). Thus, the support of the anti-collapse component is no longer limited by the batch size or GPU capacity.

Figure 1. Minibatch and OOB regularization. (a) In-batch methods estimate the anti-collapse term from active samples at each step. (b) OOB regularization periodically encodes the dataset, constructs detached per-instance anchors, and retrieves the anchors indexed by the online minibatch.

Our main contributions are:

  • We introduce OOB regularization, where offline, dataset-level targets act as per-instance anchors during online training, and derive contrastive (CONTRASTIVE-OOB) and non-contrastive (SIGREG-OOB) instances of this construction.

  • We formulate anti-collapse as estimation of a finite population gradient and measure minibatch error and cache staleness on 19 real datasets. The analysis also separates gradient-estimation error from population reweighting under class imbalance.

  • Across natural images and 2D/3D biomedical data, the OOB variants yield positive mean gains over their matched in-batch objectives in image classification evaluated by kNN and linear probes. The gains are largest at small batch sizes and extend to minority-class recall, instance retrieval, and continued pretraining.

Related Work

Collapse prevention in joint embedding training. Joint-embedding methods must preserve informative variation while aligning views. Contrastive objectives achieve this through negative-sample repulsion [30, 12], linking alignment to hyperspherical uniformity for normalized representations [40]. To avoid explicit negatives, Barlow Twins and VICReg constrain correlations and moments [47, 6], while SIGReg matches projected distributions to a Gaussian [5]. Other approaches prevent collapse through balanced assignments in SwAV [9] or asymmetry, teachers, and stop-gradient in BYOL, DINO, and SimSiam [23, 10, 13]. These approaches establish how to prevent collapse, but they have to assume that the active batch is representative of the dataset.

Cross-batch state and global objectives. Reusing representations across updates expands batch context. MoCo’s momentum-encoder queue [25, 14], instance discrimination’s memory bank [42], and cross-batch memory [41] expand the pool of negative samples. NNCLR uses stored embeddings to find positive neighbors [19]. Chen et al. [11] argues that minibatch contrastive gradients can be biased, motivating global-objective optimization through per-image moving averages in SogCLR [46] and MCMC negative sampling in EMC² [44]. Decoupled Contrastive Learning reduces batch sensitivity by removing positives from the denominator [45]. OOB instead performs population regularization periodically and retrieves per-instance targets for online attraction, avoiding cross-instance comparisons in the online regularizer.

Assigned targets and dataset-indexed representations. Constructing targets separately from encoder updates also provides broader context. Noise-vector assignment [7], dataset-feature clustering [8], and balanced self-labeling through optimal transport [2] organize representation learning around assigned targets. Our anchors instead retain per-instance correspondence and are reconstructed from current representations under a specified continuous geometry. DIET also uses sample identity, predicting datum indices as classes [4]. IConE, the conceptually closest recent approach [1], separates collapse prevention from encoder alignment through a jointly optimized N×dN \times d table of auxiliary instance embeddings. Its regularization maintains a persistent global parameter space during training and evaluates an N×NN \times N similarity matrix each step. OOB instead periodically constructs detached per-instance targets from a chosen population-level regularizer, stores these targets in CPU memory, and retrieves only those required by the active minibatch. This decouples online training from the global computation while supporting different regularizers.

Method

To give small-batch training access to dataset-wide regularization, we construct anti-collapse anchors from the full dataset and use them to update the encoder. We first formulate this separation, instantiate it with spherical (contrastive) and Gaussian (non-contrastive) anchors, and then define a full-dataset gradient reference for comparing minibatch estimation with cached regularization.

Alignment and population regularization

We use mutual information as an organizing view of alignment and anti-collapse, without assuming that joint-embedding methods directly optimize it. For representations Z1Z_1 and Z2Z_2 of related views, the mutual information (MI) identity [36] gives

I(Z1;Z2)=H(Z1)−H(Z1∣Z2).(1)I(Z_1; Z_2) = H(Z_1) - H(Z_1 \mid Z_2). \tag*{(1)}

This identity motivates two complementary roles in JEA losses: alignment reduces uncertainty between views, while anti-collapse keeps the marginal representation informative. Representation quality nevertheless depends on more than MI [38].

Let D={xi}i=1N\mathcal{D} = \{x_i\}_{i=1}^{N} be a dataset of unlabeled inputs, and let fθf_\theta map an input to its representation. For a sample xx drawn uniformly from D\mathcal{D}, let t1,t2t_1,t_2 be independently sampled transformations from an augmentation family T\mathcal{T}, producing views t1(x)t_1(x) and t2(x)t_2(x). A broad JE-SSL objective is

LSSL−JE(θ)=Ex,t1,t2[Lalign(fθ(t1(x)),fθ(t2(x)))]+λR(Pθ),(2)\mathcal{L}_{\mathrm{SSL-JE}}(\theta) = \mathbb{E}_{x,t_1,t_2}\left[\mathcal{L}_{\mathrm{align}}\left(f_\theta(t_1(x)), f_\theta(t_2(x))\right)\right] + \lambda\mathcal{R}(P_\theta), \tag*{(2)}

where PθP_\theta is the distribution of fθ(t(x))f_\theta(t(x)) induced by sampling inputs and augmentations.

In practice, a regularizer sees a finite set of representations. Writing zi=fθ(t(xi))z_i = f_\theta(t(x_i)), the empirical distributions of an active minibatch B\mathcal{B} of size BB and the full training set are

P^B=1B∑i∈Bδzi,P^N=1N∑i=1Nδzi.(3)\widehat{P}_{B} = \frac{1}{B}\sum_{i \in\mathcal{B}}\delta_{z_i}, \qquad\widehat{P}_{N} = \frac{1}{N}\sum_{i=1}^{N}\delta_{z_i}. \tag*{(3)}

Here δzi\delta_{z_i} is a unit point mass at ziz_i, giving each included representation equal probability. Standard in-batch training evaluates R(P^B)\mathcal{R}(\widehat{P}_{B}) in place of the population term in eq. (2). Our aim is to supply online updates with the broader context of R(P^N)\mathcal{R}(\widehat{P}_{N}) without recomputing it through the encoder at every step. We therefore construct dataset-level anchors periodically and use a separable sample-to-anchor loss between refreshes.

A refresh-and-train interface

Let zi(v)z_i^{(v)} denote the representation of augmented view vv of sample ii. Our OOB methods optimize

LOOB=λalignLalign+λacLacOOB,(4)\mathcal{L}_{\mathrm{OOB}}=\lambda_{\mathrm{align}}\mathcal{L}_{\mathrm{align}}+\lambda_{\mathrm{ac}}\mathcal{L}_{\mathrm{ac}}^{\mathrm{OOB}}, \tag*{(4)}

where Lalign\mathcal{L}_{\mathrm{align}} maximizes view invariance and LacOOB\mathcal{L}_{\mathrm{ac}}^{\mathrm{OOB}} attracts each representation to its dataset-indexed anchor. To implement Lalign\mathcal{L}_{\mathrm{align}}, we maximize cosine similarity between embeddings produced by different views of the same instance. To compute LacOOB\mathcal{L}_{\mathrm{ac}}^{\mathrm{OOB}}, at refresh rr, the current encoder processes one view of every training sample. A population operation (§ 3.3 and § 3.4) converts outputs into detached anchors A(r)={ai(r)}i=1NA^{(r)}=\{a_i^{(r)}\}_{i=1}^{N}, which are stored in CPU memory. For an online minibatch B\mathcal{B}, only its indexed rows are moved to the GPU (Table 1):

Refresh phase
1Run inference in minibatches over the entire dataset, collecting one view representation per sample.
2After the full inference pass, construct ai(r)a_i^{(r)} jointly from all NN representations.
3Detach A(r)A^{(r)} and store it by sample index in CPU memory.
Online phase, repeated until the next refresh
4Sample B\mathcal{B} and VV augmented views per sample.
5Retrieve {ai(r):i∈B}\{a_i^{(r)}:i\in\mathcal{B}\} and evaluate eq. (4).
6Update encoder and projector parameters; keep anchors fixed.

Table 1. OOB training separates global target construction from online parameter updates.

LacOOB=1BV∑i∈B∑v=1Vdg(hr(zi(v)),ai(r)).(5)\mathcal{L}_{\mathrm{ac}}^{\mathrm{OOB}}=\frac{1}{BV}\sum_{i\in\mathcal{B}}\sum_{v=1}^{V}d_g\left(h_r\left(z_i^{(v)}\right),a_i^{(r)}\right). \tag*{(5)}

Here dgd_g measures discrepancy from the anchor using MSE across projections for Gaussian anchors, or cosine distance for L2L_2-normalized spherical anchors; hrh_r applies refresh-fixed projections (Gaussian anchors) or L2L_2 normalization (spherical anchors). Gradients pass through ziz_i, but not through the anchors, and the online anti-collapse term requires no relationship among samples in B\mathcal{B}.

SIGReg-OOB: projected Gaussian anchors

SIGREG-OOB constructs a Gaussian target through one-dimensional rank transport assignment to a fixed Gaussian quantile grid ([20]). At refresh, choose unit directions v1,…,vMv_1,\ldots,v_M. For sim=vm⊤zis_{im}=v_m^\top z_i, sort all NN samples and assign the rank-kk sample to

γk=Φ−1(k+1/2N),k=0,…,N−1.(6)\gamma_k=\Phi^{-1}\left(\frac{k+1/2}{N}\right),\qquad k=0,\ldots,N-1. \tag*{(6)}

If rimr_{im} is the rank of sample ii along mm, its cached coordinate is qim=γrimq_{im}=\gamma_{r_{im}}. The online term is

LacSIGReg-OOB=1BVM∑i∈B∑v=1V∑m=1M(vm⊤zi(v)−qim)2.(7)\mathcal{L}_{\mathrm{ac}}^{\mathrm{SIGReg\text{-}OOB}}=\frac{1}{BVM}\sum_{i\in\mathcal{B}}\sum_{v=1}^{V}\sum_{m=1}^{M}\left(v_m^\top z_i^{(v)}-q_{im}\right)^2. \tag*{(7)}

Refresh inference uses GPU, while the MM sorts and the N×MN\times M target table are computed on CPU. We resample the projection directions at each refresh. Our SIGREG baseline uses the same sorted-quantile targets computed in the batch, rather than the Epps-Pulley statistic ([5]), so we keep the same regularizer. We ablate SIGREG-OOB hyperparameters in section A.4.

Contrastive-OOB: spherical anchors

For contrastive learning, anchors lie on the unit sphere. Starting from the normalized refresh representations zˉi(r)\bar{z}_i^{(r)}, we define the population target by

U(A)=log⁡[1N(N−1)∑i≠je−τu∥ai−aj∥22],(8)\mathcal{U}(A)=\log\left[\frac{1}{N(N-1)}\sum_{i\ne j}e^{-\tau_u\lVert a_i-a_j\rVert_2^2}\right], \tag*{(8)}
A(r)≈arg min⁡A∈(Sd−1)N U(A)+λfN∑i(1−ai⊤zˉi(r)).(9)A^{(r)}\approx\underset{A\in(\mathbb{S}^{d-1})^N}{\operatorname{arg\,min}}\ \mathcal{U}(A)+\frac{\lambda_f}{N}\sum_i\left(1-a_i^\top\bar{z}_i^{(r)}\right). \tag*{(9)}

The first term favors a globally spread spherical population [40]; the second preserves anchor–sample correspondence. With ui(v)=zi(v)/∥zi(v)∥2u_i^{(v)} = z_i^{(v)} / \lVert z_i^{(v)} \rVert_2, online training uses

LacContrastive-OOB=1BV∑i∈B∑v=1V(1−ui(v)ai(r)).(10)\mathcal{L}_{\mathrm{ac}}^{\mathrm{Contrastive\text{-}OOB}} = \frac{1}{BV} \sum_{i\in\mathcal{B}}\sum_{v=1}^{V} \left(1-u_i^{(v)}a_i^{(r)}\right). \tag*{(10)}

We optimize Eq. (9) stochastically, avoiding all N(N−1)N(N-1) pairs. Each of 20 steps evaluates all pairs among up to 256 sampled anchors. The first refresh initializes from the source plus small Gaussian noise. SimCLR obtains spherical spreading from minibatch negatives, while MoCoV2 extends its negative support with a momentum queue. CONTRASTIVE-OOB instead performs repulsion during anchor construction and uses only sample-to-anchor attraction online, without in-batch negatives or a momentum encoder. This preserves the intended spherical spreading geometry that contrastive learning imposes. For specific training settings, see section A.3.

Comparing minibatch and cached gradients

Having defined the training methods, we compare a minibatch estimate and a cached estimate against the same full-dataset gradient at the current encoder state. Differential entropy is a property of the underlying distribution, but training provides only a finite set of encoder outputs. Practical methods optimize finite-sample surrogates that spread or decorrelate these outputs. Using the full empirical distribution in eq. (3), the reference for a chosen surrogate is its full empirical gradient

gi∗=∇ziR(P^N).(11)g_i^* = \nabla_{z_i} \mathcal{R}(\widehat{P}_N). \tag*{(11)}

We call gi∗g_i^* the oracle gradient. It is the representation-space direction supplied by the chosen regularization when that surrogate sees the complete empirical population. Minibatch gradient bias for contrastive objectives has been established in prior work [11, 46], but here we compare representation-space gradients for a fixed finite-population regularizer. The standard minibatch estimator substitutes the active empirical distribution P^B\widehat{P}_B:

g^i,B=∇ziR(P^B).(12)\widehat{g}_{i,B} = \nabla_{z_i} \mathcal{R}(\widehat{P}_B). \tag*{(12)}

An OOB estimator instead constructs dataset state Ct0={ci}i=1NC_{t_0} = \{c_i\}_{i=1}^{N} at refresh step t0t_0 and later uses

g~i,t=∇ziLac(z~i,ci),t≥t0.(13)\widetilde{g}_{i,t} = \nabla_{z_i}\mathcal{L}_{\mathrm{ac}}(\widetilde{z}_i,c_i), \qquad t \ge t_0. \tag*{(13)}

We measure directional agreement of cached and minibatch approximations with the oracle using cosine similarity and scale-sensitive error using rRMSE.

Computing the reference and its estimators. All three estimators differentiate the same error between projected representations and Gaussian quantile targets (SIGReg, SIGREG-OOB). The oracle ranks the full current dataset, the minibatch estimator ranks each probe within sampled batches of size BB, and the cached estimator reuses full-dataset assignments from refresh step t0t_0. At cache age ss, we recompute the oracle using the current encoder at t0+st_0+s, so the comparison measures staleness against the current population. Experimental results are in § 4.2.

Separating estimation from population weighting. Class imbalance also leads to the desired representation prior not matching the data’s class proportions [3]. If class cc has NcN_c samples, the empirical population weights it by Nc/NN_c/N. To separate estimator error from the weighting, we sample another population in a label-aware manner for evaluation:

P^bal=1C∑c=1C1Nc∑i:yi=cδzi.(14)\widehat{P}_{\mathrm{bal}} = \frac{1}{C}\sum_{c=1}^{C}\frac{1}{N_c}\sum_{i:y_i=c}\delta_{z_i}. \tag*{(14)}

Comparing its gradient with the empirical-population gradient separates a change in the objective’s weighting from an error in estimating a fixed objective. Gradient comparisons and downstream imbalance results appear in § 4.4.

Results

We examine gradient-estimation accuracy (§ 4.2), frozen classification performance across batch sizes (§ 4.3), population weighting and minority-class recall under imbalance (§ 4.4), instance retrieval (§ 4.5), adaptation of pretrained encoders (§ 4.6), and performance under GPU-memory constraints (§ 4.7).

Datasets

We experiment on natural and scientific/biomedical images: CIFAR-10/100 ([27]), DTD ([15]), STL-10 ([16]), ImageNet-100, Imagenette, and Imagewoof ([17]); BBBC010 ([28]), twelve 2D and six 3D MedMNIST datasets ([43]), and a private plankton dataset imaged with widefield microscopy. Here we present aggregate results, see section C for complete dataset-level results and size sweeps.

Oracle gradient analysis

Using the fixed objective from section 3.5, we compare minibatch sampling error with cache staleness at training checkpoints. Figure 2A–B shows that limited batch context can change the direction of regularization and can produce gradients that oppose the full-dataset objective. As batch size gets bigger, its regularization gradient agrees more with the oracle. A fresh cache recovers the oracle exactly, but its agreement deteriorates as the encoder changes (Figure 2C–D). This deterioration is slower at later checkpoints, where cached gradients remain informative across more online updates. The results confirm that minibatch and cached estimators face different limitations: incomplete population context versus temporal staleness. When training with small batches, periodic dataset-level regularization is clearly beneficial, while the update schedule should depend on the training stage.

Figure 2. Minibatch and cached gradient agreement with the full-dataset reference.

Image classification across batch sizes

Evaluation protocol. We compare each OOB method with its corresponding baseline: SIGREG-OOB with SIGREG, and CONTRASTIVE-OOB with SimCLR and MoCoV2. Within a comparison, we keep the data split, augmentations, number of views, backbone, projector, optimizer, learning rate schedule, and evaluation fixed. The 2D experiments use a ViT backbone ([18]); 3D experiments use a 3D ResNet ([24]) and training lasts 100 epochs. Frozen representations are evaluated by k-NN and linear probe ([42, 12]). We use three independent seeds. In-batch baselines are omitted at B=1B=1, because anti-collapse regularization based on a single-sample batch is either undefined or statistically uninformative. OOB methods encode dataset-level state and remain well defined. Training details are in section A.2.

Results. The low-batch regime shows the clearest separation (Figure 3). Averaged over small batch sizes, SIGREG-OOB improves 5-NN/linear probe performance over SIGREG by 14.17/12.89pp on natural images, while CONTRASTIVE-OOB improves over SimCLR by 10.83/6.58pp on biomedical data. On 3D volumes, both OOB methods retain positive mean gains, showing that the effect is not tied to a 2D encoder.

Figure 3. Image classification results using linear probes and 5-NN.

Complete paired aggregates are in Table 2. Section C adds comparisons with other baselines like IConE, BYOL, DINO, SwaV and VICReg. Section C.1 contains representation metrics like RankMe and effective-rank [22, 35].

BenchmarkSIGREG 5-NNSIGREG LinearSIGREG-OOB (Ours) 5-NNSIGREG-OOB (Ours) LinearSimCLR 5-NNSimCLR LinearCONTRASTIVE-OOB (Ours) 5-NNCONTRASTIVE-OOB (Ours) Linear
Natural images34.6345.5548.80 (+14.17)58.44 (+12.89)50.2159.3552.50 (+2.29)59.49 (+0.14)
2D biomedical57.4567.4462.21 (+4.76)72.84 (+5.40)50.0063.5560.83 (+10.83)70.13 (+6.58)
3D biomedical51.3955.8955.61 (+4.22)63.95 (+8.06)51.7657.5255.47 (+3.71)61.78 (+4.26)

Table 2. Classification balanced accuracy (%). Parentheses show OOB gains in percentage points.

Population weighting and minority classes under imbalance

Oracle diagnostic. Class-balanced reference eq. (14) is used to distinguish estimator error from the choice of population weighting. The exact empirical gradient for minority probes diverges from the class-balanced gradient as minority classes are downsampled (Figure 4). A cached empirical estimator tracks the empirical objective closely and a cache built with class-balanced targets tracks the class-balanced oracle. OOB state solves the estimation problem, but not class imbalance. When class information is available, population weighting can be used as a hyperparameter.

Figure 4. Empirical and class-balanced gradient agreement under class imbalance.

Downstream evaluation. Having separated these effects, we test whether OOB anchors improve minority-class representations without using labels during training. We create imbalanced MedMNIST variants by downsampling some classes by kk. We report macro-average recall over downsampled classes using the same held-out split for matched methods. Across different batch sizes, SIGREG-OOB gains 6.24 points in 5-NN minority recall and 8.6 points in linear minority recall over SIGREG. CONTRASTIVE-OOB gains 10.69 and 10.28 points over SimCLR. The gains remain positive across the downsampling sweep (Figure 5). These downstream results complement Figure 4: an empirical OOB cache does not rebalance the population, but it gives each rare sample a global context that is often absent from its minibatch. Full 2D/3D per-dataset results, worst-class recall, and minority–majority gaps are in section D.

Figure 5. Minority-class recall under controlled class imbalance.

Instance retrieval

We next test whether the learned space preserves instance neighborhoods in addition to the class boundaries. After pretraining, we retrieve with cosine similarity between frozen features. We report mean average precision (mAP) over three seeds and show the four nearest neighbors of the same query by each method (Figure 6). Across our experiments, SIGREG-OOB improves mAP over SIGREG by 13.1 points. CONTRASTIVE-OOB improves over SimCLR/MoCoV2 by 13.7/7.6 points, at a given batch size. Recall@1/5/10 and more retrieval evaluations are in section E.

Figure 6. Instance-retrieval mAP and example nearest neighbors.

Continued self-supervised pretraining

Continued SSL pretraining adapts an existing model to a target domain ([33, 34]). Small batches can make a larger pretrained encoder feasible during domain adaptation. We train DINOv2 ([31]) of several sizes on our datasets, without labels.

Table 3 shows that the OOB methods outperform their corresponding in-batch variants across most configurations. The advantage is clearest at small batches, where OOB regularization improves on the pretrained initialization while in-batch training can degrade representation quality. These results support using OOB regularization to adapt large pretrained encoders when memory limits the training batch size. Complete scores, linear-probe results, and all batch sizes are in section F.

DatasetEncoderOriginalSIGREG-OOB (Ours) B=2B=2SIGREG-OOB (Ours) B=8B=8SIGREG-OOB (Ours) B=64B=64SIGREG B=2B=2SIGREG B=8B=8SIGREG B=64B=64CONTRASTIVE-OOB (Ours) B=2B=2CONTRASTIVE-OOB (Ours) B=8B=8CONTRASTIVE-OOB (Ours) B=64B=64SimCLR B=2B=2SimCLR B=8B=8SimCLR B=64B=64
BloodMNISTS (22M)92.0+6.6+6.7+6.8-6.5+6.7+6.0+6.1+6.2+5.8+1.6+6.7+6.5
BloodMNISTB (86M)90.1+8.8+8.6+8.6-5.7+8.7+8.4+8.0+8.4+8.1+4.1+8.7+8.7
BloodMNISTL (304M)89.4+9.3+9.4+9.3-4.6+9.4+9.0+9.1+8.9+9.5+2.5+9.4+9.2
BloodMNISTG (1.1B)93.0+5.3+5.1+5.8-6.8+5.8+5.3+2.8-5.6+3.7+3.6+5.5+5.7
OrganAMNISTS (22M)85.7+7.1+6.1+5.9+0.9+8.0+4.1+8.7+8.2+8.1-15.9+4.6+4.7
OrganAMNISTB (86M)84.0+10.4+8.6+7.1-0.4+8.7+4.6+10.6+10.5+10.3-18.0+7.1+6.3
OrganAMNISTL (304M)79.3+15.1+14.3+12.0+0.8+13.0+9.5+14.0+15.2+15.6-15.0+10.9+10.5
OrganAMNISTG (1.1B)80.0+14.0+13.1+11.6+10.1+12.3+9.6+13.5+11.2+11.9-8.9+11.3+12.1
OrganCMNISTS (22M)81.2+1.7+4.5+4.0-5.9+4.1+2.7+6.8+6.8+4.7-12.2+3.2+0.9
OrganCMNISTB (86M)77.3+6.5+7.7+6.6-0.1+7.5+6.0+9.3+11.9+9.1-16.5+7.3+5.1
OrganCMNISTL (304M)76.3+8.3+7.9+8.3-0.2+7.7+5.6+10.1+13.9+12.3-7.0+7.2+4.9
OrganCMNISTG (1.1B)74.1+11.1+10.6+8.8+10.7+10.6+7.7+13.4+12.0+12.3-3.2+11.3+6.6
PathMNISTS (22M)94.8+2.5+2.6+2.9-7.6+1.0+1.9+1.3+2.2+2.1-9.4+1.8+1.9
PathMNISTB (86M)94.0+3.5+3.6+3.6-9.6+2.5+2.6+2.2+2.9+2.7-6.0+3.2+3.6
PathMNISTL (304M)93.7+4.0+3.2+4.6-14.1+3.0+3.3+2.3+2.3+3.1-3.7+3.8+3.8
PathMNISTG (1.1B)95.5+1.5+2.2+2.2-13.9+0.9+1.2-1.5-6.7-1.8-2.3+1.6+2.3

Table 3. Continued pretraining of DINOv2 and 5-NN of adapted models relative to original.

Performance under a memory budget

At the same batch size, OOB methods use the same GPU memory as their in-batch counterparts. Their advantage is that they perform well with much smaller batches, reducing the memory needed to obtain useful representations. We compare the best classification performance achievable within each GPU-memory budget on the datasets in section 4.1. Figure 7 shows that OOB methods can match or exceed the performance of their in-batch counterparts while using substantially less GPU memory within the evaluated range, making strong representations accessible under tighter memory budgets. Training times and detailed resource measurements are provided in section G.

Figure 7. Best classification performance under GPU-memory budgets.

Conclusion and Future Work

We introduced out-of-batch (OOB) regularization, which decouples population-level representation regularization from minibatch optimization through periodically constructed dataset-level targets. Across contrastive and non-contrastive objectives, OOB more faithfully recovers the full-dataset regularization signal and improves representation quality, particularly in cases where small minibatches poorly approximate the full population. Our results show that the active minibatch does not need to define the population over which representation geometry is regularized.

AI use statement

We used generative AI tools to polish the manuscript, assist in searching for relevant literature, and help write code. We did not use generative AI to generate research ideas or propose experiments. We reviewed the AI-assisted text and references, and independently inspected and executed the AI-assisted code to verify its correctness. We take responsibility for the final content of this work, including all text, claims, and artifacts produced with the assistance of generative AI.

Reproducibility statement

We describe the proposed algorithms in the main text and provide detailed architectures, training configurations, augmentations, hyperparameters, and evaluation protocols in the appendix to support independent reproduction of our results. We also document the hyperparameter-selection procedure and computational costs. We plan to release the code to further facilitate reproduction and comparison with our methods.

Reproducibility details

This section reports the data, optimization, augmentation, and evaluation settings used in the main experiments. Classification and retrieval results are aggregated over independent training seeds. Within each matched OOB/in-batch classification pair, we preserve the data split, augmentations, number of views, encoder, projector, optimizer, schedule, and downstream evaluator.

Datasets and evaluation protocols

Classification. The datasets used in each collection are summarized in Table 4.

CollectionDomains
Natural imagesCIFAR-10, CIFAR-100, DTD, ImageNet-100, Imagenette, Imagewoof, STL-10
2D BiomedicalBloodMNIST, BreastMNIST, DermaMNIST, OCTMNIST, OrganAMNIST, OrganCMNIST, OrganSMNIST, PathMNIST, PneumoniaMNIST, TissueMNIST, BBBC010, plankton(private)
3D BiomedicalAdrenalMNIST, FractureMNIST, NoduleMNIST, OrganMNIST, SynapseMNIST, VesselMNIST

Table 4. Datasets used in the classification and oracle experiments.

For frozen evaluation, we extract deterministic, ℓ2\ell_2-normalized backbone features and use a fixed, shuffled 70/30 train/evaluation split using one seed. We report balanced accuracy from cosine kk-NN (k∈{1,5,20}k \in\{1, 5, 20\}) and from a multinomial logistic-regression probe (linear probe). The latter is fit after standardizing each feature coordinate, with a maximum of 1000 iterations. Labels are never used during self-supervised pretraining.

Instance retrieval. The retrieval study uses COIL-100 (7200 images of 100 objects), UKBench (10,200 images of 2550 objects), and INRIA Holidays (1491 images grouped into 500 instances). Retrieval uses cosine similarity between normalized frozen features, with the query itself removed from the gallery. For a query qq with relevant gallery set GqG_q, average precision is

AP⁡(q)=1∣Gq∣∑k=1∣G∣Pq(k)1[πq(k)∈Gq],(15)\operatorname{AP}(q) = \frac{1}{\lvert G_q\rvert}\sum_{k=1}^{\lvert G\rvert} P_q(k)\mathbf{1}[\pi_q(k) \in G_q], \tag*{(15)}

where Pq(k)P_q(k) is precision at rank kk and πq(k)\pi_q(k) is the item at that rank. mAP averages AP over queries; Recall@KK is the fraction of queries with at least one relevant item among the first KK results. We run two different protocols for our experiments. The transductive protocol pretrains and retrieves on the same unlabeled collection. The held-out protocol separates instance identities with a fixed 80/20 split using one seed. All retrieval methods use the same 2D encoder, image transformations, optimizer, and evaluator as the classification experiments, with four augmented views per instance for every method.

Architectures, optimization, and augmentation

The 2D experiments use a ViT-Small/16 encoder with width 384, 12 transformer blocks, and six attention heads. Inputs are 224 ×\times 224. The 3D experiments use a 3D ResNet-18 and 64364^3 inputs. All methods train for 100 epochs with AdamW, learning rate 10−410^{-4}, weight decay 0.05, gradient clipping at norm 1, and a per-step cosine schedule ending at 10−610^{-6}. We use the PyTorch AdamW defaults (β1,β2)=(0.9,0.999)(\beta_1, \beta_2) = (0.9, 0.999) and ϵ=10−8\epsilon= 10^{-8}. From-scratch training uses fp32, with each experiment run on a single NVIDIA L40S GPU.

Method-specific hyperparameters and cost

Both OOB methods use a fixed refresh period of 0.5 epoch. Refresh inference is batched independently of online training, with batch size 64 in 2D and 16 in 3D. SIGReg-OOB requires one deterministic dataset pass followed by O(Mlog⁡N)O(M \log N) CPU sorting. Its persistent fp32 cache contains NMNM scalars. CONTRASTIVE-OOB performs 20 stochastic anchor updates, each using all pairs within a sampled subset of at most 256 anchors, while its persistent cache contains 128N128N scalars. The caches live in CPU memory, and only the rows indexed by the active minibatch are transferred to the GPU. At N=13,000N = 13{,}000, these caches occupy 12.7 MiB and 6.3 MiB, respectively. Cache construction adds wall time but does not increase the online training batch’s activation memory. Details about training setup of baselines and our methods are reported in Table 6, while the augmentations we use are described in Table 5.

ModalitySpatial transformsAppearance and normalization
2DRandom resized crop to 224 (scale 0.20.2–1.01.0); horizontal flipColor jitter (0.4, 0.4, 0.4, 0.1), p=0.8p = 0.8; grayscale, p=0.2p = 0.2; Gaussian blur (kernel 23, σ∈[0.1,2.0]\sigma\in[0.1, 2.0]); ImageNet normalization
3DRandom resized crop to 64364^3 (scale 0.50.5–1.01.0); independent axis flips, p=0.5p = 0.5; random 90∘90^\circ rotation in one plane, p=0.5p = 0.5Intensity shift in [−0.1,0.1][-0.1, 0.1]; contrast in [0.8,1.2][0.8, 1.2]; Gaussian noise (σ=0.1\sigma= 0.1), p=0.3p = 0.3; 333^3 average-pool blur, p=0.3p = 0.3

Table 5. Augmentation pipelines used for self-supervised training.

MethodConfiguration
SIGReg-OOBThree-layer MLP projector with 2048-dimensional hidden and output layers, LayerNorm and ReLU after each non-final layer; M=256M = 256 projections; (λalign,λac)=(5,1)(\lambda_{\mathrm{align}}, \lambda_{\mathrm{ac}}) = (5, 1); projection directions resampled at every refresh.
SIGREGThe same 2048-dimensional projector
CONTRASTIVE-OOBTwo-layer ReLU projector with one backbone-width hidden layer and 128-dimensional output anchors; (λalign,λac)=(1,1)(\lambda_{\mathrm{align}}, \lambda_{\mathrm{ac}}) = (1, 1); 20 anchor updates with Adam at learning rate 0.05; sampled anchor subset 256; τu=2\tau_u = 2, λf=0.1\lambda_f = 0.1, and previous-cache mixture weight 0.5.
SimCLRThe same two-layer 128-dimensional projector, normalized output, four augmented views in the classification experiments, and temperature 0.5.
MoCoV2Two-layer 128-dimensional query/key projectors, four augmented views, queue size 4096, encoder momentum 0.999, and temperature 0.2.

Table 6. Method-specific settings used in the principal experiments.

Ablations of the SIGReg-OOB configuration

We ablate the components of SIGReg-OOB on seven 2D natural/scientific domains and batches 1–64. The study comprises 1,792 evaluations from 39 configurations over 48 dataset–batch matched experiments, covering projection resampling, refresh period, the alignment and anti-collapse weights, and the number of projections. Since the sweep is not a full Cartesian product, we form controlled slices in which one factor changes while the remaining settings are held fixed. Within each slice, we retain only dataset–batch experiments shared by every variant.

The resampling, refresh-period, and alignment-weight ablations use the common configuration p=0.5p = 0.5, λalign=5\lambda_{\mathrm{align}} = 5, λac=1\lambda_{\mathrm{ac}} = 1, and M=256M = 256, omitting the factor being varied. The anti-collapse-weight slice fixes (p,λalign,M)=(2,25,512)(p, \lambda_{\mathrm{align}}, M) = (2, 25, 512), and the projection-count slice fixes (p,λalign,λac)=(2,25,5)(p, \lambda_{\mathrm{align}}, \lambda_{\mathrm{ac}}) = (2, 25, 5); projection resampling is enabled in both.

Figure 8 shows mean downstream linear-probe balanced accuracy. Projection resampling produces the largest improvement. A refresh period of 0.5 epoch performs best, while one epoch remains close and overly frequent refreshes are not beneficial. The intermediate alignment weight is preferable to either extreme, and increasing the anti-collapse weight or the number of projections does not improve the matched slices. These results indicate that maintaining diverse, periodically updated targets and balancing the two loss terms matter more than increasing the raw number of projections.

Figure 8. Controlled ablations of SIGReg-OOB. Each factor varies within a matched slice, and bars report mean linear-probe balanced accuracy over the dataset–batch cells shared by all values in that group.

Oracle-gradient protocol

The oracle study differentiates the projected-Gaussian anti-collapse loss with respect to each probe representation. Consequently, every “gradient” is a vector in representation space, not the scalar loss and not the full network parameter gradient. The full-dataset reference recomputes ranks and Gaussian quantile assignments from the current representations of every training sample. The minibatch estimator computes the same construction from a sampled batch, whereas the cached estimator reuses full-dataset assignments made at an earlier encoder state. At every cache age, the reference itself is recomputed at the current encoder state; cached agreement is therefore measured against the current population objective rather than against the reference at refresh.

The canonical experiment uses all 2D and 3D datasets considered in this study. We evaluate checkpoints at epochs 0, 50, and 100 over three seeds. Each condition uses 16 probe samples, 16 sampled contexts, and 256 projection directions. Minibatch sizes are 1–64 and cache ages are s∈{0,1,2,4,8,16,32,64,128}s \in\{0, 1, 2, 4, 8, 16, 32, 64, 128\} optimizer updates. Direction is measured by gradient cosine similarity, and scale-sensitive disagreement by relative root-mean-square error.

At B=1B = 1, mean cosine agreement at epochs 0, 50, and 100 is respectively −0.047-0.047, −0.417-0.417, and −0.362-0.362; at B=64B = 64 it rises to 0.972, 0.903, and 0.939. A fresh cache agrees exactly by construction. At age 128, mean cached agreement at the default learning rate is 0.453, 0.720, and 0.912 across the three checkpoints. At the matched low-rate control (10−610^{-6}), the values are 0.692, 0.909, and 0.906, with the largest improvements at epochs 0 and 50. Cache lifetime is therefore controlled by how rapidly the encoder is updated, not by update count alone.

Figure 9 verifies that the ordering between limited batch context and fresh dataset-level context is not an artifact of a single dataset size. The oracle remains a reference for estimating this chosen finite-population regularizer.

Figure 9. Robustness of the oracle comparison to dataset size. The MedMNIST sweep uses 500, 1k, 2k, and 5k training examples. Panels A and C evaluate the minibatch estimator, while B and D follow global-cache lifetime at epochs 50 and 100, respectively.

Detailed frozen-classification results

Figure 10 summarizes the controlled 2D MedMNIST size sweep. The advantage of OOB regularization is largest at small batches and persists as the number of training examples grows. Table 7 and Table 8 report the per-dataset results after averaging over a common set of batch sizes. The 2D biomedical and 3D tables average B∈{2,4,8,16,32,64}B \in\{2, 4, 8, 16, 32, 64\}, while the natural-image table averages B∈{2,4,8,16,32}B \in\{2, 4, 8, 16, 32\}. The full ImageNet-100 row instead averages its available batches 64 and 128. Each entry gives 5-NN and linear-probe balanced accuracy, in that order.

Figure 10. Frozen classification across MedMNIST training-set sizes. Shading denotes one standard deviation across training seeds.

DatasetSIGRegSIGReg-OOBSimCLRMoCoV2Contrastive-OOBVICRegIConEIConE-SIGRegBYOLSwAVDINO
BloodMNIST82.484.468.968.178.276.381.180.872.975.772.6
BreastMNIST71.372.566.665.272.070.968.868.567.868.165.5
DermaMNIST54.760.050.948.659.552.445.245.249.149.346.3
OCTMNIST48.252.641.239.341.848.942.944.241.543.838.2
OrganAMNIST61.070.754.352.866.961.073.172.655.256.852.5
OrganCMNIST58.965.651.247.863.564.370.971.550.251.653.0
OrganSMNIST55.356.446.844.456.052.955.255.847.248.046.6
PathMNIST70.476.568.070.974.474.066.065.568.272.164.2
PneumoniaMNIST86.788.785.484.288.388.085.185.487.186.282.6
TissueMNIST28.434.127.131.130.330.027.928.729.930.928.5
DatasetSIGRegSIGReg-OOBSimCLRMoCoV2Contrastive-OOBVICRegIConEIConE-SIGRegBYOLSwAVDINO
BloodMNIST86.591.779.679.990.684.184.284.981.782.077.6
BreastMNIST72.474.669.967.571.571.272.771.371.070.666.5
DermaMNIST52.258.050.248.457.751.948.348.448.848.146.3
OCTMNIST53.659.545.445.451.753.445.544.844.648.941.5
OrganAMNIST72.177.261.461.176.467.477.476.959.661.753.0
OrganCMNIST70.476.560.457.376.871.380.179.259.461.157.0
OrganSMNIST59.560.849.248.961.854.559.459.548.849.247.4
PathMNIST67.779.067.667.176.969.156.255.266.264.560.1
PneumoniaMNIST88.091.484.181.389.585.486.885.784.984.480.8
TissueMNIST35.641.334.432.441.734.931.233.333.432.830.8
DatasetSIGRegSIGReg-OOBSimCLRMoCoV2Contrastive-OOBVICRegIConEIConE-SIGRegBYOLSwAVDINO
BloodMNIST90.195.482.180.281.985.988.388.083.783.477.2
BreastMNIST73.675.670.868.273.673.473.272.171.072.265.1
DermaMNIST53.559.952.548.452.853.849.048.347.845.243.3
OCTMNIST58.166.046.444.646.156.148.048.446.548.141.4
OrganAMNIST75.081.466.861.866.369.980.379.661.163.257.2
OrganCMNIST76.282.669.261.565.873.980.380.364.762.658.9
OrganSMNIST62.669.358.253.560.660.662.962.255.253.749.7
PathMNIST75.585.373.269.172.273.167.467.868.368.160.1
PneumoniaMNIST91.794.289.387.386.890.190.689.589.188.084.1
TissueMNIST37.146.534.232.533.138.030.130.432.231.827.4
DatasetSIGRegSIGReg-OOBSimCLRMoCoV2Contrastive-OOBVICRegIConEIConE-SIGRegBYOLSwAVDINO
BloodMNIST93.297.590.387.797.788.491.392.387.790.080.9
BreastMNIST73.375.471.067.773.872.873.173.872.671.566.1
DermaMNIST52.961.550.545.962.350.647.646.145.544.340.4
OCTMNIST63.576.556.751.577.160.751.551.755.252.143.2
OrganAMNIST81.888.275.769.889.176.180.782.367.064.456.6
OrganCMNIST78.985.076.568.486.174.979.880.769.665.259.5
OrganSMNIST68.475.066.061.376.664.464.668.358.158.551.0
PathMNIST79.892.276.773.892.974.673.372.570.972.362.5
PneumoniaMNIST92.495.889.587.296.089.189.287.689.587.382.0
TissueMNIST39.649.736.334.850.538.032.832.333.932.628.6

Table 7. Per-dataset 2D MedMNIST balanced accuracy (%) across training-set sizes, averaged over batch sizes. Entries are linear probe results. Within each method family, the best result is bold; the best result overall is underlined. (a) N=500N = 500; (b) N=1kN = 1\mathrm{k}; (c) N=2kN = 2\mathrm{k}; (d) N=5kN = 5\mathrm{k}.

DatasetSIGRegSIGReg-OOBSimCLRMoCoV2Contrastive-OOB
BBBC01090.9 / 93.890.4 / 91.589.9 / 90.990.8 / 90.990.0 / 91.2
CIFAR-1049.2 / 60.079.7 / 82.276.2 / 81.168.2 / 73.874.9 / 79.4
CIFAR-10020.7 / 33.542.2 / 53.939.1 / 53.134.6 / 46.933.4 / 49.4
DTD17.5 / 25.226.0 / 32.726.5 / 35.822.3 / 29.132.4 / 37.0
ImageNet-100 (full)44.3 / 53.952.4 / 60.6– / –– / –– / –
ImageNet-100-5k39.3 / 54.455.9 / 67.853.8 / 65.349.2 / 63.263.9 / 69.5
Imagenette39.5 / 51.958.2 / 66.656.5 / 65.945.8 / 58.466.0 / 68.4
Imagewoof20.1 / 30.328.2 / 39.628.2 / 40.322.9 / 34.534.5 / 42.1
Plankton41.3 / 42.842.6 / 45.843.1 / 45.640.5 / 42.642.9 / 45.5
STL-1043.4 / 52.461.5 / 67.559.9 / 66.450.3 / 59.664.6 / 69.9
AdrenalMNIST3D54.4 / 57.657.1 / 64.755.6 / 60.056.5 / 62.958.8 / 64.8
FractureMNIST3D37.7 / 40.536.5 / 41.337.8 / 42.137.6 / 41.436.6 / 39.2
NoduleMNIST3D64.7 / 66.572.6 / 76.765.1 / 71.668.2 / 75.772.2 / 76.4
OrganMNIST3D44.8 / 63.456.5 / 83.142.2 / 60.455.8 / 80.357.5 / 75.8
SynapseMNIST3D55.5 / 56.857.6 / 59.057.6 / 58.854.0 / 60.454.1 / 58.9
VesselMNIST3D51.2 / 50.753.4 / 58.952.3 / 52.254.7 / 56.053.6 / 55.5

Table 8. Per-dataset balanced accuracy (%) on natural/scientific 2D and 3D MedMNIST datasets, averaged over batch sizes. Entries are 5-NN / linear probe. Within each method family, the best result is bold; the best result overall is underlined.

Across the controlled size sweep, the OOB variants retain their strongest advantages in the low-batch regime rather than relying on a particular number of training examples. The per-dataset results below also show that these gains are distributed across domains rather than being driven by a single task.

The natural-image and 3D results in Table 8 broaden the comparison beyond the controlled 2D size sweep while retaining the same frozen-evaluation protocol.

Representation-rank diagnostics

Figure 11 provides a useful qualification. Contrastive-OOB has much higher rank than SimCLR and MoCoV2 in the smallest-batch regime, consistent with stronger prevention of dimensional collapse. The Gaussian pair is more mixed: SIGReg-OOB can have lower rank than SIGReg on 2D biomedical data

Figure 11. Effective rank and RankMe of frozen representations. Lines average over the common datasets and bands show standard errors across datasets.

while matching or exceeding its downstream accuracy, and is comparable or higher on natural images. Rank therefore diagnoses one aspect of collapse but does not by itself explain semantic performance.

Detailed class-imbalance results

We generate controlled imbalance by retaining a 1/k1/k fraction of the samples from designated classes, for k∈{2,5,8,10,15,20,25}k \in\{2, 5, 8, 10, 15, 20, 25\}. The SSL algorithms remain label-free. Class labels are used only after pretraining to report macro recall over the downsampled classes, worst-class recall, and the minority–majority recall gap. Figure 12 reports the 2D results at batch size 64, while Figure 13 condenses the more stringent tail metrics for the contrastive methods.

Figure 12. Minority-class recall for the controlled-imbalance 2D experiments at batch size 64: 5-NN (left) and linear probe (right).

Figure 13. Worst-class recall and minority–majority recall gap for Contrastive-OOB, SimCLR, and MoCoV2. Lines average dataset–batch experiments and bands show standard errors across those results.

The OOB gains are not restricted to average classification accuracy: they are visible for the underrepresented classes and, in many settings, for the worst class. Nevertheless, an empirical cache preserves the empirical population’s frequency weighting. The label-aware oracle diagnostic in the main paper therefore separates two claims: OOB state can estimate a chosen population objective more faithfully, but changing that objective to be class-balanced requires an explicit weighting decision.

Instance-retrieval results

The held-out evaluation confirms that the transductive improvements are not solely memorization of the training instances (Table 9 and Figure 14). CONTRASTIVE-OOB gives the highest average mAP and recall in both protocols, while SIGReg-OOB improves over SIGREG on every aggregate retrieval metric.

Figure 14. Transductive and held-out retrieval for mAP and Recall@1/5/10. For each seed, scores are first averaged over the three datasets; lines then show the three-seed mean and bands show one standard deviation.

ProtocolMetricSIGRegSIGReg-OOBSimCLRContrastive-OOBMoCoV2
TransductivemAP49.162.257.371.063.4
R@159.570.866.176.571.0
R@570.179.076.883.580.6
R@1074.282.280.886.184.3
Held-outmAP60.667.466.779.772.8
R@167.173.171.783.976.7
R@578.482.783.491.486.7
R@1083.086.387.694.390.4

Table 9. Retrieval performance (%), averaged over the three datasets, batches 2–64, and three training seeds within each protocol. Bold denotes an OOB result that exceeds its corresponding in-batch comparator: SIGReg-OOB versus SIGReg, or Contrastive-OOB versus both SimCLR and MoCoV2.

Continued pretraining with DINOv2

Continued-pretraining runs start from public DINOv2 ViT-S/B/L/G checkpoints and use two augmented views for 100 epochs. The backbone and projector learning rates are 10−510^{-5} and 10−410^{-4}, respectively; weight decay is 0.05 and the gradient norm is clipped at 1. OOB refreshes occur every 0.5 epoch. Refresh batch sizes for ViT-S/B/L/G are 128, 64, 16, and 4 to accommodate their different activation footprints. Experiments use an NVIDIA A100 GPU.

The per-dataset results (Figure 15) support the main conclusion: at small batches, OOB regularization is more likely to retain or improve the pretrained representation than its in-batch counterpart. The benefit nevertheless depends on the method, encoder, and target dataset, consistent with the central claim being about access to population context rather than guaranteed improvement for every pretrained representation.

Figure 15. Per-dataset DINOv2 continued-pretraining performance on biomedical datasets for SIGReg and SIGReg-OOB. Solid lines show linear-probe accuracy and dashed lines show 5-NN accuracy. Each point averages DINOv2-S/B/L/G encoders; bands show standard errors across encoder sizes.

Computational measurements

We benchmark each method on one NVIDIA L40S GPU for 100 epochs (Figure 16). The five-method benchmark spans BloodMNIST at 500, 1k, 2k, and 5k training examples and STL-10. We evaluate batches 1–64 where each method is defined. Peak allocated GPU memory is measured during training; wall time includes refresh passes and anchor construction.

Figure 16. Detailed resource measurements across dataset sizes and batches. Lines average the datasets evaluated for each method, and bands show standard errors across datasets.

At a matched batch size, SIGReg-OOB and CONTRASTIVE-OOB have essentially the same peak allocated GPU memory as their direct SIGReg and SimCLR counterparts. They add approximately 10% and 4% wall time, respectively, due to periodic cache construction.

Additional analyses

Convergence over pretraining time

We record frozen 5-NN and linear-probe performance after every epoch for BloodMNIST-5k, STL-10, and ImageNet-100-5k. Figure 17 and Table 10 shows the difference in improvement between OOB and in-batch variants as optimization proceeds. The Gaussian OOB advantage grows throughout training and the contrastive advantage emerges early and remains positive on average through epoch 200.

Figure 17. OOB improvement over the corresponding in-batch method during pretraining. Solid lines show linear-probe accuracy and dashed lines show 5-NN accuracy. Lines average matched dataset–batch cells and bands show standard errors across those cells.

ComparisonProbeEpoch 25Epoch 50Epoch 100Epoch 200
SIGReg-OOB − SIGReg5-NN+9.09+11.94+13.88+14.43
SIGReg-OOB − SIGRegLinear+6.91+9.14+10.80+11.62
Contrastive-OOB − SimCLR5-NN+1.58+3.68+3.71+2.43
Contrastive-OOB − SimCLRLinear+0.89+1.73+1.71+0.47

Table 10. Mean OOB gain in percentage points at selected epochs.

References

  1. [1]Konstantinos Almpanakis and Anna Kreshuk. Icone: Batch independent collapse prevention for self-supervised representation learning. In European Conference on Computer Vision, pp. 445–463. Springer, 2026.arxiv.org/abs/2603.15263
  2. [2]Yuki Markus Asano, Christian Rupprecht, and Andrea Vedaldi. Self-labelling via simultaneous clustering and representation learning. arXiv preprint arXiv:1911.05371, 2019.arxiv.org/abs/1911.05371
  3. [3]Mahmoud Assran, Randall Balestriero, Quentin Duval, Florian Bordes, Ishan Misra, Piotr Bojanowski, Pascal Vincent, Michael Rabbat, and Nicolas Ballas. The hidden uniform cluster prior in self-supervised learning. arXiv preprint arXiv:2210.07277, 2022.arxiv.org/abs/2210.07277
  4. [4]Randall Balestriero. Unsupervised learning on a diet: Datum index as target free of self-supervision, reconstruction, projector head. arXiv preprint arXiv:2302.10260, 2023.arxiv.org/abs/2302.10260
  5. [5]Randall Balestriero and Yann LeCun. Lejepa: Provable and scalable self-supervised learning without the heuristics. arXiv preprint arXiv:2511.08544, 2025.arxiv.org/abs/2511.08544
  6. [6]Adrien Bardes, Jean Ponce, and Yann LeCun. Vicreg: Variance-invariance-covariance regularization for self-supervised learning. arXiv preprint arXiv:2105.04906, 2021.arxiv.org/abs/2105.04906
  7. [7]Piotr Bojanowski and Armand Joulin. Unsupervised learning by predicting noise. In International conference on machine learning, pp. 517–526. PMLR, 2017.arxiv.org/abs/1704.05310
  8. [8]Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In European conference on computer vision, pp. 139–156. Springer, 2018.arxiv.org/abs/1807.05520
  9. [9]Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. Advances in neural information processing systems, 33:9912–9924, 2020.arxiv.org/abs/2006.09882
  10. [10]Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In 2021 IEEE/CVF international conference on computer vision (ICCV), pp. 9630–9640. IEEE, 2021.arxiv.org/abs/2104.14294
  11. [11]Changyou Chen, Jianyi Zhang, Yi Xu, Liqun Chen, Jiali Duan, Yiran Chen, Son Tran, Belinda Zeng, and Trishul Chilimbi. Why do we need large batchsizes in contrastive learning? a gradient-bias perspective. Advances in Neural Information Processing Systems, 35:33860–33875, 2022.DOI
  12. [12]Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pp. 1597–1607. PMLR, 2020a.arxiv.org/abs/2002.05709
  13. [13]Xinlei Chen and Kaiming He. Exploring simple siamese representation learning. In 2021 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pp. 15745–15753. IEEE, 2021.arxiv.org/abs/2011.10566
  14. [14]Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020b.arxiv.org/abs/2003.04297
  15. [15]Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3606–3613, 2014.arxiv.org/abs/1311.3618
  16. [16]Adam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 215–223. JMLR Workshop and Conference Proceedings, 2011.
  17. [17]Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
  18. [18]Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.arxiv.org/abs/2010.11929
  19. [19]Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. With a little help from my friends: Nearest-neighbor contrastive learning of visual representations. In 2021 IEEE/CVF international conference on computer vision (ICCV), pp. 9568–9577. IEEE, 2021.arxiv.org/abs/2104.14548
  20. [20]Peyré Gabriel and Cuturi Marco. Computational optimal transport with applications to data sciences. Foundations and trends® in machine learning, 11(5-6):355–607, 2019.DOI
  21. [21]Luyu Gao, Yunyi Zhang, Jiawei Han, and Jamie Callan. Scaling deep contrastive learning batch size under memory limited setup. In Proceedings of the 6th Workshop on Representation Learning for NLP (RepL4NLP-2021), pp. 316–321, 2021.arxiv.org/abs/2101.06983
  22. [22]Quentin Garrido, Randall Balestiero, Laurent Najman, and Yann LeCun. Rankme: Assessing the downstream performance of pretrained self-supervised representations by their rank. In International conference on machine learning, pp. 10929–10974. PMLR, 2023.arxiv.org/abs/2210.02885
  23. [23]Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent-a new approach to self-supervised learning. Advances in neural information processing systems, 33:21271–21284, 2020.arxiv.org/abs/2006.07733
  24. [24]Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.arxiv.org/abs/1512.03385
  25. [25]Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In 2020 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pp. 9726–9735. IEEE, 2020.arxiv.org/abs/1911.05722
  26. [26]Li Jing, Pascal Vincent, Yann LeCun, and Yuandong Tian. Understanding dimensional collapse in contrastive self-supervised learning. arXiv preprint arXiv:2110.09348, 2021.arxiv.org/abs/2110.09348
  27. [27]Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
  28. [28]Vebjørn Ljosa, Katherine L Sokolnicki, and Anne E Carpenter. Annotated high-throughput microscopy image sets for validation. Nature methods, 9(7):637, 2012.DOI
  29. [29]Dominic Masters and Carlo Luschi. Revisiting small batch training for deep neural networks. arXiv preprint arXiv:1804.07612, 2018.arxiv.org/abs/1804.07612
  30. [30]Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.arxiv.org/abs/1807.03748
  31. [31]Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023.
  32. [32]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pp. 8748–8763. PmLR, 2021.arxiv.org/abs/2103.00020
  33. [33]Colorado J Reed, Xiangyu Yue, Ani Nrusimha, Sayna Ebrahimi, Vivek Vijaykumar, Richard Mao, Bo Li, Shanghang Zhang, Devin Guillory, Sean Metzger, et al. Self-supervised pretraining improves self-supervised pretraining. In 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 1050–1060. IEEE, 2022.arxiv.org/abs/2103.12718
  34. [34]Bryan Rodas, Natalie Montesino, Jakob Ambsdorf, David Klindt, and Randall Balestriero. Diet-cp: Lightweight and data efficient self supervised continued pretraining. arXiv preprint arXiv:2509.06990, 2025.arxiv.org/abs/2509.06990
  35. [35]Olivier Roy and Martin Vetterli. The effective rank: A measure of effective dimensionality. In 2007 15th European signal processing conference, pp. 606–610. IEEE, 2007.DOI
  36. [36]Claude Elwood Shannon. A mathematical theory of communication. The Bell system technical journal, 27 (3):379–423, 1948.
  37. [37]Yucheng Tang, Dong Yang, Wenqi Li, Holger R Roth, Bennett Landman, Daguang Xu, Vishwesh Nath, and Ali Hatamizadeh. Self-supervised pre-training of swin transformers for 3d medical image analysis. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 20698–20708. IEEE, 2022.
  38. [38]Michael Tschannen, Josip Djolonga, Paul K Rubenstein, Sylvain Gelly, and Mario Lucic. On mutual information maximization for representation learning. arXiv preprint arXiv:1907.13625, 2019.
  39. [39]Jianyuan Wang, Minghao Chen, Nikita Karaev, Andrea Vedaldi, Christian Rupprecht, and David Novotny. Vggt: Visual geometry grounded transformer. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5294–5306. IEEE, 2025.arxiv.org/abs/2503.11651
  40. [40]Tongzhou Wang and Phillip Isola. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. In International conference on machine learning, pp. 9929–9939. PMLR, 2020.DOI
  41. [41]Xun Wang, Haozhi Zhang, Weilin Huang, and Matthew R Scott. Cross-batch memory for embedding learning. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6387–6396. IEEE, 2020.arxiv.org/abs/1912.06798
  42. [42]Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3733–3742, 2018.arxiv.org/abs/1805.01978
  43. [43]Jiancheng Yang, Rui Shi, Donglai Wei, Zequan Liu, Lin Zhao, Bilian Ke, Hanspeter Pfister, and Bingbing Ni. Medmnist v2-a large-scale lightweight benchmark for 2d and 3d biomedical image classification. Scientific data, 10(1):41, 2023.
  44. [44]Chung-Yiu Yau, Hoi-To Wai, Parameswaran Raman, Soumajyoti Sarkar, and Mingyi Hong. Emc²: Efficient mmc negative sampling for contrastive learning with global convergence. arXiv preprint arXiv:2404.10575, 2024.
  45. [45]Chun-Hsiao Yeh, Cheng-Yao Hong, Yen-Chi Hsu, Tyng-Luh Liu, Yubei Chen, and Yann LeCun. Decoupled contrastive learning. In European conference on computer vision, pp. 668–684. Springer, 2022.arxiv.org/abs/2110.06848
  46. [46]Zhuoning Yuan, Yuexin Wu, Zi-Hao Qiu, Xianzhi Du, Lijun Zhang, Denny Zhou, and Tianbao Yang. Provable stochastic optimization for global contrastive learning: Small batch does not harm performance. In International Conference on Machine Learning, pp. 25760–25782. PMLR, 2022.arxiv.org/abs/2202.12387
  47. [47]Jure Zbontar, Li Jing, Ishan Misra, Yann LeCun, and Stéphane Deny. Barlow twins: Self-supervised learning via redundancy reduction. In International conference on machine learning, pp. 12310–12320. PMLR, 2021.arxiv.org/abs/2103.03230

Paper details

vlnc:W_6zpa9cpc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents