← Blog

λ\lambda-JEPA: Spectral Anti-Collapse Regularization for Self-Supervised Learning

The logistic sigmoid curve
Figure 1. SACReg anti-collapse mechanism.

Intro

Representational collapse remains one of the major issues in the self-supervised learning task. Different inputs can collapse onto the same latent point, limiting representational rank of the model. Recent solutions, such as LeJEPA (with SIGReg)1, VICReg2, and VISReg3 try to solve this issue by adding explicite representational regularization.

In regular JEPA (or even DINO) style trainings, the outputs of the encoder get processed by an additional model before putting them into a predictive objective.

xxContext Encoder fθf_\thetahxh_xPredictor gϕg_\phiz^y\hat{z}_yyyTarget Encoder fθˉf_{\bar\theta}zyz_y∥z^y−zy∥2\|\hat{z}_y - z_y\|_{2}
Figure 2. A typical JEPA style SSL model.

More like DINO, than JEPA

Instead of a regular JEPA like design, the pretraining of λ\lambda-JEPA is more like DINO design; multiple views of the inputs, their augmentations, and a projection of both embeddings. Instead of predicting target embeddings from context ones, they prefer an alignment loss between their projected latent embeddings.

xlx_{l}Encoder fθf_\thetahxlh_{x_{l}}Projector gψg_\psizxlz_{x_{l}}xgx_{g}Encoder fθˉf_{\bar\theta}hxgh_{x_{g}}Projector gψg_\psizxgz_{x_{g}}∥zxg−zxl∥2\|z_{x_{g}} - z_{x_{l}}\|_{2}
Figure 3. λ\lambda-JEPA.

λ\lambda-JEPA tries to solve the collapse issue by directly regularizing representations with their scale, variance, and dimensional collapse prevention. Specificaly, in their proposed regularization loss, they have 3 penalties: mean, variance, and spectral.

RSAC(μ,Ch)=λmean2∥μ∥22+λcov2tr⁡(Ch)−γ2log⁡det⁡(Ch+ϵINh),LSAC=Ltask+RSAC(μ,Ch)\begin{aligned} \mathcal{R}_{\text{SAC}}(\mu, C_h) &= \frac{\lambda_{\text{mean}}}{2}\|\mu\|_2^2 + \frac{\lambda_{\text{cov}}}{2}\operatorname{tr}(C_h) - \frac{\gamma}{2}\log\det(C_h + \epsilon I_{N_h}), \\ \mathcal{L}_{\text{SAC}} &= \mathcal{L}_{\text{task}} + \mathcal{R}_{\text{SAC}}(\mu, C_h) \end{aligned}

λ\lambda-Balance

In a simple linear toy example, when the input is projected with a double weighted metrices; W1W_{1} and W2W_{2}, the spectral rank of these weight matrices can describe collapse or non-collapse scenarios. Specifically, for a simple projection of y^=W2W1x\hat{y} = W_{2}W_{1}x, the gram matrices difference Δ=W2TW2−W1W1T\Delta = W^{T}_{2}W_{2} - W_{1}W^{T}_{1} describes the spectral gap between two weight matrices. When Δ=λI\Delta = \lambda I, a network is called λ\lambda-balanced.

When this λ<0\lambda < 0, a non-collapse of W1W_{1} projection is guaranteed, because W1W1T⪰−λIW_{1}W^{T}_{1} \succeq - \lambda I, which also means all eigenvalues of W1W1TW_{1}W^{T}_{1} are positive, hence, all singular values of W1W_{1} are positive. Having all positive singular value means there is no spectral collapse of W1W_{1} encoding projections.

Linear SACReg

In a linear projection scenario, the loss is defined in the following way

RLSAC(W1,W2)=λreg2(∥W1∥F2+∥W2∥F2)−γ2log⁡det⁡(W1W1T),LLSAC=Ltask+RLSAC(W1,W2)\begin{aligned} \mathcal{R}_{\text{LSAC}}(W_{1}, W_{2}) &= \frac{\lambda_{\text{reg}}}{2}(\|W_{1}\|_{F}^{2} + \|W_{2}\|_{F}^{2}) - \frac{\gamma}{2}\log\det(W_{1}W^{T}_{1}), \\ \mathcal{L}_{\text{LSAC}} &= \mathcal{L}_{\text{task}} + \mathcal{R}_{\text{LSAC}}(W_{1}, W_{2}) \end{aligned}

However, looking at the objective, one can notice that anti-collapse regularization comes from the last component of RLSAC\mathcal{R}_{\text{LSAC}} loss, it tries to maximize log⁡det⁡(W1W1T)\log\det(W_{1}W^{T}_{1}) spectral term, which means all singular values of W1W_{1} will be pushed above (positive).

λ\lambda-balance Term Is Not Required

The λ\lambda-balance in the network is not required and the spectral regularization term of RLSAC\mathcal{R}_{\text{LSAC}} solves the problem independently, in spite of λ\lambda-balance condition.

Non-Linear SAC

In a non-linear case (RSAC\mathcal{R}_{\text{SAC}}), as model weights can not be directly regularized like the linear case, they are replaced by the model’s predictions covariance matrix. Meaning, if the covariance is regularized in the same way, model avoids collapsing scenarios. However, there is a major question:

Is prediction level regularization enough, to propagate anti-collapsing capabilities into 
network's weights? Meaning, making spectral collapse of the model weights less likely.

To answer that question, we would need the eigenvalue spectrum of frozen encoder representations (ChC_{h}) across increasingly different test distributions.

SACSAC Remains a Non-Guaranteed Anti-Collapse Mechanism

The loss RSAC\mathcal{R}_{\text{SAC}} optimizes input-based covarience only (Train set). If representational optimization is not enough to propogate anti-collapse capabilities into network’s weights, this loss may not be enough to generalize on unseen examples. Which means, for some unseen examples, collapse still can occur in representational space.

paper: https://arxiv.org/abs/2609.35288

Footnotes

  1. LeJEPA: Provable and Scalable Self-Supervised Learning Without the Heuristics. R. Balestriero, et al. ↩

  2. VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learning. A. Bardes, et al. ↩

  3. VISReg: Variance-Invariance-Sketching Regularization for JEPA training. H. Wu, et al. ↩