What is inverse reinforcement learning?
Inverse reinforcement learning (IRL) is the problem of inferring an agent's reward function from its policy or observed behaviour. Approaches typically model the agent's environment as a Markov decision process with an unknown reward and assume the observed agent follows an optimal policy.
Unlike reinforcement learning, which learns optimal behaviour from rewards obtained, IRL seeks the reward function that best explains observed behaviour, inverting the problem.
- Topic
- Machine learning, models and training
- Also known as
- IRL, inverse RL
- Origin
- 2000, Algorithms for Inverse Reinforcement Learning, ICML
How inverse reinforcement learning works
- The input is the expert's policy or, more often, a few demonstrated trajectories with known environment dynamics.
- One approach tunes the reward function directly to the data; an early method finds it with a linear programme.
- The other learns a policy whose actions match the demonstrations, obtaining the reward as an intermediate step.
- Reinforcement learning on the inferred reward then trains a policy that behaves like the expert.
In more detail
Reward ambiguity
Observed behaviour does not pin down a single reward: many reward functions, including highly degenerate ones such as a function with all reward values zero, could explain the observations. This is because the input is usually a small set of trajectories. Finding the reward that best explains observations is therefore essentially ill-posed.
Commonly confused terms
| Term | How it differs |
|---|---|
| Imitation learning | Imitation learning learns behaviour directly from expert demonstrations, behaviour cloning being its simplest form. IRL instead infers the reward behind the behaviour, which transfers more easily than a learnt policy when the environment changes. |
Why inverse reinforcement learning matters for on-premises AI
A reward function is inherently more transferable than the observed agent's policy: slight changes in the environment can make a learnt policy unusable without affecting the reward's transferability. IRL has been used for apprenticeship learning in car driving; complex helicopter manoeuvres have also been learnt from a reward inferred from an expert pilot. Inferred rewards are best reviewed with domain experts.
A logistics company records its dispatchers' routing decisions as trajectories. With IRL it estimates the implicit weights given to delivery time, fuel and driver hours, reviews the inferred reward with dispatchers and sends the suggestions of a policy trained in simulation for human approval.
Common questions
What is the difference between inverse reinforcement learning and reinforcement learning?
Reinforcement learning learns optimal behaviour from a given reward. Inverse reinforcement learning infers the reward function that explains observed behaviour.
Is the inferred reward function unique?
Usually not. Infinitely many reward functions can be consistent with an observed policy; even a trivial function giving constant reward to every state-action pair makes all behaviour optimal. Methods narrow this ambiguity with heuristics that prefer some rewards as better explanations.
Does IRL need the expert's full policy?
No. In practice the input is usually a small set of demonstrated trajectories rather than a complete policy.
Related terms
- Reinforcement learning
- Imitation learning
- Markov decision process
- Reward model
- Reinforcement learning from human feedback
Sources
- Algorithms for Inverse Reinforcement Learning, ICML 2000
- Apprenticeship Learning via Inverse Reinforcement Learning, ICML 2004
- A Survey of Inverse Reinforcement Learning: Challenges, Methods and Progress, 2018
- Towards Resolving Unidentifiability in Inverse Reinforcement Learning, 2016
In the glossary: Glossary, E to L