Skip to main content
QUICK REVIEW

[Paper Review] f-IRL: Inverse Reinforcement Learning via State Marginal Matching

Tianwei Ni, Harshit Sikchi|arXiv (Cornell University)|Nov 9, 2020
Reinforcement Learning in RoboticsComputer Science41 references4 citations
TL;DR

f-IRL proposes a novel inverse reinforcement learning method that learns a stationary reward function by minimizing any f-divergence between the agent's and expert's state distributions via analytic gradient computation. It achieves superior sample efficiency and outperforms adversarial imitation learning methods on MuJoCo benchmarks, enabling effective behavior transfer and fast downstream policy training.

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. 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.

Motivation & Objective

  • To address the challenge of learning a stationary reward function from expert state distributions in imitation learning.
  • To improve sample efficiency in inverse reinforcement learning, especially with limited expert trajectories.
  • To enable behavior transfer across changes in dynamics using the recovered reward function.
  • To provide a unified framework for learning from either expert demonstrations or directly specified target state densities.
  • To reduce hyperparameter sensitivity compared to prior adversarial imitation learning methods.

Proposed method

  • The method derives an analytic gradient of any f-divergence between the agent's and expert's state distributions with respect to reward parameters.
  • It formulates inverse reinforcement learning as an optimization problem over the f-divergence between state marginal distributions, rather than trajectory or state-action distributions.
  • f-IRL uses gradient descent to minimize the f-divergence, enabling end-to-end training of the reward function.
  • The approach supports both forward and reverse f-divergences, allowing for mode-seeking or mode-covering behavior depending on the choice.
  • It enables unnormalized density specification, simplifying preference encoding and target density definition.
  • The method is designed to recover a stationary reward function that can be reused to train policies from scratch.

Experimental results

Research questions

  • RQ1Can we learn a stationary reward function from expert state distributions using an analytic gradient of f-divergence?
  • RQ2How does f-IRL compare in sample efficiency to adversarial imitation learning methods like GAIL and AIRL?
  • RQ3Can the recovered reward function accelerate learning in hard-to-explore, sparse-reward environments?
  • RQ4Can the same reward function be transferred across changes in dynamics, such as altered robot morphology?
  • RQ5Does f-IRL require less hyperparameter tuning than prior IRL methods?

Key findings

  • f-IRL achieves better sample efficiency than GAIL, AIRL, and MaxEntIRL in terms of both environment interaction steps and number of expert trajectories on MuJoCo benchmarks.
  • On the Ant environment with 50 expert trajectories, f-IRL achieved a return of 145.5, outperforming AIRL (-29.9) and MaxEntIRL (130.3).
  • The method successfully learned a walking policy on a disabled Ant agent, demonstrating effective behavior transfer across dynamics changes.
  • In the pointmass goal-reaching task, f-IRL learned rewards that exhibited expected mode-covering (Forward KL) and mode-seeking (Reverse KL) behavior.
  • f-IRL required minimal hyperparameter tuning across all MuJoCo tasks, unlike sensitive baselines such as f-MAX and AIRL.
  • The recovered reward function enabled faster policy training on sparse-reward tasks, demonstrating utility for downstream policy learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.