Is Inverse Reinforcement Learning Harder than Standard Reinforcement Learning?

Lei Zhao, Mengdi Wang, Yu Bai · Submission to ICLR 2024 · Rejected

TL;DR

This paper provides the first provably sample-efficient algorithms for Inverse Reinforcement Learning (IRL) in standard offline and online episodic tabular MDPs. By framing reward recovery via parameterized reward mappings and applying principles like pessimism and reward-free exploration, the authors prove nearly matching sample complexity upper and lower bounds. Their results show that IRL is essentially no harder than standard RL when learning transferable, feasible reward functions.

What Problem Does This Paper Address?

In standard Reinforcement Learning (RL), an agent learns an optimal policy given an environment and a reward function. In Inverse Reinforcement Learning (IRL), the task is reversed: given expert demonstrations and an environment without rewards, the agent aims to infer the underlying reward function.

Despite practical success in robotics and Reinforcement Learning from Human Feedback (RLHF), IRL theory lags significantly behind standard RL. Theoretical analysis faces severe hurdles:

  1. Reward Ambiguity / Non-Uniqueness: Multiple rewards (including the trivial reward $r \equiv 0$) make an expert policy optimal.
  2. Weak Metrics: Existing theoretical metrics (e.g., Hausdorff distance over feasible reward sets or checking $Q$-values solely at the initial state) either fail to capture full transition dynamics or trivialize the learning problem.
  3. Lack of Standard Trajectory Guarantees: Prior theoretical guarantees relied heavily on generative models (simulators where any state-action pair can be queried at will), leaving standard offline datasets and interactive online exploration open.

Methods

The authors rethink the IRL objective by focusing on recovering a reward mapping $\mathcal{R}(V, A)$, which maps value/advantage function parameters to the set of feasible rewards. They establish new trajectory-aware distance metrics ($d^\pi$ and $D^\pi_\Theta$) that measure how well estimated rewards preserve value functions under policies:

  • Offline IRL — Reward Learning with Pessimism (RLP): Given offline trajectories collected by a behavior policy $\pi^b$, RLP builds an empirical model of transitions and expert policy support. Crucially, it subtracts an uncertainty bonus $b_h^\theta(s,a)$ derived from empirical Bernstein bounds. This pessimism guarantees that estimated rewards lower-bound the true reward mapping while maintaining bounded error on states covered by the single-policy concentrability coefficient $C^\star$.

  • Online IRL — Reward Learning with Exploration (RLE): RLE operates interactively. It uses minimax reward-agnostic exploration to actively learn a behavior policy $\pi^b$ that guarantees uniform coverage over all deterministic policies (effectively achieving $C^\star \approx A$). Then, it collects samples with $\pi^b$ and calls RLP as a sub-routine.

  • Transfer Learning: The authors introduce weak-transferability and transferability coefficients to quantify distribution shifts between source and target MDP dynamics, proving that rewards learned in a source environment successfully guide downstream RL in a different target environment.

Datasets

Not discussed in the paper. This work is purely theoretical and does not benchmark on empirical or synthetic datasets.

Key Insights and Ideas

  • Reward Mappings Resolve Ambiguity: Instead of trying to identify a single arbitrary reward or computing a loose set metric, learning the mapping $(V, A) \mapsto r$ preserves the entire geometry of feasible rewards.
  • Pessimism Works for IRL Too: Just as pessimism in offline RL avoids overestimating poorly covered actions, pessimism in offline IRL penalizes uncertainty in transition dynamics $\widehat{P}_h V_{h+1}$, ensuring safe policy evaluation under the learned reward.
  • Value-Preserving Rewards Ensure Downstream Optimality: Under the paper's metric $d^{\text{all}}$, near-optimal policies learned under the recovered reward are guaranteed to remain near-optimal under the true reward in the true environment.

Key Results

  • Offline Sample Complexity: For small $\epsilon$, RLP achieves an offline sample complexity of: $$\widetilde{O}\left(\frac{C^\star H^4 S \log \mathcal{N}(\Theta; \epsilon/H)}{\epsilon^2}\right)$$ When considering the full parameter space $\Theta = \mathcal{V} \times \mathcal{A}$, this translates to $\widetilde{O}(C^\star H^4 S^2 / \epsilon^2)$.

  • Offline Lower Bound: Any algorithm requires at least $\Omega(C^\star H^2 S \min\{S, A\} / \epsilon^2)$ samples, showing the upper bound is tight in $S$ when $S \le A$.

  • Online Sample Complexity: RLE achieves an online sample complexity of: $$\widetilde{O}\left(\frac{H^4 S^2 A}{\epsilon^2}\right)$$ This matches the rate of prior exploratory IRL work while satisfying a strictly stronger evaluation metric that fully captures transition dynamics.

  • Online Lower Bound: The authors establish an online lower bound of $\Omega(H^3 S A \min\{S, A\} / \epsilon^2)$, demonstrating near-optimality when $S \le A$.

Limitations and Future Work

  • Tabular Setting: The theoretical bounds apply to tabular episodic MDPs with small state and action spaces. Extending these guarantees to function approximation (e.g., linear MDPs or neural network representations) remains an open challenge.
  • Horizon Gap: There remains a polynomial gap in the horizon length $H$ between the upper bounds ($H^4$) and lower bounds ($H^2$ or $H^3$).
  • Computational Efficiency: While polynomial in run-time, optimizing over large parameter coverings or executing multiple Frank-Wolfe sub-routines can be computationally demanding in practice.

Summary updated

Abstract

Inverse Reinforcement Learning (IRL)---the problem of learning reward functions from demonstrations of an \emph{expert policy}---plays a critical role in developing intelligent systems, such as those that understand and imitate human behavior. While widely used in applications, theoretical understandings of IRL admit unique challenges and remain less developed compared with standard RL theory. For example, it remains open how to do IRL efficiently in standard \emph{offline} settings with pre-collected data, where states are obtained from a \emph{behavior policy} (which could be the expert policy itself), and actions are sampled from the expert policy. This paper provides the first line of results for efficient IRL in vanilla offline and online settings using polynomial samples and runtime. We first design a new IRL algorithm for the offline setting, Reward Learning with Pessimism (RLP), and show that it achieves polynomial sample complexity in terms of the size of the MDP, a concentrability coefficient between the behavior policy and the expert policy, and the desired accuracy. Building on RLP, we further design an algorithm Reward Learning with Exploration (RLE), which operates in a natural online setting where the learner can both actively explore the environment and query the expert policy, and obtain a stronger notion of IRL guarantee from polynomial samples. We establish sample complexity lower bounds for both settings showing that RLP and RLE are nearly optimal. Finally, as an application, we show that the learned reward functions can \emph{transfer} to another target MDP with suitable guarantees when the target MDP satisfies certain similarity assumptions with the original (source) MDP.
BibTeX
@misc{zhao2023is,
  author = {Lei Zhao and Mengdi Wang and Yu Bai},
  title = {{Is Inverse Reinforcement Learning Harder than Standard Reinforcement Learning?}},
  year = {2023},
  eprint = {2312.00054},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.00054},
}
Figure