Apprenticeship Learning via Frank-Wolfe

Tom Zahavy, Alon Cohen, Haim Kaplan, Yishay Mansour

Abstract

We consider the applications of the Frank-Wolfe (FW) algorithm for Apprenticeship Learning (AL). In this setting, we are given a Markov Decision Process (MDP) without an explicit reward function. Instead, we observe an expert that acts according to some policy, and the goal is to find a policy whose feature expectations are closest to those of the expert policy. We formulate this problem as finding the projection of the feature expectations of the expert on the feature expectations polytope -- the convex hull of the feature expectations of all the deterministic policies in the MDP. We show that this formulation is equivalent to the AL objective and that solving this problem using the FW algorithm is equivalent well-known Projection method of Abbeel and Ng (2004). This insight allows us to analyze AL with tools from convex optimization literature and derive tighter convergence bounds on AL. Specifically, we show that a variation of the FW method that is based on taking "away steps" achieves a linear rate of convergence when applied to AL and that a stochastic version of the FW algorithm can be used to avoid precise estimation of feature expectations. We also experimentally show that this version outperforms the FW baseline. To the best of our knowledge, this is the first work that shows linear convergence rates for AL.

Introduction

In Reinforcement Learning (RL), a reward function is typically assumed to be known. However, in complex real-world tasks like autonomous driving, defining a perfect reward function is notoriously difficult. Apprenticeship Learning (AL) addresses this by observing an expert and attempting to find a policy that performs at least as well as the expert across all possible reward functions.

Mathematically, this involves matching the "feature expectations" of the expert. Previous landmark algorithms, such as the projection method by Abbeel and Ng (2004), were effective but lacked fast convergence guarantees, typically requiring $O(1/\epsilon^2)$ iterations to reach an error of $\epsilon$. This paper bridges the gap between AL and modern convex optimization to improve efficiency and establish stronger theoretical foundations.

Methodology: The Frank-Wolfe Connection

The authors re-frame AL as a convex optimization problem: finding the point in the "feature expectations polytope" (the set of all possible feature averages achievable by any policy) that is closest to the expert's feature expectations.

The Projection Method as Frank-Wolfe

A key contribution is the proof that Abbeel and Ng’s projection method is mathematically equivalent to the Frank-Wolfe (FW) algorithm, also known as the Conditional Gradient method. FW is "projection-free," avoiding expensive projections onto complex sets by solving a simple linear optimization at each step. In the context of AL, this linear optimization corresponds to a standard RL planning problem, such as Policy Iteration.

Algorithm 1: The original projection method for Apprenticeship Learning (Abbeel and Ng 2004).

Away Steps (ASCG)

Standard FW can be slow because it only adds new policies to the mixture. The authors propose Frank-Wolfe with Away Steps (ASCG). This version can actively remove or reduce the weight of suboptimal policies added in earlier iterations. This geometric insight—that the set of all policies forms a polytope—allows for the exploitation of "away steps" to achieve faster convergence.

Experimental Results

The authors evaluated their approach on two benchmarks: a 5x5 Gridworld navigation task and a Car Simulator highway driving task.

Linear Convergence

By using "away steps," the error drops exponentially (linearly in log-space), providing the first proof of a linear convergence rate for the AL problem: $h(x_t) \leq h(x_1) \exp(-\rho t)$, where $\rho$ depends on the "facial distance" of the MDP's polytope.

Comparison of error convergence between standard Frank-Wolfe (CG) and the proposed Away-Steps variant (ASCG).

As shown in the experimental results, while the standard FW (CG) baseline plateaus or slows down, the ASCG variant continues to drive the error down rapidly, reaching high-precision solutions in significantly fewer iterations. This confirms the theoretical prediction of linear convergence in practice.

Conclusion and Future Work

This work establishes a formal link between Apprenticeship Learning and convex optimization, enabling the use of advanced techniques like Away-Steps to achieve linear convergence. While the rate depends on the "facial distance" of the MDP, the empirical gains are substantial. Future work may explore extending these guarantees to non-linear function approximations in Deep RL or relaxing the polytope to achieve dimension-free convergence rates.

Summary updated

BibTeX
@inproceedings{zahavy2020apprenticeship,
  author = {Tom Zahavy and Alon Cohen and Haim Kaplan and Yishay Mansour},
  title = {{Apprenticeship Learning via Frank-Wolfe}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6150},
}
Figure