Cadence / Demos

Brains that learn
while they run.

Watch brains learn live in your browser, evolve across generations and adapt to a body that changes. Every demo is working software from cadence-demos.

The shared design is to acquire useful knowledge, keep the same brain running, and repair failed expectations from actual outcomes. These demonstrations test different parts of that continuing world-model lifecycle. Atari uses a teacher and rewards; Patch World and Rover Lab use the separate population engine; AMEN starts from a learned record-patch checkpoint. None alone establishes automatic selective learning or a general efficiency advantage.

New / Compiled brains

Fish in the Matrix.

Two animals' measured wiring, compiled into Cadence patch nets that run in your browser.

Teach the fish hold your gaze, then let it return, then hold again on the same brain. Practice changes its connection strengths; pausing learning keeps them. The lessons use circuit activity as feedback, while a fixed pilot swims the body. Switch to the Platynereis larva to explore its compiled sensory and motor circuit with fixed weights.

The fish learning to hold its gaze, with gold highlights showing changed connections in its compiled brain

01 / Live learning in your browser

Atari Arcade.

Two brains born on page load.
Learning to play while you watch.

Each game runs on an Atari 2600 emulator in your browser. A newborn Cadence brain watches a teacher play, takes the controls on its own and keeps learning from the reward of its own actions. The same brain continues from teaching into play.

The brain is modeled on an animal's: a retina, an association cortex with a working memory, a motor cortex, and a critic whose surprise acts like dopamine.

In recorded runs both brains took the controls within two minutes of birth and played at their teacher's level.

On phones the second game starts on request. The repository holds a Python edition with four games.

Atari Arcade with the Freeway brain playing for itself beside its settled brain, and the Atlantis brain playing below
The arcade in a browser, ninety seconds after birth: both brains playing for themselves.

02 / Learning and evolution in your browser

Patch World.

Brains that learn in one life
and evolve across generations.

A moving sun feeds a world with a fixed supply of mass. Every creature is born untrained and learns in your browser tab from the consequences of its own actions. Running a brain costs mass, so a bigger brain has to pay for itself.

Brain designs are inherited and mutate at each birth: size, depth and senses. Energy and death decide which designs survive. Select a creature to watch its brain at work.

Within a life

Experience changes the brain.

Learning continues within the same life. Each creature acts, sees what followed and adjusts its own connections.

Across generations

Evolution changes the design.

Offspring inherit a mutated brain plan and start untrained. Each one has to learn its world for itself.

03 / For robotics teams / Live in your browser

Rover Lab.

Change the body.
The live brain adapts.

A simulated rover learns how its wheel commands turn into motion, from executed commands and odometry alone. Weaken its right wheel without telling it. The learning brain notices within seconds of driving, relearns how its body moves and keeps reaching its targets.

A frozen copy of the same brain, driving the same weakened rover, falls behind.

Rover Lab with the right wheel weakened: the learning brain's rover on its target and the frozen copy's rover short of it
Rover Lab in a browser, with the right wheel at 35% strength.

One mode

Continuing experience.

The same brain predicts and learns on every control step. There is no switch between training and use.

Measured consequences

It learns from what the body did.

Only executed commands and measured motion teach the brain. Wheel strength, the phase of the experiment and the change itself are hidden from it.

Real time

It keeps a control deadline.

Every control step is timed against a 100 ms deadline, and any miss is reported. A whole life can be saved and resumed.

Rover Lab is a simulation. A physical robot evaluation is the next test. The repository holds the Python edition on the Cadence library. Inspect the measurements ↗

04 / Play in your browser

AMEN.

A small learned brain.
A room full of jungle.

Press CUT A DUB. AMEN composes a 16- or 32-bar track from what it has learned, then renders the drums and bass for playback. Adjust the variation and cut another.

The composer learned from about six hours of music in a little over an hour on a laptop. It keeps two kinds of memory, as brains do: slowly learned habits for the style and one-shot records of single moments.

This brain learned beforehand. The browser plays the trained result.

AMEN music studio with its composition controls and record-memory display
The working AMEN studio. Compose and listen in your browser.