Skip to main content
Torqheart
← The Lab

04 · Learn · Free

Teaching a robot by showing it (behaviour cloning)

Show it a few times and the robot copies you, until it drifts a little off the path and has no idea what to do.

coloured band = where examples exist · or drag from start to goal to demonstrate yourself

examples learned

0

success (20 runs)

–

crash / lost

–

Make a short clip of this demo (TikTok · Reels · Shorts) →

What's going on

The most popular way to teach robots today is to drive them by hand (teleop) a number of times and have a model learn “in this situation, people do this”. The catch: the data only has the good paths. Once the robot drifts a little, it is somewhere it has never seen, guesses wrong, and drifts further. That is distribution shift.

Picture it like this

Like learning to drive only from videos of a perfect driver who never takes a corner wide. The first time you do, you've never seen how to recover. DAgger is a teacher in the passenger seat saying “turn back now” at the moment you actually go wrong.

On real robots

Humanoid makers collect tens of thousands of hours of teleop because of this. The data needs good paths and recoveries from mistakes. VLA models and action chunking make motion smoother but don't make the problem go away. On the Radar this is at the piloting stage: it works for repetitive jobs in a stable setting.

For engineers: the policy in this demo

Kernel regression: a(s) = Σ wᵢ aᵢ / Σ wᵢ with wᵢ = exp(−|s − sᵢ|² / 2h²). With no example near enough (Σw tiny) it copies the nearest example: as confident as ever, often wrong.

Behaviour cloning's error can compound to O(T²) in task length T, since every slip leads to unseen states. DAgger (Ross et al., 2011) lets the learner drive, has the expert label the states it reaches and aggregates the data, bringing it to O(T).

In practice the “teacher” can be a person who takes over when the robot starts to fail (HG-DAgger), or noise injected while collecting demos to get recoveries (DART).