# Imitation Learning

> Teaching a robot by showing it. It copies what a person did.

**Field:** Artificial Intelligence  
**Category:** Robotics & Vision  
**Also known as:** Learning from Demonstration, Behavior Cloning, Behavioral Cloning

## Think of it like

It is like learning to tie a shoe by watching your dad. You copy him, then try it yourself.

## Definition

Imitation learning teaches a robot by showing it what to do. A person does the task many times, often by steering the robot with a controller. The robot records what it saw and how it moved each time. A model then learns to copy those moves from the same views. The simplest kind is called behavior cloning. It needs no reward, but it only learns as well as the examples it was shown.

## Example

Jack guides a robot arm to fold a towel 100 times. The model learns from those runs and then folds new towels by itself.

## Why it matters

Writing rules for a messy job like folding cloth is very hard. Showing the robot is faster than writing the rules.

## Common mistake

Showing only perfect runs. If the robot never sees a fix after a slip, it does not know what to do when it slips.

## Three principles

- **Show, not tell.** A person does the task first.
- **Copy the moves.** Learn from what was seen and done.
- **Only as good as the demos.** Bad or narrow examples carry over.

## Related terms

- [Reinforcement Learning](https://learn.benibix.com/term/ai/reinforcement-learning)
- [Supervised Learning](https://learn.benibix.com/term/ai/supervised-learning)
- [Vision-Language-Action Model (VLA)](https://learn.benibix.com/term/ai/vision-language-action-model)
- [Sim-to-Real Transfer](https://learn.benibix.com/term/ai/sim-to-real)
- [Robot](https://learn.benibix.com/term/ai/robot)

## Told apart from

- [Imitation Learning vs Reinforcement Learning](https://learn.benibix.com/compare/imitation-learning-vs-reinforcement-learning): People think robots learn every skill by trial and error, and they do not. In reinforcement learning, the robot tries things and learns from a score. In imitation learning, a person shows the task and the robot copies it. Copying is quicker to start. But the robot only gets as good as the examples it saw.

![Three steps from left to right. A person steers a robot arm by hand. A stack of recorded runs, each a view plus the moves. The robot arm folds a new towel alone.](https://learn.benibix.com/diagrams/ai6-imitation.svg)

---

Source: https://learn.benibix.com/term/ai/imitation-learning
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
