Skip to content
StackDecode
AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough

Inverse Reinforcement Learning

Infers the reward function an expert was optimising from watching their behaviour.

The idea

Instead of being given a reward, the learner sees expert demonstrations and searches for a reward function under which the expert's behaviour is (near-)optimal. The recovered reward explains intent and generalises to new situations better than copying actions.

Watch it run

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

  1. 1Collect expert demonstrations.
  2. 2Guess a reward function.
  3. 3Find the optimal policy for it (an inner RL loop).
  4. 4Compare its behaviour with the expert's and adjust the reward.
  5. 5Repeat until they match.
1/5

Step by step

  1. 1Collect expert demonstrations.
  2. 2Guess a reward function.
  3. 3Find the optimal policy for it (an inner RL loop).
  4. 4Compare its behaviour with the expert's and adjust the reward.
  5. 5Repeat until they match.

Where it is used

Autonomous driving, preference learning.

Watch out for

Many rewards explain the same behaviour, and the inner loop is expensive.

Related