Multi-task Maximum Entropy Inverse Reinforcement Learning

Adam Gleave, Oliver HabrykaarXiv 2018

Abstract

Inverse Reinforcement Learning (IRL) is a powerful tool for deducing reward functions from expert demonstrations, but it typically requires a large number of samples to be effective. This paper proposes a multi-task framework for IRL that utilizes Maximum Causal Entropy (MCE) to share information across related tasks. By incorporating regularization for discrete state spaces and meta-learning for continuous domains, the authors demonstrate that agents can achieve near-optimal performance with as little as a single demonstration. While highly effective in unimodal tasks, the study also identifies fundamental limitations in adversarial IRL when dealing with multi-modal expert behaviors.

Introduction

Inverse Reinforcement Learning (IRL) aims to recover the underlying reward function that motivates an expert's behavior. Despite its potential, standard IRL is notoriously sample-inefficient, often necessitating hundreds of demonstrations for a single task. In contrast, humans and advanced robotic systems often operate in multi-task environments where knowledge from one task (e.g., grasping a mug) should inform another (e.g., grasping a soda can).

Multi-task IRL leverages similarities between tasks to infer joint rewards more efficiently.

Existing multi-task IRL approaches primarily rely on Bayesian frameworks. While theoretically sound, these methods struggle to scale to the high-dimensional, continuous state spaces common in modern robotics. This work bridges the gap by extending the scalable Maximum Causal Entropy (MCE) IRL framework to the multi-task setting.

Methodology

The authors propose two distinct strategies tailored to environment complexity:

1. Regularized MCE IRL

For discrete environments where rewards are linear combinations of features, a regularization term is added to the MCE loss function. This term penalizes task-specific reward weights ($\theta_i$) that deviate significantly from the global mean weights ($\bar{\theta}$). This simple addition allows tasks to share a common prior while maintaining individual task-specific nuances.

2. Meta-AIRL

To address complex, non-linear rewards and unknown dynamics in continuous spaces, the authors utilize Adversarial IRL (AIRL). They integrate the Reptile meta-learning algorithm to optimize initial neural network parameters ($\phi$) that can be rapidly fine-tuned for specific tasks. This approach treats the reward function itself as the meta-learning objective.

Experimental Evaluation

The methods were evaluated on two benchmarks:

  1. Stochastic $9 \times 9$ Gridworld: A discrete environment with various terrain types (dirt, grass, lava) and rewards (gold, silver). Tasks involve different preferences for these objects.
  2. Symmetric Mountain Car: A continuous control task where the agent must reach one of two peaks. One peak contains the goal (reward), while the other is a decoy (penalty).

Results and Key Insights

The multi-task approach demonstrated significant sample efficiency gains. In gridworld experiments, the regularized multi-task learner achieved near-optimal performance with only one or two trajectories, whereas a single-task learner required over 50 demonstrations to reach comparable levels.

Performance comparison in the gridworld: Multi-Task IRL (green) achieves near-oracle performance with very few trajectories.

Key Findings:

  • Shared Priors: Leveraging task similarities allows for "one-shot" imitation learning.
  • Joint Training Failure: Simply pooling demonstrations without task labels (Joint Training) fails when tasks have conflicting preferences, highlighting the necessity of explicit multi-task modeling.
  • Adversarial Limitations: Meta-AIRL performed well on fixed-goal tasks but struggled with "variable" cases where the expert's behavior was multi-modal. Like GANs, AIRL faces challenges with mode collapse when the expert distribution is not unimodal.

Discussion and Future Work

While multi-task MCE IRL represents a major step toward sample-efficient imitation, two primary hurdles remain:

  1. Multi-modal Policies: Current adversarial methods struggle when there are multiple valid ways to complete a task. Future work may involve "unrolling" optimizations to stabilize training.
  2. Discriminator Overfitting: The learned reward networks often overfit to the specific policy used during training, making them difficult to transfer to new policies.

Integrating multi-task IRL more deeply with meta-Reinforcement Learning and developing more robust adversarial training strategies are essential next steps for complex robotics applications.

Summary updated

BibTeX
@misc{gleave2018multi,
  author = {Adam Gleave and Oliver Habryka},
  title = {{Multi-task Maximum Entropy Inverse Reinforcement Learning}},
  year = {2018},
  eprint = {1805.08882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.08882},
}
Figure