Maximum Entropy Multi-Task Inverse RL

Saurabh Arora, Bikramjit Banerjee, Prashant DoshiarXiv 2020

Introduction

Inverse Reinforcement Learning (IRL) is the process of inferring an agent's underlying reward function by observing its behavior. While standard IRL assumes an expert follows a single, consistent strategy, real-world scenarios often involve experts switching between multiple tasks or strategies. For instance, a human sorting produce might alternate between a high-precision inspection and a high-speed sorting method depending on the context.

Existing multi-task IRL approaches often struggle with computational efficiency—frequently requiring slow, iterative nonlinear programming—and "label bias," where Bayesian models become overly sensitive to trajectory length rather than intent. This paper introduces MaxEnt Multi-task IRL (ME-MTIRL), a framework that unifies clustering and reward learning into a single optimization problem.

Methodology: MaxEnt Multi-task IRL

ME-MTIRL avoids the pitfalls of iterative methods like Expectation-Maximization (EM) by formulating the problem as a unified nonlinear optimization task. The framework integrates several key components:

  • Maximum Entropy Objective: Derived from MaxEntIRL, this ensures the learned trajectory distribution is as unbiased as possible while matching expert feature counts.
  • Dirichlet Process (DP) Clustering: Elements of DP mixture modeling allow the system to automatically discover the number of distinct tasks or strategies present in the demonstrations.
  • Minimal Entropy Clustering: To prevent overfitting (where every demonstration might be assigned its own reward function), the model includes an objective to find the simplest possible cluster assignment distribution. This encourages the discovery of a minimal set of distinct behaviors.
  • Optimization via Lagrangian Relaxation: The problem is solved directly using gradient descent, providing a more mathematically grounded approach than previous heuristic-based methods.
The ME-MTIRL framework identifies distinct expert strategies, such as (a) pick-inspect-place and (b) roll-pick-place, from unlabeled demonstrations.

Experimental Evaluation

The proposed method was evaluated in a high-fidelity 3D simulation using ROS Gazebo and a Sawyer robotic arm. The task involved sorting onions on a conveyor belt based on quality.

An expert was simulated using two distinct strategies:

  1. Pick-inspect-place: A high-precision but slow strategy involving a careful check of each onion.
  2. Roll-pick-place: A high-recall but lower-precision strategy involving a quick glance while rolling the onion.
The experimental setup in ROS Gazebo featuring a Sawyer arm sorting onions on a conveyor belt.

Key Results and Insights

ME-MTIRL was compared against two major baselines: DPM-BIRL (Bayesian) and EM-MLIRL (Expectation-Maximization).

  • Accuracy: ME-MTIRL consistently achieved a lower Inverse Learning Error (ILE) than both baselines. Its error decreased monotonically with more data, indicating high stability.
  • Behavioral Recovery: The model successfully recovered both the "careful" and "quick" sorting strategies. In the "roll-pick-place" task, the learned behavior was nearly indistinguishable from the expert's.
  • Robustness: Unlike EM-MLIRL, which often converged to local optima and incorrect reward functions, the MaxEnt approach proved robust across different demonstration sets.
  • Label Bias Mitigation: By considering global trajectory distributions rather than local action probabilities, ME-MTIRL successfully avoided the label bias that often degrades the performance of Bayesian multi-task methods.

Conclusion and Future Work

ME-MTIRL represents a significant step forward in multi-task learning from demonstration, offering a unified optimization framework that is both efficient and robust. While the model occasionally struggled with long-term memory in specific cycles (e.g., repeating a pick-place action), future work will focus on scaling the method to more complex action spaces and deriving formal sample complexity bounds to quantify the number of demonstrations required for high-accuracy recovery.

Summary updated

BibTeX
@misc{arora2020maximum,
  author = {Saurabh Arora and Bikramjit Banerjee and Prashant Doshi},
  title = {{Maximum Entropy Multi-Task Inverse RL}},
  year = {2020},
  eprint = {2004.12873},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.12873},
}
Figure