Abstract
The problem of learning an expert’s unknown reward function using a limited number of demonstrations recorded from the expert’s behavior is investigated in the area of inverse reinforcement learning (IRL). To gain traction in this challenging and underconstrained problem, IRL methods predominantly represent the reward function of the expert as a linear combination of known features. Most of the existing IRL algorithms either assume the availability of a transition function or provide a complex and inefficient approach to learn it. In this paper, we present a model-free approach to IRL, which casts IRL in the maximum likelihood framework. We present modifications of the model-free Q-learning that replace its maximization to allow computing the gradient of the Q-function. We use gradient ascent to update the feature weights to maximize the likelihood of expert’s trajectories. We demonstrate on two problem domains that our approach improves the likelihood compared to previous methods.
Introduction
Inverse Reinforcement Learning (IRL) is the task of deducing an agent's underlying goals—represented as a reward function—by observing its actions. Most traditional IRL methods are "model-based," meaning they assume the learner already knows the environment's physics, specifically the transition function $T(s, a, s')$.
However, in real-world applications such as robotic navigation or autonomous driving, the transition function is often unknown, highly complex, or stochastic. Existing "model-free" IRL methods typically attempt to sidestep this requirement by using a "baseline" set of random, non-expert trajectories for comparison. Collecting these baseline trajectories is not always feasible or safe. This paper introduces a novel model-free approach to IRL that learns an expert's reward function without requiring a transition model or a secondary set of non-expert trajectories, relying solely on expert demonstrations.
Methodology: Differentiable Model-Free IRL
The proposed approach builds upon Maximum Likelihood IRL (MLIRL), treating IRL as a statistical estimation problem. The goal is to find reward weights $\theta$ that maximize the probability of the observed expert trajectories.
The primary challenge in making Q-learning model-free and compatible with gradient-based optimization is the non-differentiable max operator used in standard Q-value updates. To address this, the authors propose two differentiable alternatives:
- Q-averaging: This method replaces the
maxoperator with a simple average of Q-values over all possible actions. Mathematically, this version is a "non-expansion," ensuring convergence to a unique fixed point. - Q-softmax: This replaces
maxwith a Boltzmann-weighted mean (softmax). While it more closely approximates themaxoperator, it can introduce numerical instability during optimization.
By employing these differentiable updates, the learner can compute the gradient of the log-likelihood of expert trajectories with respect to the reward weights $\theta$. This allows for the use of gradient ascent to iteratively refine the estimate of the expert's preferences.
Experimental Setup
The researchers evaluated the proposed methods on two distinct domains:
Gridworld
A $5 \times 5$ synthetic environment where an agent must reach specific corners while avoiding "blue" cells. This domain was tested in both deterministic and noisy (10% slip chance) variants to evaluate robustness.
NGSIM Freeway Merging
The method was also applied to the Next Generation SIMulation (NGSIM) dataset, which contains real-world vehicle trajectories from US highways. The focus was on the "Freeway Merging" scenario, a complex task where a vehicle must navigate between others to join traffic.
The study used 12 trajectories where drivers exhibited "risky" behavior (frequent acceleration) to determine if the model could recover their underlying driving style without an explicit model of traffic dynamics.
Results and Discussion
The experimental results demonstrate that the proposed Q-averaging method consistently outperforms both model-based and existing model-free baselines.
In the noisy Gridworld environment, Q-averaging achieved a significantly higher log-likelihood ($-40.49$) compared to model-based MLIRL ($-45.05$) and Relative Entropy IRL ($-72.11$). This suggests that the model-free approach is more robust to stochasticity than methods that rely on potentially inaccurate transition models.
On the real-world NGSIM data, the performance gap was even more pronounced. The model-based approach struggled ($-1927.09$) due to the inherent difficulty of modeling complex traffic interactions. In contrast, Q-averaging reached a final log-likelihood of $-1891.34$.
Key Insights
- Robustness of Simplicity: Surprisingly, the simpler Q-averaging method outperformed the more complex Q-softmax. High "temperature" values in softmax often led to exploding gradients, whereas lower values caused the update to behave similarly to simple averaging.
- Elimination of Model Bias: In complex tasks like highway merging, model-based methods often fail because the estimated transition model is a poor approximation of reality. The model-free approach avoids this "model bias" entirely.
- Practicality: Unlike previous model-free techniques like Relative Entropy IRL, this method does not require a secondary set of random trajectories, making it highly practical for real-world robotics where data collection is expensive.
Conclusion and Future Work
This paper presents a robust, model-free framework for IRL that leverages differentiable Q-learning updates. While successful, the current framework assumes all demonstrations come from a single expert style. Future work could extend this to handle multiple experts with diverse preferences. Additionally, exploring optimization techniques that do not require gradients might allow the use of the standard "max" operator in a model-free context. Finally, applying this method to multi-agent dynamics remains a promising avenue for autonomous driving research.
Summary updated