Introduction
Apprenticeship Learning (AL) seeks to derive an optimal policy from expert demonstrations in environments where the underlying reward or cost function is unknown. Traditionally, researchers have navigated a difficult trade-off between theoretical rigor and computational scalability. Inverse Reinforcement Learning (IRL) methods offer strong theoretical foundations but are computationally prohibitive, often requiring the solution of a full reinforcement learning problem within an inner loop. Conversely, heuristic-driven approaches like Generative Adversarial Imitation Learning (GAIL) scale well to high-dimensional tasks but lack non-asymptotic performance guarantees due to their reliance on non-convex optimization.
Presented at the NeurIPS 2019 Optimization Foundations for Reinforcement Learning Workshop, this work introduces SGD-AL, a theoretically grounded algorithm that bridges this gap. By formulating imitation as a single convex optimization problem over occupancy measures, the authors provide the first non-asymptotic performance guarantees for a policy-optimization-based approach with a computational complexity independent of the state-space size.
The Apprenticeship Learning Challenge
The primary goal of AL is to match an expert's performance without explicit knowledge of the reward function. Existing paradigms face significant hurdles:
- Inverse Reinforcement Learning (IRL): These methods are "expensive" because evaluating every candidate cost function requires solving a Markov Decision Process (MDP).
- Behavioral Cloning (BC): While simple, BC suffers from "cascading errors," where small mistakes lead the agent into unfamiliar states, causing performance to degrade rapidly.
- Adversarial Methods: While efficient, these are often based on non-convex formulations, making it difficult to provide mathematical guarantees on the quality of the final policy.
SGD-AL addresses these issues by providing an algorithm that is both computationally efficient for large state spaces and provably efficient in its convergence.
Methodology: Apprenticeship as Convex Optimization
The authors depart from the traditional two-step "learn a cost, then learn a policy" framework. Instead, they frame AL as a single convex optimization problem.
Occupancy Measures and Linear Approximation
The problem is formulated over occupancy measures—distributions representing how frequently a policy visits specific state-action pairs. The core insight is that matching the expert's occupancy measure is equivalent to imitating their behavior. To handle massive or infinite state spaces, the authors restrict the search to a linear subspace defined by a set of features ($\Phi$). This prevents the "curse of dimensionality," as the complexity becomes a function of the feature dimension rather than the state-space size.
The SGD-AL Algorithm
The authors convert the constrained optimization problem into an unconstrained one by introducing a surrogate loss function. This loss incorporates penalties for violating "Bellman flow" constraints, which ensure that the resulting occupancy measure is physically realizable within the MDP.
To minimize this loss, the authors apply Stochastic Subgradient Descent (SGD). They develop unbiased estimators for the subgradients using samples from both the expert's trajectories and the environment's transition dynamics. This allows the algorithm to update the policy iteratively without ever solving a full MDP in an inner loop.
Key Theoretical Results
The paper's primary contribution is a rigorous mathematical framework for the performance of SGD-AL:
- Theorem 1 (Performance Bound): The authors derive a high-confidence regret bound, proving that the performance gap between the learned policy and the expert policy shrinks as the number of iterations ($T$) and expert samples ($m$) increase.
- Sample and Iteration Complexity: The paper explicitly defines the number of samples and iterations required to reach a target accuracy ($\epsilon$). Crucially, these requirements do not scale with the size of the state space $|X|$, making the approach viable for high-dimensional real-world applications like autonomous driving.
- Extensibility: Because the method utilizes a Linear Programming (LP) formulation of MDPs, it can be extended to incorporate safety constraints or secondary costs, which are often difficult to manage in traditional dynamic programming approaches.
Discussion and Limitations
By bypassing the explicit recovery of a cost function, SGD-AL avoids the most computationally expensive aspect of IRL. It provides a theoretical foundation for why policy-optimization methods (like GAIL) can be successful, viewing them through the lens of stochastic convex optimization.
However, several challenges remain for future research:
- Feature Selection: The algorithm's success depends heavily on the quality of the features ($\Phi$ and $\Psi$) used to represent the state space and cost function. Currently, these must be provided by the user.
- Discount Factor Sensitivity: The derived bounds are sensitive to the discount factor ($\gamma$). As $\gamma$ approaches 1 (representing long-horizon tasks), the required sample size increases significantly.
- Empirical Validation: As a theory-focused paper, the next step involves testing SGD-AL on complex benchmarks (e.g., MuJoCo) to evaluate how these theoretical efficiencies translate to practical wall-clock time and performance.
Conclusion
SGD-AL represents a significant step forward in Apprenticeship Learning, offering a path to algorithms that are both scalable and mathematically sound. By framing imitation as a convex optimization over occupancy measures, the authors provide a robust framework for learning from experts in complex, large-scale environments.
Summary updated