Distributional Inverse Reinforcement Learning

Feiyang Wu, Ye Zhao, Anqi Wu

TL;DR

This paper introduces Distributional Inverse Reinforcement Learning (DistIRL), a novel framework that goes beyond traditional IRL by learning not just the average reward, but the entire distribution of rewards. This allows for more accurate modeling of expert behavior, especially in scenarios with inherent uncertainty, and leads to the development of risk-aware policies.

What Problem Does This Paper Address?

Inverse Reinforcement Learning (IRL) aims to infer an agent's reward function from its observed behavior. However, most existing IRL methods assume that rewards are deterministic and only try to match the expected return of the expert. This is a significant limitation because many real-world scenarios, from robotic manipulation of fragile objects to biological reward signals like dopamine, are inherently stochastic. Ignoring this variability means that traditional IRL methods can miss crucial information about the expert's risk preferences and fail to learn robust, risk-aware policies. This paper addresses this gap by proposing a framework that explicitly models and learns the full distribution of rewards and returns.

Methods

The core innovation of DistIRL lies in its use of First-Order Stochastic Dominance (FSD) to compare entire return distributions, rather than just their means. This is achieved by minimizing FSD violations between the expert's return distribution and the learned policy's return distribution.

Key methodological components include:

  • Distributional Reward Modeling: Instead of a deterministic reward function $r(s, a)$, DistIRL models the reward as a random variable $r \sim q_\phi(r|s, a)$, parameterized by $\phi$.
  • FSD Violation Objective: The framework minimizes the integrated positive difference between the expert's return CDF ($F_{Z^E}$) and the learned policy's return CDF ($F_{Z^\pi}$). This is reformulated using quantile functions for practical computation.
  • Energy-Based Model (EBM) for Reward: The FSD violation is used as an energy function to define a likelihood for reward functions, encouraging those that produce small FSD violations.
  • Variational Inference: To learn the reward distribution $q_\phi$, DistIRL employs variational inference, optimizing a lower bound (ELBO) that balances fitting the expert data with a prior on the reward parameters.
  • Risk-Aware Policy Learning: The policy is updated to maximize a Distortion Risk Measure (DRM) of the return distribution. This allows the policy to be sensitive to risk preferences (e.g., risk-averse) beyond just maximizing expected return. DRMs are used as a tractable surrogate for the ideal FSD-based policy objective.

Datasets

The paper evaluates DistIRL on a variety of datasets:

  • Synthetic Benchmarks: Including a gridworld environment with stochastic rewards.
  • Real-world Neurobehavioral Data: Trajectories of mice exploring an arena, with dopamine fluctuations used as a proxy for reward signals.
  • MuJoCo Control Tasks (D4RL): Specifically, risk-sensitive D4RL benchmarks designed with stochastic penalties related to safety conditions (e.g., HalfCheetah, Hopper, Walker2D).

Key Insights and Ideas

  • Beyond Expected Return: The paper strongly argues that focusing solely on expected returns is insufficient for accurately modeling expert behavior and learning robust policies, especially when rewards are stochastic. Higher-order moments (variance, skewness, tail behavior) of the reward distribution are crucial.
  • FSD as a Powerful Tool: First-Order Stochastic Dominance provides a principled way to compare entire distributions, offering a richer criterion than simple mean matching.
  • DRMs for Risk-Aware Policies: Distortion Risk Measures offer a practical and effective way to incorporate risk preferences into policy learning, allowing agents to learn behaviors that are not just optimal on average but also safe and conservative when needed.
  • Unified Framework: DistIRL elegantly combines distributional reward learning with distributional policy learning, creating a cohesive approach for handling uncertainty in IRL.

Key Results

  • State-of-the-Art Performance: DistIRL achieves state-of-the-art performance on various offline IRL tasks, including synthetic benchmarks, neurobehavioral data, and MuJoCo control tasks.
  • Accurate Reward Recovery: DistIRL successfully recovers expressive reward representations, capturing not only the mean but also higher-order moments like variance and skewness, as demonstrated in the gridworld and mouse behavior experiments.
  • Improved Policy Learning: The learned policies are risk-aware and demonstrate better alignment with expert behavior, especially in risk-sensitive settings. For example, in risk-sensitive D4RL, DistIRL significantly outperforms baselines like BIRL and ValueDICE.
  • Robustness in Low-Data Regimes: The method shows reasonable robustness even with a limited number of expert trajectories (as few as 3-5).
  • Theoretical Guarantees: The paper provides theoretical analysis showing convergence with $\mathcal{O}(\varepsilon^{-2})$ iteration complexity.

Limitations and Future Work

  • Non-differentiable Objective: The ideal policy objective based on FSD is non-differentiable, necessitating the use of tractable DRMs as surrogates.
  • Independent State-Action Rewards: The current framework treats reward distributions for each state-action pair independently, ignoring potential correlations across different pairs.
  • Future Directions: The authors suggest extending DistIRL to capture joint reward distributions, exploring other DRM choices, and investigating finite-moment relaxations for specific reward structures. They also mention the potential of using parametric families like diffusion models for reward representation.

Summary updated

BibTeX
@inproceedings{wu2026distributional,
  author = {Feiyang Wu and Ye Zhao and Anqi Wu},
  title = {{Distributional Inverse Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ZcnZ6vs4yX},
}
Figure