Skip to content
StackDecode
AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough

Imitation Learning

Learns to act by copying demonstrations from an expert.

The idea

When designing a reward is hard but demonstrations are available, learn from them. Behavioural cloning treats it as supervised learning; DAgger asks the expert to correct the learner's own mistakes; inverse RL and adversarial methods (GAIL) recover the intent behind the behaviour.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Collect expert (state, action) demonstrations.
  2. 2Train a policy to reproduce the expert's choices.
  3. 3Run the policy and see where it drifts.
  4. 4Optionally query the expert there and add the corrections.
1/4

Step by step

  1. 1Collect expert (state, action) demonstrations.
  2. 2Train a policy to reproduce the expert's choices.
  3. 3Run the policy and see where it drifts.
  4. 4Optionally query the expert there and add the corrections.

Where it is used

Driving, robotic manipulation, game AI.

Watch out for

Errors compound: the learner reaches states the expert never showed.

Related