Abstract
We introduce Online Apprenticeship Learning (OAL), a framework designed for agents to mimic expert behavior in real-time within unknown environments. Traditional apprenticeship learning often requires solving a full Markov Decision Process (MDP) at every iteration, which is computationally prohibitive for online settings. OAL addresses this by utilizing dual Mirror Descent updates for both the policy and the cost function, achieving sample efficiency without the need for exhaustive optimization. Our results show that OAL achieves optimal regret bounds and outperforms existing methods like GAIL in complex continuous control tasks.
Introduction
In Reinforcement Learning (RL), defining an accurate cost function is often a bottleneck for real-world applications. Apprenticeship Learning (AL) bypasses this by learning from expert demonstrations. However, most AL algorithms are batch-oriented and computationally expensive, requiring a "best response" policy at every step. This paper proposes OAL, an online approach that treats apprenticeship learning as a stable min-max game between a policy player and a cost player.
Methodology
OAL employs Dual Mirror Descent, where both the policy and cost function are updated simultaneously using no-regret algorithms. This approach ensures convergence to an equilibrium without the need to solve a complete MDP at each step, making it computationally light.
To handle the exploration-exploitation trade-off, OAL incorporates Optimistic Exploration via UCB (Upper Confidence Bound) bonuses in tabular settings. This encourages the agent to visit states outside the expert's demonstrated path, which is vital for robust recovery from errors. For high-dimensional environments, the framework is extended to Deep OAL using Mirror Descent Policy Optimization (MDPO), replacing standard discriminators with a learned cost function.
Experimental Results
Tabular Analysis and Exploration
The theoretical efficiency of OAL is supported by a proven regret bound of $O(\sqrt{K})$, matching the optimal rate for standard RL. Experiments in tabular MDPs highlight the critical role of exploration in reducing apprenticeship regret.
As seen in Figure 1, optimistic exploration (UCB) significantly reduces regret compared to methods without exploration bonuses. Furthermore, OAL consistently outperforms Behavioral Cloning (BC), particularly as the amount of expert data increases, demonstrating superior sample efficiency.
MuJoCo Benchmarks
Deep OAL was evaluated against state-of-the-art methods like GAIL and BC across several MuJoCo continuous control environments, including Walker2d, Hopper, Ant, HalfCheetah, and Humanoid.
Key findings from the benchmarks include:
- Performance vs. GAIL: In high-dimensional tasks like Humanoid, Deep OAL significantly outperformed GAIL. This is attributed to the stability of Mirror Descent updates compared to the often-unstable GAN training used in GAIL.
- Data Efficiency: OAL reaches expert-level performance with as few as 10 trajectories, maintaining high performance even in the "scarce data" regime.
- Cost Complexity: Interestingly, simple linear cost functions often performed as well as complex neural network-based costs, suggesting that for many tasks, overly complex reward models are unnecessary.
Discussion and Conclusion
OAL bridges the gap between theoretical regret guarantees and practical deep reinforcement learning. By prioritizing stability over exhaustive optimization, the framework achieves expert-level behavior with high sample and computational efficiency. Future work will focus on narrowing the theoretical gap for deep architectures and exploring automated cost class selection.
Summary updated