Stochastic Inverse Reinforcement Learning

Ce Ju

Introduction

Inverse Reinforcement Learning (IRL) is the process of recovering an underlying reward function from observed expert behavior. However, IRL is fundamentally "ill-posed"—a single set of demonstrations can often be explained by multiple, vastly different reward functions. For instance, if an expert remains stationary, are they avoiding a penalty, seeking a specific location, or is the reward simply zero everywhere? This ambiguity, combined with the fact that real-world experts are often inconsistent or sub-optimal, makes traditional IRL methods prone to recovering incorrect or brittle reward models.

To address these challenges, this paper introduces Stochastic Inverse Reinforcement Learning (SIRL). Rather than attempting to find a single "true" reward function, SIRL shifts the paradigm toward recovering a probability distribution over possible rewards. This approach allows the model to embrace ambiguity and remain robust in the face of imperfect demonstrations.

The SIRL Framework

SIRL treats reward weights as random variables and employs a two-stage hierarchical method based on Monte Carlo Expectation-Maximization (MCEM):

  1. Stage 1: Monte Carlo Estimation (Exploration): The algorithm samples a collection of reward weights to create various "learning tasks." For each task, it uses gradient ascent to optimize weights against a subset of expert demonstrations, known as a representative trajectory class. This stage performs a global search of the reward space, allowing the model to escape local optima that often trap standard gradient-based methods.
  2. Stage 2: Distribution Fitting (Refinement): The optimized reward weights from Stage 1 are treated as data points. The algorithm then fits a Gaussian Mixture Model (GMM) to these points using the standard EM algorithm. The resulting GMM represents the recovered probability distribution of reward functions, capable of generating multiple valid solutions for a single task.

By optimizing over subsets of data (representative trajectory classes), SIRL effectively filters out "noise" from inconsistent expert behavior, ensuring that a few sub-optimal demonstrations do not skew the entire recovery process.

Experimental Evaluation

The authors evaluated SIRL and its deep learning variant, DSIRL, in the Objectworld environment—a grid-based benchmark where rewards are non-linear and depend on the proximity to specific combinations of colored objects. This environment is particularly useful for visualizing reward evolution through 2D heat maps.

Visual comparison of ground truth (GT) reward, policy, and value maps against various IRL methods in the Objectworld environment.

Key Results

Performance was measured using the Expected Value Difference (EVD), which quantifies the reward loss when following a policy derived from the recovered reward versus the true optimal policy.

  • Superior Accuracy: DSIRL achieved an EVD of 11.3, significantly outperforming traditional baselines like MaxEnt (48.9) and DeepMaxEnt (31.1).
  • Data Efficiency: SIRL demonstrated remarkable performance even with limited data. As shown in the figure below, DSIRL maintains a lower EVD than SIRL across varying numbers of expert demonstrations, proving highly effective even when fewer than 200 trajectories are available.
Expected Value Difference (EVD) as a function of the number of expert demonstrations, comparing SIRL and DSIRL.

Discussion and Future Work

SIRL’s ability to generate multiple distinct reward maps that all result in near-optimal policies proves its capacity to capture the underlying structure of a task rather than simply overfitting to specific demonstrations. By acknowledging ambiguity through a GMM, the framework provides solutions that are succinct, robust, and transferable.

Despite these strengths, the current formulation requires known environment dynamics (a model-based approach). Future research will focus on extending SIRL to model-free settings and testing its scalability on high-dimensional continuous control tasks, such as those found in the MuJoCo physics engine.

Summary updated

BibTeX
@misc{ju2019stochastic,
  author = {Ce Ju},
  title = {{Stochastic Inverse Reinforcement Learning}},
  year = {2019},
  eprint = {1905.08513},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.08513},
}
Figure