Papers
Topics
Authors
Recent
Search
2000 character limit reached

VISReg: A Robust Regularization Framework for JEPA

Updated 3 July 2026
  • VISReg is a regularization framework that enhances JEPA architectures by explicitly controlling scale, enforcing invariance, and aligning embedding shapes through Sliced-Wasserstein sketching.
  • It decomposes the loss into variance, centering, and sketching terms to prevent collapse and ensure full-distributional matching, addressing limitations in VICReg and SIGReg.
  • Empirical results demonstrate VISReg’s superior out-of-distribution generalization and improved performance on low-quality and transfer tasks across diverse datasets.

Variance-Invariance-Sketching Regularization (VISReg) is a regularization framework for self-supervised learning, designed specifically to improve the stability and robustness of Joint Embedding Predictive Architectures (JEPA) through a principled decomposition of embedding space regularization. VISReg combines scale control, invariance, and full-distributional matching using a variance term, an invariance (mean matching) term, and a Sliced-Wasserstein (“sketching”) shape regularizer, decoupled via stop-gradient. This novel approach addresses key limitations in prior methods such as VICReg and SIGReg, demonstrating superior out-of-distribution generalization, scalability, and resilience to pathological data regimes (Wu et al., 1 Jun 2026).

1. Motivation and Limitations of Prior Art

VICReg (Variance-Invariance-Covariance Regularization) introduced an explicit decomposition of regularizers into variance, invariance, and covariance objectives, controlling scale, clustering positive views, and decorrelating embedding dimensions, respectively. However, the covariance objective targets only second-order statistics, leaving higher-order mismatches between the embedding distribution and a desired isotropic form possible; distinct distributions can share identical means and covariances yet exhibit differing “shapes.” SIGReg (Sketching-based Regularization in LeJEPA), by contrast, utilizes the Epps–Pulley statistic to match the empirical embedding distribution to an isotropic Gaussian, thus targeting full-distributional alignment. SIGReg, however, (a) fails to separate scale from shape—so misaligned scales undermine sketching, (b) provides no corrective gradient as embeddings collapse (the sketch loss vanishes too rapidly), and (c) does not afford flexible reweighting of its components for adaptation to varied data regimes.

VISReg overcomes these issues through three key modifications:

  • Explicit scale control: It retains the VICReg variance term, ensuring gradients do not vanish under collapse.
  • Distributional alignment: It replaces covariance regularization with a Sliced-Wasserstein (SW) sketching penalty which matches entire distributional shape by aligning projected one-dimensional marginals with those of an isotropic Gaussian.
  • Decoupling via stop-gradient: Scale and shape regularization are disentangled by stopping the gradient path on the per-dimension standard deviation when computing the SW penalty, enabling independent weighting and greater flexibility.

2. Mathematical Formulation

Let ZRN×DZ \in \mathbb{R}^{N \times D} denote the batch of projected embeddings:

  • Batch mean: μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i
  • Centered embeddings: Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top
  • Per-dimension std: σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)

The loss decomposes as follows:

  1. Variance (scale) term:

Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^2

This term applies a strong gradient against collapse (as σj0\sigma_j \to 0, σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow constant).

  1. Centering term:

Lcenter=μ22L_\text{center} = \|\mu\|_2^2

This maintains batch mean proximity to zero, empirically stabilizing training.

  1. Sketching (shape) term (Sliced-Wasserstein):
    • Scale normalized embeddings: Z~=Z^diag(1/(σsg(σ)+ε))\tilde Z = \hat Z \cdot \text{diag}(1 / (\sigma \circ \text{sg}(\sigma) + \varepsilon)), with stop-gradient on σ\sigma.
    • Random projections: Draw μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i0 random unit directions μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i1, compute 1D projections μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i2.
    • Empirical Wasserstein: For sorted projections μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i3 and Gaussian quantiles μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i4,

    μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i5

  2. Invariance (prediction) term:

    • For μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i6 augmentations per image and mean over global crops μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i7,

    μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i8

  3. Composite VISReg regularizer:

μ=(1/N)i=1NZi\mu = (1/N)\sum_{i=1}^N Z_i9

  1. Final VISReg objective:

Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top0

Default weights: Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top1 for high-quality data; Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top2 on ImageNet-1K.

3. Training Workflow and Algorithmic Features

  • Augmentation strategy: Each batch comprises Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top3 images, each yielding Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top4 augmentations (e.g., multi-crop with Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top5 large + Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top6 small, Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top7). These are encoded and projected into Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top8 via a shared encoder and MLP.

  • Loss computation:

  1. Invariance: Split Z^=Z1Nμ\hat Z = Z - \mathbf{1}_N \mu^\top9 into global/all, compute σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)0, and σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)1 via MSE to mean.
  2. Regularization: Center embeddings for σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)2, compute σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)3 (for σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)4) and per-dimension std for σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)5.
  3. Sketching: Normalize σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)6 by per-dim std via stop-grad, draw σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)7 random directions, project and sort, then compute SWD to Gaussian quantiles.
  • Final loss: Weighted sum σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)8.

  • Optimization: AdamW, weight decay on encoder/projector, mixed precision.

  • Distributed training: Slices σj=stdj(Z^)\sigma_j = \text{std}_j(\hat Z)9 are independently re-sampled on each GPU, permitting effective scaling with batch and dimension.

  • Implementation details: Detaching Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^20 for Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^21 prevents shape/scale gradients from interfering, supporting faster and more stable convergence.

