f-IRL: Inverse Reinforcement Learning via State Marginal Matching

Tianwei Ni, Harshit Sikchi, Yufei Wang, Tejus Gupta, Lisa Lee +1 more
11/9/2020
cs.LGcs.RO
rl

Official code: twni2016/f-IRL (46 stars, Python, MIT, PyTorch, last commit 2023-07-19).

Abstract

Imitation learning is well-suited for robotic tasks where it is difficult to directly program the behavior or specify a cost for optimal control. In this work, we propose a method for learning the reward function (and the corresponding policy) to match the expert state density.

Show full abstract

Our main result is the analytic gradient of any f-divergence between the agent and expert state distribution w.r.t. reward parameters. Based on the derived gradient, we present an algorithm, f-IRL, that recovers a stationary reward function from the expert density by gradient descent. We show that f-IRL can learn behaviors from a hand-designed target state density or implicitly through expert observations. Our method outperforms adversarial imitation learning methods in terms of sample efficiency and the required number of expert trajectories on IRL benchmarks. Moreover, we show that the recovered reward function can be used to quickly solve downstream tasks, and empirically demonstrate its utility on hard-to-explore tasks and for behavior transfer across changes in dynamics.

View on arXivView PDF

Code Implementations(1)

twni2016/f-IRLOfficial100%
PyTorchMIT

Inverse Reinforcement Learning via State Marginal Matching, CoRL 2020

468Python, ShellAug 5, 20203 years agoMIT
deep-reinforcement-learningimitation-learninginverse-reinforcement-learningmaxentmujoco+1 more

Similar Papers

Cite this paper

@article{ni2020firl,
  title  = {f-IRL: Inverse Reinforcement Learning via State Marginal Matching},
  author = {Tianwei Ni and Harshit Sikchi and Yufei Wang and Tejus Gupta and Lisa Lee and Benjamin Eysenbach},
  year   = {2020},
  eprint = {2011.04709},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.04709}
}

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/2011.04709.svg)](https://codeofpaper.com/paper/2011.04709)

Discussion