Distributional Inverse Reinforcement Learning

Feiyang Wu, Ye Zhao, Anqi Wu · DOI

Abstract

Inverse Reinforcement Learning (IRL) traditionally seeks a single scalar reward for state-action pairs, often overlooking the inherent stochasticity and risk associated with real-world tasks. We introduce Distributional Inverse Reinforcement Learning (DistIRL), a novel framework that models rewards as full probability distributions. By leveraging first-order stochastic dominance and risk-aware policy optimization, DistIRL captures higher-order statistics such as variance and skewness. Our evaluation across synthetic environments, robotic control benchmarks, and biological datasets demonstrates that DistIRL significantly outperforms traditional mean-matching baselines and recovers reward structures that correlate with neural dopamine signals.

Introduction

The fundamental assumption in traditional IRL is that an expert's reward for a specific action is a fixed scalar value. However, many critical domains—such as robotic surgery or autonomous driving—involve outcomes that are probabilistic. A specific maneuver might be safe in most instances but catastrophic in a small fraction. Standard IRL methods, which optimize for expected (average) returns, are "blind" to these tail risks.

DistIRL addresses this by recovering the full conditional distribution of rewards $q(r|s, a)$. This allows the learner to distinguish between policies with identical means but vastly different risk profiles, effectively capturing the "vibes" and safety nuances of expert behavior.

Methodology

The core of DistIRL is the alignment of return distributions rather than just their expectations. The framework employs several key components:

  1. First-order Stochastic Dominance (FSD): Instead of simple mean-matching, DistIRL minimizes FSD violations. This ensures the learner's return distribution matches the expert's across all quantiles.
  2. Energy-Based Modeling: Reward learning is formulated as an energy-based problem, solved via variational inference using an Evidence Lower Bound (ELBO) objective.
  3. Risk-Aware Optimization: By integrating Distortion Risk Measures (DRMs) like Conditional Value-at-Risk (CVaR), the agent can prioritize avoiding worst-case outcomes.
  4. Skew-Normal Parameterization: To capture asymmetric risks, the model uses skew-normal distributions, allowing it to represent environments where negative surprises are more frequent than positive ones.
Figure 1: DistIRL minimizes violations of First-order Stochastic Dominance (FSD) to align the learner's return distribution with the expert's across all quantiles.

Experimental Evaluation

We evaluated DistIRL across three diverse domains:

  • Synthetic Gridworld: A $5 \times 5$ environment designed to test the recovery of reward variance between reliable and stochastic goals.
  • Risk-sensitive D4RL (MuJoCo): High-dimensional tasks (e.g., Half-Cheetah) modified with catastrophic failure penalties to test robustness.
  • Biological Ground Truth: A dataset of mouse spontaneous behavior with time-aligned dopamine recordings, providing a window into biological reward processing.

Results and Discussion

DistIRL demonstrates a superior ability to recover complex reward landscapes. In the synthetic gridworld, while standard Bayesian IRL (BIRL) only identifies the mean reward, DistIRL accurately maps the variance, identifying which areas of the environment are "noisy."

Figure 6: Qualitative comparison of reward recovery. DistIRL successfully recovers both the mean and variance of the reward distribution, whereas traditional BIRL fails to capture variance.

Quantitatively, DistIRL achieved a score of 3469 ± 59 on the Risk-sensitive Half-Cheetah task, significantly outperforming the ValueDICE baseline (1259 ± 78). Furthermore, in the neuroscience domain, DistIRL's recovered rewards showed a Pearson correlation of ~0.3 with actual dopamine signals, suggesting that biological systems may naturally employ distributional reward representations.

Conclusion

DistIRL shifts the IRL paradigm from mean-matching to full distribution alignment. By accounting for risk and variance, it provides a more robust and biologically plausible framework for learning from demonstrations. Future work will focus on extending this to online settings and establishing more rigorous convergence proofs for distributional objectives.

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