Introduction
Standard Inverse Reinforcement Learning (IRL) and Apprenticeship Learning (AL) typically operate under a simplifying assumption: that an expert's demonstrations are driven by a single, consistent reward function. However, in the real world, agents frequently change their goals. For instance, a driver might prioritize safety on one day and speed on another.
If an apprentice AI is given a batch of unlabeled trajectories generated by multiple unknown intentions, standard IRL fails because it attempts to average out fundamentally conflicting behaviors. This paper formalizes the problem of learning from multiple intentions and introduces a novel approach to automatically cluster observed behaviors into distinct reward functions without requiring manual labels.
Methodology
To solve the multi-intention problem, the authors propose two main technical contributions: a foundational IRL algorithm and a clustering framework.
1. Maximum Likelihood IRL (MLIRL)
MLIRL is introduced as a simple, gradient-based IRL algorithm. It assumes that the expert randomizes their actions using a Boltzmann exploration policy, which makes the likelihood of actions infinitely differentiable. The algorithm then uses gradient ascent to find the reward weights that maximize the likelihood of the observed trajectories.
2. Expectation-Maximization (EM) Trajectory Clustering
To handle multiple intentions, the authors wrap MLIRL (or potentially other IRL algorithms) within an Expectation-Maximization (EM) loop:
- E-Step: Calculates the probability that each trajectory belongs to a specific cluster (intention) based on the current reward weights.
- M-Step: Uses MLIRL to update the reward weights for each cluster to maximize the likelihood of the trajectories assigned to it.
When the apprentice needs to act on a new trajectory, it uses Bayes' rule to infer cluster probabilities, creates a weighted average reward function based on those probabilities, and computes an optimal policy for that specific situation.
Experimental Setup and Key Insights
The authors evaluated their approach on simulated environments rather than static datasets:
- 16x16 Grid World: A standard single-expert domain used to benchmark MLIRL against existing IRL/AL algorithms.
- 5x5 Grid World with Puddles: A custom environment with two distinct experts (one avoids puddles, one ignores them) to test the EM clustering.
- Simulated Highway Car Domain: A stochastic, infinite-horizon driving simulator featuring four distinct driving styles ("Safe", "Student", "Demolition", and "Nasty").
A critical insight from these experiments is that mixing experts is worse than ignoring them. If you naively train a single IRL model on data from multiple experts, the resulting policy performs worse than if you just trained on a single new trajectory from scratch. Clustering is essential to extract value from historical multi-intention data.
Key Results
In the single-expert 16x16 Grid World, MLIRL demonstrated superior performance. When given 30 or more sample trajectories, MLIRL outperformed six other IRL algorithms, including MaxEnt, LPAL, MWAL, Projection, Policy Matching, and a novel LPIRL variant.
In the 5x5 Puddle Grid World, the EM algorithm successfully separated 12 unlabeled trajectories into the correct underlying expert profiles (puddle-avoider vs. puddle-ignorer). It handled ambiguous short trajectories gracefully by assigning them probabilistic cluster memberships, refining its confidence over successive iterations.
Finally, in the complex Highway Car domain, the EM approach (using MLIRL) achieved an average reward of ~3.5 to 4.0. This vastly outperformed a "Single Expert AL" baseline (which naively mixed all data and scored ~1.0) and an "Online AL" baseline (which ignored prior data and scored ~1.5 to 2.0).
Limitations and Future Work
While highly effective, the authors note some limitations. Designing a policy indirectly through a reward function can sometimes be less stable than optimizing the policy directly. Additionally, it remains an open theoretical question whether infinite-horizon value iteration with the Boltzmann operator (used in MLIRL) is guaranteed to converge, even though it behaved well empirically in their finite-horizon tests.
For future work, the authors plan to use these learned, clustered intentions to predict the behavior of other agents, which could significantly improve interaction and planning in complex multiagent environments.
Summary updated