Abstract: The task of learning a reward function from expert demonstrations suffers from high sample complexity as well as inherent limitations to what can be learned from demonstrations in a given environment. As the samples used for reward learning require human input, which is generally expensive, much effort has been dedicated towards designing more sample-efficient algorithms. Moreover, even with abundant data, current methods can still fail to learn insightful reward functions that are robust to minor changes in the environment dynamics. We approach these challenges differently than prior work by improving the sample-efficiency as well as the robustness of learned rewards through adaptively designing a sequence of demonstration environments for the expert to act in. We formalise a framework for this environment design process in which learner and expert repeatedly interact, and construct algorithms that actively seek information about the rewards by carefully curating environments for the human to demonstrate the task in.
Introduction
Inverse Reinforcement Learning (IRL) aims to uncover the underlying motivations of an agent—its reward function—by observing its behavior. However, traditional IRL faces two significant hurdles. First, sample inefficiency: collecting expert demonstrations is costly and time-consuming. Second, overfitting to dynamics: learners often mistake the specific path taken in a fixed environment for the objective itself. If the environment changes slightly, the learned reward function often fails to generalize.
The authors argue that a single, static environment is frequently insufficient to uniquely identify a reward function because many different rewards could explain the same behavior in that specific context.
Methodology: Adaptive Environment Design
The core innovation of this work is treating IRL as an active design problem. The learner does not just observe; it actively chooses the next environment $T$ to maximize information gain. This is achieved through a "learner-expert" loop centered on Maximin Bayesian Regret. The learner identifies environments where its current best reward estimate would perform most poorly compared to other plausible candidates, forcing the expert to act in "difficult" scenarios that quickly disambiguate competing hypotheses.
The framework introduces two primary algorithms:
- ED-BIRL (Environment Design for Bayesian IRL): Designed for discrete, tabular problems, using Markov Chain Monte Carlo (MCMC) to maintain a posterior distribution over rewards.
- ED-AIRL (Environment Design for Adversarial IRL): Designed for high-dimensional or continuous states (like robotics), utilizing an ensemble of point estimates and an extension of Adversarial IRL to aggregate data from multiple transition dynamics.
Experimental Evaluation
The researchers evaluated their approach across several simulated domains, including discrete mazes, continuous mazes, and standard MuJoCo benchmarks (Hopper, HalfCheetah, Swimmer, and Ant).
Goal Recovery in Discrete Mazes
In the discrete maze environment, an expert must reach goals while avoiding lava. Standard IRL often fails to identify goals that the expert does not visit in a single fixed layout. In contrast, ED-BIRL successfully identifies all goals and hazards within just three rounds by adaptively changing the environment layout to resolve ambiguity.
Robustness and Generalization
On MuJoCo tasks, ED-AIRL consistently outperformed standard AIRL and imitation learning baselines (GAIL, BC) when tested on unseen environment dynamics. For instance, in the Swimmer task, ED-AIRL achieved a normalized return of 69±12 on the test set, while standard AIRL managed only 44±08. In the Continuous Maze, ED-AIRL reached 71±02 on test environments, significantly higher than the 52±07 achieved by standard AIRL.
Key Insights
- Active beats Random: Adaptive design ensures every demonstration provides maximum information, whereas random environment selection (Domain Randomization) may produce uninformative or unsolvable scenarios.
- Forcing the Expert's Hand: By blocking "easy" paths or changing layouts, the designer forces the expert to reveal preferences for previously unvisited states, leading to a more robust reward function that represents true "intent."
Limitations and Future Work
While effective, ED-AIRL is computationally expensive, as selecting the optimal environment requires multiple internal policy optimizations. Additionally, like many adversarial methods, AIRL-based inference can be unstable. Future research may explore using Gaussian Processes to model the reward function, potentially providing better uncertainty estimates and making the selection process more scalable.
Summary updated