GlossaryImitation learning
Imitation learning
Imitation learning is a way to teach a robot a skill by training it on demonstrations of the skill, usually recorded while a person performs the task through teleoperation or by guiding the robot by hand. The model learns to map what the robot senses to the actions the demonstrator took.
How it works
The simplest form is behavior cloning. Each demonstration is a recording of observations, such as camera images and joint positions, paired with actions. A model is trained with ordinary supervised learning to predict the action from the observation.
Behavior cloning has a known weakness: small errors compound. The robot drifts into states the demonstrator never showed, and the model has no example of how to recover. A 2010 paper described the problem formally and proposed collecting new labels in the states the learned policy actually visits, which gives the model recovery examples.
Later methods made demonstrations more effective. A 2023 system used low-cost teleoperation hardware and a model that predicts short chunks of future actions, learning fine bimanual tasks from about 10 minutes of demonstrations. Another 2023 method generated actions with a diffusion model, which handles tasks where several different motions are all correct.
Imitation learning vs programming by hand
Programming a robot by hand means writing the motions, waypoints and conditions for each task. It is exact and predictable, but every new part or layout needs new code. Imitation learning replaces that code with demonstrations and a trained model. It adapts to variation more easily, at the cost of needing good data and testing to show the learned behavior is safe.
Why it matters
Many useful robot tasks, such as handling cables, flexible parts or cluttered bins, are hard to describe in code and easy for a person to show. Imitation learning turns that skill into a model. It is also how robot foundation models are trained at scale, from large collections of demonstrations across many robots.
How to get it right
- Record demonstrations on the same robot, cameras and grippers that will run the task.
- Keep demonstrations consistent, since conflicting styles confuse the model.
- Include recoveries from small mistakes, not only perfect runs.
- Vary objects, positions and lighting across demonstrations.
- Test on setups outside the training set before relying on the skill.
Imitation learning in robotics and drone hardware
Teleoperation rigs, data recording and onboard inference all depend on hardware. Demonstration quality depends on synchronized cameras, joint encoders and force sensing, and on clean timestamps across them. The learned policy then runs on the robot's own computer, which sets latency and power limits on the model.