BYOL Without Negatives
Train one net to predict what a slow copy sees in another crop of the same photo. No strangers needed, so collapse must be stopped another way.
Why Does This Exist?
Negative pairs cost memory and can wrongly push two dogs apart. BYOL asks whether positives alone suffice. It keeps an online net plus a slow target, predicts across views, and blocks gradient into the target. The siamese network shape stays, but the contrastive loss goes away.
This page covers predictor plus stop-gradient only. Cluster variants live in pages like SwAV, linked from image retrieval.
The one idea you need first.
Stop-gradient means the target branch gives a number but takes no update from this loss. Only the online weights move by gradient; the target follows by slow momentum .
Think of It Like This
Tracing a teacher who walks very slowly
A student traces drawings taped on a slow walker. The walker moves a little each day, so yesterday tracing still helps today. The student never sees other walkers, yet her hand gets steadier because the target keeps drifting just out of reach.
The online net is the student, the target is the walker, and the predictor is her pencil grip. Where it stops: a real student could freeze her hand and claim success, while BYOL asymmetry keeps that trivial answer unstable.
How It Actually Works
Encode view with online encoder then predictor to get . Encode view with target encoder to get , with no gradient into . Minimize , which is squared error on unit vectors. Update with .
In plain words: adds the asymmetry, sets target slowness, and is zero only when prediction matches the slow view.
Worked example
Let unit vectors and . Norms are and . Dot is . Cosine is . Loss is . A collapsed constant gives high error once the target drifts, so only tracking views keeps loss this low.
Watch Out For
Removing the predictor and collapsing quietly
Without , online and target can match by outputting one constant. Loss hits zero while features carry nothing. The symptom is zero loss plus chance-level probes. Keep the predictor and check linear probes, not just the loss.
The Quick Version
- BYOL matches an online prediction to a slow momentum target with no negatives.
- Predictor plus stop-gradient supply the asymmetry that stops collapse.
- Momentum 0.996 keeps the target stable across steps.
- Loss is cosine distance on unit vectors.
- Probe the encoder, since the loss alone can hide collapse.