Imitation learning
Imitation learning trains an AI system to perform a task by copying recorded demonstrations from an expert, usually a person, instead of learning by trial and error from rewards.
Some tasks are easier to show than to describe. Writing down a reward for folding a shirt or driving smoothly is hard, but a person can simply do it while sensors record what they see and what they do. Imitation learning, also called learning from demonstration or apprenticeship learning, trains a system on those recordings. The data is usually pairs of situations and the expert's actions in them.
The simplest form is behaviour cloning: ordinary supervised learning in which the model learns to predict the expert's action from the situation. An early example was ALVINN, described by Dean Pomerleau at the 1988 NIPS conference: a three-layer neural network that took camera and laser range finder input and output a steering direction for a Carnegie Mellon test vehicle.
Behaviour cloning has a well-known weakness. Experts rarely make mistakes, so the training data shows almost nothing about how to recover from one. When the learned system drifts slightly off course it lands in situations it has never seen, its errors grow, and it drifts further. ALVINN showed exactly this: when it learned from a person's driving, it never learned what to do after straying from the road, because people seldom do. A 2011 method by Stéphane Ross, Geoffrey Gordon and J. Andrew Bagnell, known as DAgger, addresses the problem by letting the learner drive, asking the expert what it should have done in the situations it reached, adding those labels to the data and retraining. Another family, inverse reinforcement learning, tries to infer the goal behind the demonstrations rather than copying the actions.
Robotics research shows what the approach can do. In 2023 Tony Zhao, Vikash Kumar, Sergey Levine and Chelsea Finn showed a low-cost two-armed robot learning fine manipulation tasks, such as opening a translucent condiment cup and slotting in a battery, from about ten minutes of human demonstrations, with 80 to 90% success on six tasks. Their method predicts short sequences of actions at once to limit the build-up of errors. Language models use the same idea when they are fine-tuned on human-written example answers before any reinforcement learning.
In practice imitation learning can only be as good as its demonstrations, and it struggles in situations the demonstrations never covered. Methods that gather corrections, such as DAgger, or that infer the goal behind the behaviour, such as inverse reinforcement learning, are ways of reaching beyond the recorded examples.
Imitation learning copies an expert's demonstrated actions. Reinforcement learning learns by trial and error, guided by a reward signal. Imitation learning needs good demonstrations but no reward function; reinforcement learning needs a reward but no demonstrations, and the two can be combined. Behaviour cloning is the simplest kind of imitation learning. A model is trained with ordinary supervised learning to predict which action an expert would take in each recorded situation. Because of distribution shift. The model only sees situations an expert got into, so when it makes a small error it ends up somewhere unfamiliar, makes bigger errors and drifts further. Methods such as DAgger fix this by collecting expert corrections in the situations the learner actually reaches. People operate a robot remotely while its sensors and motor commands are recorded, and the robot learns to reproduce the behaviour. Research in 2023 showed a low-cost robot learning delicate two-handed tasks from about ten minutes of demonstrations.Common questions
What is the difference between imitation learning and reinforcement learning?
What is behaviour cloning?
Why does behaviour cloning fail?
How is imitation learning used in robotics?
Search for "imitation learning", "behavior cloning", "DAgger" or "learning from demonstration robotics" to learn more. Robotics papers on arXiv and university course material on reinforcement learning are the most reliable sources. Robot demonstration videos from companies are often edited or teleoperated, so check whether a clip shows an autonomous policy before drawing conclusions.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.