Understanding Expertise through Demonstrations: A Maximum Likelihood Framework for Offline Inverse Reinforcement Learning

Siliang Zeng, Chenliang Li, Alfredo García, Mingyi Hong

Abstract

Inverse Reinforcement Learning (IRL) is a powerful paradigm for recovering reward functions from expert demonstrations. However, in the offline setting—where interaction with the environment is prohibited—IRL faces significant challenges due to distribution shift. This paper presents Offline ML-IRL, a novel framework that combines generative world models with a bi-level maximum likelihood optimization. By constructing a conservative world model that accounts for epistemic uncertainty, the framework successfully recovers robust reward functions from fixed datasets. Experimental results on the D4RL benchmark demonstrate that Offline ML-IRL significantly outperforms existing state-of-the-art methods in high-dimensional robotic control tasks.

Introduction

Reinforcement Learning (RL) has achieved remarkable success in various domains, yet its reliance on manually specified reward functions and online exploration remains a bottleneck for real-world deployment. Inverse Reinforcement Learning (IRL) addresses the first issue by learning rewards from expert behavior. However, the requirement for online interaction is often impractical in safety-critical or expensive domains.

Offline IRL attempts to learn rewards from a static dataset of transitions and expert trajectories. The central challenge here is distribution shift: errors in the estimated transition dynamics can lead the agent to "hallucinate" high-reward regions that do not exist in the real world. This paper introduces a maximum likelihood framework designed to mitigate these errors through conservative modeling and efficient bi-level optimization.

Methodology: The Offline ML-IRL Framework

The proposed approach decomposes the offline IRL problem into a two-stage process, visualized in the pipeline below.

The Offline ML-IRL pipeline: Transition samples are used to estimate a world model via Maximum Likelihood Estimation, which then serves as the foundation for reward estimation using expert trajectories.

1. Learning a Conservative World Model

The first stage involves learning the environment dynamics $\widehat{P}(s'|s, a)$ from a dataset of transition samples $D = \{(s, a, s')\}$. To combat distribution shift, the authors incorporate uncertainty estimation. They construct a Conservative MDP where state-action pairs with low data coverage or high model uncertainty are penalized. This ensures that the subsequent IRL process does not over-optimize for regions where the world model is unreliable.

2. Bi-level Maximum Likelihood Estimation

The core of the framework is a bi-level optimization problem:

  • Upper Level: The objective is to find reward function parameters $\theta$ that maximize the likelihood of the expert trajectories $D^E = \{\tau^E\}$.
  • Lower Level: For a given reward function, the framework determines the optimal policy within the Conservative MDP.

To make this computationally feasible, the authors utilize an alternating optimization algorithm. Instead of fully solving the MDP at every iteration, they perform incremental updates to both the reward function and the policy, ensuring convergence while drastically reducing training time.

Experimental Evaluation

The framework was rigorously tested using the D4RL benchmark, focusing on MuJoCo-based continuous control tasks such as HalfCheetah, Hopper, and Walker2d. The experiments utilized various dataset types including Medium, Medium-Replay, and Medium-Expert.

Key Results

  • Superior Performance: Offline ML-IRL consistently outperformed baselines like CLARE, IQ-Learn, and ValueDICE by a large margin across most tasks.
  • Data Efficiency: The method proved robust to small expert datasets. Remarkably, it could recover high-quality rewards from as few as 1,000 expert transition samples (equivalent to a single trajectory).
  • Theoretical Soundness: The authors provide finite-time convergence analysis, proving that the algorithm reaches a stationary point and can identify global optima under linear reward parameterization.

Insights and Discussion

A critical insight of this work is that partial coverage is sufficient. The theoretical analysis shows that as long as the transition data covers the regions visited by the expert, the reward function can be recovered accurately, even if the model is poor elsewhere. Furthermore, the learned rewards are portable; they can be transferred to train agents on different, unlabeled datasets, highlighting the robustness of the recovered reward signal.

Limitations and Future Work

While Offline ML-IRL represents a significant step forward, it currently relies solely on expert demonstrations. Future research could explore integrating other forms of feedback, such as human preferences or pairwise comparisons (similar to RLHF), to create more flexible reward-learning systems. Additionally, addressing potential biases inherent in offline datasets remains an important challenge for ensuring the safety and fairness of recovered policies.

Summary updated

BibTeX
@inproceedings{zeng2023understanding,
  author = {Siliang Zeng and Chenliang Li and Alfredo García and Mingyi Hong},
  title = {{Understanding Expertise through Demonstrations: A Maximum Likelihood Framework for Offline Inverse Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=oML3v2cFg2},
}
Figure