VICReg Triple Objective
Keep two views close, keep each feature lively with variance above one, and keep features uncorrelated. Three plain terms stop collapse.
Why Does This Exist?
Pairs alone can collapse to a constant because matching a constant is easy. VICReg writes the guardrails as loss terms: pull views together, push each slot variance above , and push cross-slot covariance to . Readers of siamese networks know the twins; this page adds the three-term guard.
This page covers the triple loss only. Correlation-only variants are siblings, reachable from contrastive loss.
The one idea you need first.
Variance measures spread of slot over the batch. A hinge charges only slots narrower than . Covariance measures slot leakage.
Think of It Like This
A gym coach with three whistles
A coach watches two runners do the same drill. One whistle blows when they drift apart, one when anyone jogs too flatly, and one when runners copy each other stride. All three must stay quiet for a good rep.
Invariance is staying together, variance is running lively, and covariance is not copying. Where it stops: runners hear whistles live, while the net gets one summed number per batch.
How It Actually Works
For views and let invariance be . Let variance be plus the same for . Let covariance be plus the same for . Total .
In plain words: is width, stresses matching and liveliness, and gently decorrelates.
Worked example
Take , . Slot stds are about each, so each hinge pays , mean . If and , total is . Widening spread toward std drops the fast, which is why dead constants cannot win.
Watch Out For
Variance weight too low for narrow starts
Random starts have std near , so a weak variance weight lets invariance win by shrinking everything. Probes sit at chance while loss looks fine. Keep the published weight and log per-slot std during week one.
The Quick Version
- VICReg joins invariance plus variance plus covariance in one loss.
- Hinge at std one keeps each slot lively.
- Covariance penalty decorrelates slots.
- Weights 25, 25, 1 reflect the intended stress.
- No negatives, queues, or Sinkhorn passes are needed.