4. Theoretical Properties and Computational Complexity

  • Distributional matching: By the Cramér–Wold theorem, matching all 1D projections’ marginals ensures alignment of the full Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^22-dimensional distribution.

  • Wasserstein closed-form: 1D SWD is computable by aligning sorted projections with Gaussian quantiles.

  • Gradient behavior:

    • Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^23 provides non-vanishing gradients as Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^24, addressing collapse directly.
    • Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^25 maintains a corrective gradient under collapse, in contrast to the Epps–Pulley test employed by SIGReg, which vanishes.
  • Complexity:
    • VISReg: Overall regularizer cost Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^26 (projection) plus Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^27 (sorting per slice). Sorting is subdominant at large Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^28.
    • VICReg: Covariance regularizer scales as Lvar=1Dj=1D(1σj)2L_\text{var} = \frac{1}{D} \sum_{j=1}^D (1 - \sigma_j)^29.
    • SIGReg: Epps–Pulley-based sketching involves Fourier evaluation, σj0\sigma_j \to 00, and vanishing gradients.
  • Scalability: Empirical accuracy is stable for σj0\sigma_j \to 01, but cross-GPU distribution enables constant σj0\sigma_j \to 02 in aggregate as σj0\sigma_j \to 03 increases.

5. Empirical Performance and Comparative Results

  • Out-of-distribution (OOD) linear probe: VISReg-B/16 achieves 70.2% (DTD, Galaxy10, AID, ChestXRay, RetinaMNIST, OrganAMNIST), outperforming DINO, MoCoV3, and iBOT (69.5–69.6%) without reliance on teacher–student or special heuristics.
  • Long-tailed regimes (ImageNet-LT): With σj0\sigma_j \to 04, VISReg attains 35.14% overall accuracy (versus VICReg 33.08%, SIGReg ~32%).
  • Low-rank structure (Galaxy10): 80.76% (compared to SWD 80.60%, SIGReg 80.50%, VICReg 79.93%, DINO ~73.5%).
  • In-domain (ImageNet-1K): VISReg-B/16 at 400 epochs reaches 75.7% (LeJEPA 75.6%, MAE 75.1%; DINO uses teacher–student heuristics for 78.2%).
  • Large-scale pretraining (ImageNet-22K): VISReg-L/14 (100 ep) matches DINOv2-LVD142M on OOD accuracy (72.94% vs. 72.93%) with only 10% as much data.
  • Transfer learning: VISReg surpasses DINO by 0.2–0.4% on CIFAR10/100, Flowers, IN-1K, and Galaxy10.
  • Dense prediction tasks: ADE20K linear segmentation: 30.16 mIoU (compared to MoCoV3 31.69, DINO 29.40).
  • Generative guidance: On iREPA with SiT-B/2, VISReg exceeds DINO across IS, gFID, precision, and recall.

6. Ablations and Robustness Analyses

  • Regularization vs. prediction interpolation (σj0\sigma_j \to 05): Optimal performance for σj0\sigma_j \to 06 (σj0\sigma_j \to 0769.19% on ViT-B/16 at 100 epochs); performance degrades at higher lambda.
  • Learning rate sensitivity: Peak observed near σj0\sigma_j \to 08.
  • Batch size: Best accuracy at 512.
  • Projection dimension σj0\sigma_j \to 09: While σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow0 is marginally beneficial for ImageNet-1K, lower dimensions benefit OOD and segmentation tasks; σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow1 robustly performs well.
  • Number of slices σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow2: Robustness observed even for σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow3; accuracy plateaus above σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow4 with multi-GPU distribution supporting scalability.
  • Component ablation: Removing σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow5 or σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow6 dramatically reduces performance (20–33% vs. 91.8% baseline), while removing σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow7 slows but does not destabilize convergence (σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow8 impact).
  • Detach analysis: Detaching scale from shape gradients yields consistent improvements (0.3–0.6%) across classification, OOD generalization, and segmentation tasks.
  • Loss-weighting ratios: Assigning up to σjLvar\nabla_{\sigma_j} L_\text{var} \rightarrow9 in favor of the sketch (shape) term increases accuracy on low-quality datasets (e.g., ImageNet-LT +3.2%, Galaxy10 +1.3%), whereas balanced weights suit high-quality settings like Imagenette.

VISReg provides a theoretically principled, computationally efficient, and empirically validated regularizer for JEPA training. By unifying robust scale control with Sliced-Wasserstein-based shape matching, VISReg achieves state-of-the-art out-of-distribution generalization and resilience to distributional pathologies, while allowing flexible adaptive weighting suited to a range of data qualities and tasks (Wu et al., 1 Jun 2026).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Variance-Invariance-Sketching Regularization (VISReg).