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.

Pendulumθ 55°
What the sensors recordlast 10 s
AngleAccel.RateNoise
Untrained0 / 1,500 steps
On your device. Nothing is uploaded.
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.

AngleAccel.RateNoise
Shown to the modelHidden: predict its description
Fig. 1 · One second in, three descriptions out. In training, this window slides everywhere.
Noise channel kept in the descriptionAngle forecast miss

Predicts descriptions · the JEPA

–
–

Rebuilds the signal · the older way

–
–
Fig. 1b · Train the model above to compare.

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.

anglerate
Low energyHigh

Prediction error

–

log scale

Spread of descriptions

–

Fig. 2 · Untrained: train the model above to see what it learns.

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.

seenimagined10 s
What happenedWhat it imagined
Average miss–
Fig. 3 · Train the model above to let it imagine.

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.