Introduction
In standard Reinforcement Learning (RL), an agent is given a reward function and tasked with maximizing its score. However, for many real-world tasks—like driving a car—defining a perfect, mathematically precise reward function is incredibly difficult. Apprenticeship Learning flips this script: instead of guessing the true reward function, the agent learns by observing demonstrations from an expert.
The underlying assumption is that the "true" reward is a weighted combination of several known features (e.g., speed, distance from other cars, staying on the road). Previous algorithms for this, such as the Multiplicative Weights Apprenticeship Learning (MWAL) algorithm, were computationally expensive because they required solving a full RL problem (finding an optimal policy) in every single iteration. Furthermore, these older methods often produced "mixed policies"—randomized combinations of different strategies—which are hard to implement and unintuitive for human observers.
This paper introduces a novel way to solve apprenticeship learning using Linear Programming (LP). By framing the problem as a single LP, the authors achieved massive speedups (up to 100x) over previous iterative methods and ensured the resulting agent follows a simple, stationary policy.
Methodology: The LPAL Algorithm
The authors propose two major technical contributions to streamline apprenticeship learning:
- Stationary Policy Conversion: They mathematically prove that any "mixed" policy (a randomized strategy that picks a different sub-policy at the start of every trial) can be converted into an equivalent stationary policy (a single, consistent mapping from states to actions) that achieves the exact same expected reward. They achieve this using "occupancy measures"—the expected number of times an agent visits a specific state-action pair.
- The LPAL Algorithm: Instead of the iterative, game-theoretic approach used in previous work, the authors formulate the apprenticeship learning goal as a single Linear Program (LP). By using Bellman flow constraints, they directly search for an occupancy measure guaranteed to perform at least as well as the expert across all possible weightings of the reward features. This completely bypasses the need for repeated value or policy iterations.
Experimental Setup and Key Results
The researchers evaluated their approach on two primary environments: a synthetic Gridworld (to test scalability) and a Car Driving Simulator (a more complex task balancing collision avoidance, road adherence, and speed).
Massive Computational Speedups
The core "aha moment" of the paper is realizing that the apprenticeship learning objective is linear with respect to the occupancy measure. Compressing the learning process into one optimization step yields dramatic results.
In the Gridworld experiments, the LPAL algorithm was consistently and significantly faster than all variants of the MWAL algorithm.
As shown in the table above, for a massive $256 \times 256$ grid, LPAL found a solution in about 588 seconds. In stark contrast, the previous state-of-the-art (MWAL-Dual) took nearly 30,000 seconds (over 8 hours) to complete the same task.
The Trade-off: Speed vs. Robustness
While LPAL is mathematically guaranteed to find a policy that is nearly as good as the expert, the authors discovered an interesting trade-off regarding policy quality and robustness.
LPAL is "lazy" in how it breaks ties. If multiple policies are "good enough" to beat the expert, LPAL might pick one that doesn't generalize as well as the iterative MWAL method.
In the driving simulator experiments (evaluated across "Fast", "Avoid", and "Road" expert types), both algorithms matched the expert when evaluated on the true weights ($w^* = w^E$). However, when evaluated on randomly chosen weights, the MWAL algorithm frequently produced better policies (higher $V(\pi^A)$) than LPAL. This suggests that MWAL's iterative approach has a "regularizing" effect, pushing the agent toward a more robust policy, whereas the direct LP approach simply stops once the mathematical constraints are satisfied.
Limitations and Future Work
- The "Tie-Breaking" Problem: As noted in the driving experiments, LPAL doesn't always find the best policy among those that beat the expert; it just finds a policy that works. Future work could incorporate "robust strategy" techniques from game theory to improve tie-breaking.
- Scalability to Continuous Spaces: While LP works exceptionally well for discrete states (like Gridworlds), scaling this dual LP approach to massive or continuous state spaces will likely require integration with function approximation techniques.
- Expert Suboptimality: The algorithm assumes the expert is trying to maximize some linear combination of features. If the expert is truly erratic or irrational, the performance guarantees of the LPAL method weaken.
Summary updated