Interactive · 2026
Teach a JEPA to watch a pendulum
A tiny joint-embedding predictive architecture that learns, without a single label, what a swinging pendulum is doing. It trains right here, on your device.
Adjust the pendulum
01
What it sees
The model never sees the pendulum. It gets ten seconds of sensor signal, cut into one-second patches, and is shown one patch at a time.
Its task is to predict a description of each of the next three, never their raw values. The bottom channel is pure noise that nobody could predict, so it has no reason to keep it.
A model trained the older way, by rebuilding the raw signal, has every reason to: its loss counts every raw value, noise included. To check, a fourth model with the same encoder trains alongside the JEPAs, that older way.
Predicts descriptions · the JEPA
Rebuilds the signal · the older way
02
What it learns
Nobody tells the model about angle or rate. Yet a straight-line probe can read both out of its descriptions. Plot one against the other and a release traces a spiral, tightening as damping drains its energy.
The error never reaches zero, and it shouldn’t: part of every window is noise nobody could predict. But there is a cheap way to score perfectly: describe every window the same way. That is collapse, and every JEPA needs a safeguard against it.
Switch it off and the model retrains. The error falls to zero because the model stops saying anything, and the picture shrinks to a point.
Prediction error
–
log scale
Spread of descriptions
–
03
What it imagines
Show the model the first three seconds, then look away. From the last one, the predictor rolls its description forward a second at a time, and a small probe reads the angle back out.
How long that imagination stays honest depends on one choice: where the physics lives.
A note on scope. This is a real JEPA, small enough to read: an encoder, a slow-copy target encoder, a predictor and an anti-collapse term, about eleven thousand parameters trained from scratch in your browser. It is a teaching toy, not a reproduction of any paper and not a model of any real machine.