arXiv:2610.20158cs.CVOct 2026

Manuscript Offprint

arXiv:2610.20158

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

Konstantinos Almpanakis, Anna Kreshuk

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Joint-embedding architectures (JEAs) (Chen et al., 2020a; Grill et al., 2020; Caron et al., 2021; Bardes et al., 2021) have been the dominant paradigm for visual self-supervised representation learning. Applications range from 3D medical image analysis (Tang et al., 2022) to 3D scene reconstruction (Wang et al., 2025) and vision–language alignment (Radford et al., 2021). They use augmentations to create a pretraining objective based on view invariance. Anti-collapse regularization complements this objective to prevent trivial solutions (Chen & He, 2021). 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 (Jing et al., 2021). The simple solution of using a larger batch is constrained by hardware (Gao et al., 2021), 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 (2018) 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

∗^{*}Corresponding author.

samples’ targets (Fig. 1). Thus, the support of the anti-collapse component is no longer limited by the batch size or GPU capacity.

a In-batch

Figure

b Out-of-batch (OOB)

Minibatch regularization

Figure

Dataset-level regularization

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.

References (68)