Revisiting Maximum Entropy Inverse Reinforcement Learning: New Perspectives and Algorithms

Aaron J. Snoswell, Surya P. N. Singh, Nan Ye
12/1/2020
cs.LGcs.RO
rl

Official code: aaronsnoswell/unimodal-irl (22 stars, Jupyter Notebook, MIT, last commit 2022-09-23).

Abstract

We provide new perspectives and inference algorithms for Maximum Entropy (MaxEnt) Inverse Reinforcement Learning (IRL), which provides a principled method to find a most non-committal reward function consistent with given expert demonstrations, among many consistent reward functions. We first present a generalized MaxEnt formulation based on minimizing a KL-divergence instead of maximizing an entropy.

Show full abstract

This improves the previous heuristic derivation of the MaxEnt IRL model (for stochastic MDPs), allows a unified view of MaxEnt IRL and Relative Entropy IRL, and leads to a model-free learning algorithm for the MaxEnt IRL model. Second, a careful review of existing inference algorithms and implementations showed that they approximately compute the marginals required for learning the model. We provide examples to illustrate this, and present an efficient and exact inference algorithm. Our algorithm can handle variable length demonstrations; in addition, while a basic version takes time quadratic in the maximum demonstration length L, an improved version of this algorithm reduces this to linear using a padding trick. Experiments show that our exact algorithm improves reward learning as compared to the approximate ones. Furthermore, our algorithm scales up to a large, real-world dataset involving driver behaviour forecasting. We provide an optimized implementation compatible with the OpenAI Gym interface. Our new insight and algorithms could possibly lead to further interest and exploration of the original MaxEnt IRL model.

View on arXivView PDF

Code Implementations(1)

MIT

Algorithms for Uni-Modal Inverse Reinforcement Learning

225Jupyter Notebook, PythonJul 27, 20204 years agoMIT

Similar Papers

Cite this paper

@article{snoswell2020revisiting,
  title  = {Revisiting Maximum Entropy Inverse Reinforcement Learning: New Perspectives and Algorithms},
  author = {Aaron J. Snoswell and Surya P. N. Singh and Nan Ye},
  year   = {2020},
  eprint = {2012.00889},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.00889}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.00889.svg)](https://codeofpaper.com/paper/2012.00889)

Discussion