Abstract: Recent research has shown the benefit of framing problems of imitation learning as solutions to Markov Decision Problems. This approach reduces learning to the problem of recovering a utility function that makes the behavior induced by a near-optimal policy closely mimic demonstrated behavior. In this work, we develop a probabilistic approach based on the principle of maximum entropy. Our approach provides a well-defined, globally normalized distribution over decision sequences, while providing the same performance guarantees as existing methods. We develop our technique in the context of modeling real-world navigation and driving behaviors where collected data is inherently noisy and imperfect. Our probabilistic approach enables modeling of route preferences as well as a powerful new approach to inferring destinations and routes based on partial trajectories.
Introduction
Inverse Reinforcement Learning (IRL) seeks to recover the underlying reward function that an expert agent optimizes based on observed demonstrations. This is a fundamentally ill-posed problem, as multiple reward functions can explain the same behavior. For instance, a shortest-path demonstration could be explained by a reward function that penalizes distance or one that is simply zero everywhere.
Previous methods like Maximum Margin Planning (MMP) attempted to find rewards that make expert paths significantly better than alternatives. However, these approaches often struggle with noisy or sub-optimal demonstrations. Other methods that match feature expectations fail to provide a principled way to choose among the many policies that satisfy those constraints.
The Maximum Entropy Framework
The authors introduce Maximum Entropy Inverse Reinforcement Learning (MaxEnt IRL) to resolve this ambiguity. By applying the Principle of Maximum Entropy, the model selects the distribution over paths that matches expert feature counts while remaining as "uncertain" as possible. This approach avoids introducing biases not present in the data.
Probabilistic Modeling and Optimization
In this framework, the probability of a trajectory $\zeta$ is proportional to the exponentiated reward: $$P(\zeta | \theta) \propto e^{\theta^\top \mathbf{f}_\zeta}$$ This results in a globally normalized distribution over all possible paths. For deterministic environments, the log-likelihood of demonstrations is convex with respect to reward weights $\theta$, allowing for efficient global optimization via gradient-based methods.
To handle large state spaces, the authors employ a dynamic programming algorithm, analogous to the forward-backward algorithm in Hidden Markov Models, to compute expected state frequencies without enumerating every path. A key advantage of this global normalization is the avoidance of "label bias," where models might unfairly prefer certain paths simply because they have fewer branching points rather than higher rewards.
Experimental Setup
The model was evaluated using a massive, real-world dataset of taxi-cab GPS trajectories:
- Data: Over 100,000 miles of driving from 25 Pittsburgh taxi drivers collected over 12 weeks.
- Environment: A road network with 300,000 states (segments) and 900,000 actions (intersections).
- Features: 22 features including road type (interstate to local), speed limits, lane counts, and transition types (e.g., hard left vs. straight).
Insights and Results
MaxEnt IRL treats the expert as an agent that is exponentially more likely to choose higher-reward paths, rather than a perfect optimizer. This probabilistic nature allows the model to handle noise and sub-optimal behavior gracefully.
Performance and Predictive Power
The model outperformed several baselines, including time-based (fastest path) and Maximum Margin Planning:
- Path Matching: MaxEnt IRL achieved a 78.79% matching rate with expert paths.
- Log-Likelihood: It provided a superior fit to held-out data (Log Prob -6.85) compared to locally normalized action-based models (-7.91).
Beyond imitation, the probabilistic framework enables powerful generative applications. By applying Bayes' Rule, the model can infer a driver's destination from a partial trajectory.
As the observed portion of a path increased from 10% to 40%, destination prediction accuracy improved from approximately 50% to over 85%.
Conclusion and Future Work
MaxEnt IRL provides a principled, probabilistic foundation for imitation learning. While highly effective for deterministic road networks, future work includes extending the exact framework to non-deterministic MDPs and exploring non-linear reward functions. Additionally, incorporating dynamic features like traffic conditions or time of day could further refine the model's accuracy in complex real-world environments.
Summary updated