Experiment 03

Bipedal avatar

A jointed body and a neural network that starts out knowing nothing learn, together and unsupervised, to stand and then to move forward — one reward signal at a time.

What is reinforcement learning?

Here, no gait is written anywhere. LifeLabs drops a jointed body — a torso, two thighs, two shins, two feet, seven physical segments simulated by the MuJoCo engine — and an empty neural network into a world with gravity. That network starts out knowing nothing at all: not how to stand, not what "forward" means. At every step it picks forces to apply to the joints, observes what happens, and gets back a single number — a reward — combining staying alive, moving forward, and spending as little effort as possible.

The learning algorithm, PPO (Proximal Policy Optimization), then adjusts the network's weights to make the actions that led to a higher reward more likely, and the ones that preceded a fall less likely. Repeated tens of thousands of times, that single signal is enough to give rise to a control policy: first incoherent spasms, then a balance that holds for longer and longer, then — given enough training time — a gait. None of this is written in the code: the code only records a score and corrects weights.

Progress captured at checkpoints

At regular intervals during training, a video of the agent's current behavior is recorded. Here are the checkpoints of the latest published run, in order — the same agent, growing more experienced:

Checkpoint 1 — ≈ 73728 training steps
Checkpoint 2 — ≈ 147456 training steps
Checkpoint 3 — ≈ 221184 training steps
Checkpoint 4 — ≈ 294912 training steps
Checkpoint 5 — ≈ 368640 training steps
Checkpoint 6 — ≈ 442368 training steps
Checkpoint 7 — ≈ 516096 training steps

Individual learning, not collective emergence

In the evolutionary agents experiment (milestone 3), an entire population changes from generation to generation: no single agent learns over its own lifetime — selection is what moves the group forward. Here it's the opposite: one agent, one policy, improving over the course of a single simulated lifetime — reinforcement learning directly adjusts a network's weights from its own experience, with no notion of generations or reproduction.

In Lenia, emergence produces a shape: one local rule, identical everywhere and never changing, gives rise to a coherent, mobile creature. Here it's the opposite: the rule itself — the network's weights — keeps changing, because that rule is what is being learned. So this isn't, strictly speaking, emergence, but learning — and for once the word is used in its exact technical sense: the network adjusts its own parameters to improve a score. That says nothing about the avatar's awareness: a set of weights minimizing a cost function has no known subjective experience.

Pilot

3D replay of a gait

The replay below reconstructs, frame by frame, the real recorded positions and orientations of each of the body's seven segments during a rollout — the same physical data used to produce the checkpoint videos above, recomputed in 3D in your browser instead of pre-rendered to video.

Loading trajectory…

Playback

Drag to orbit the camera, scroll to zoom.

The vital signs we measure

Each run records three time series, computed at every training rollout, which serve as "vital signs" for the learning process:

Mean episode reward
the mean reward earned per episode — it combines staying alive, moving forward, and limiting effort; its rise is the most direct signal that the agent is learning, well before that translates into distance covered.
Episode length
the mean number of simulation steps before an episode ends (typically a fall) — a rising episode length signals an agent learning to stay upright longer, the very first skill it acquires.
Distance travelled (x)
the distance the torso travels along the x axis — the last signal to improve: an avatar learns to survive first, and only later to move forward.

Vital signs — latest run

Mean episode reward587
Episode length240 steps
Distance travelled (x)2.79 u

Results

An honest synthesis of the run published above (500,000 training steps, 516,096 in total): mean reward goes from -1 to 587, episode length from 18 to 240 steps — thirteen times longer on its feet — and distance covered from -0.15 to +2.79, against -0.13 for a purely random policy: the avatar clearly beats it. The seven checkpoint videos show the film of it in order: first learning not to fall immediately (checkpoint 1, near-zero displacement), then locomotion turning clearly positive (checkpoints 2 to 4), then a sustained forward walk (checkpoints 5 to 7). This is rigorous wonder, not a marketing claim: it is not yet a perfect or endless gait — 240 steps held out of a possible 1,000, a stride that is still jerky — and training would need to run for several million steps to polish it. 500,000 steps are enough to see walking be born, not to perfect it.