Abstract: Imitation learning (IL) has proven to be an effective method for learning good policies from expert demonstrations. Adversarial imitation learning (AIL), a subset of IL methods, is particularly promising, but its theoretical foundation in the presence of unknown transitions has yet to be fully developed. This paper explores the theoretical underpinnings of AIL in this context, where the stochastic and uncertain nature of environment transitions presents a challenge. We examine the expert sample complexity and interaction complexity required to recover good policies. To this end, we establish a framework connecting reward-free exploration and AIL, and propose an algorithm, MB-TAIL, that achieves the minimax optimal expert sample complexity of $\widetilde{\mathcal{O}} (H^{3/2} |\mathcal{S}|/\varepsilon)$ and interaction complexity of $\widetilde{\mathcal{O}} (H^{3} |\mathcal{S}|^2 |\mathcal{A}|/\varepsilon^2)$. Here, $H$ represents the planning horizon, $|\mathcal{S}|$ is the state space size, $|\mathcal{A}|$ is the action space size, and $\varepsilon$ is the desired imitation gap. MB-TAIL is the first algorithm to achieve this level of expert sample complexity in the unknown transition setting and improves upon the interaction complexity of the best-known algorithm, OAL, by $\mathcal{O} (H)$. Additionally, we demonstrate the generalization ability of MB-TAIL by extending it to the function approximation setting and proving that it can achieve expert sample and interaction complexity independent of $|\mathcal{S}|$.
Introduction
Imitation Learning (IL) allows agents to learn complex tasks by observing expert demonstrations, bypassing the need for manual reward engineering. Adversarial Imitation Learning (AIL) is a particularly effective subset of IL that treats the problem as a minimax game: a learner attempts to match the expert's distribution while a discriminator tries to distinguish between them.
Despite its empirical success, AIL's theoretical performance has remained a "black box" when environment transitions are unknown. In real-world scenarios, agents must explore the environment to understand how actions lead to states. Previous state-of-the-art methods, such as the OAL algorithm, suffered from sub-optimal expert sample complexity (the number of demonstrations required) and high interaction complexity (the amount of environment practice required).
Methodology: The MB-TAIL Algorithm
To address these challenges, we introduce MB-TAIL (Model-Based Transition-Aware Adversarial Imitation Learning). This framework bridges AIL with Reward-Free Exploration (RFE) through several key innovations:
- Decoupled Exploration: The agent first explores the environment without a specific goal using the RF-Express algorithm to build a reliable transition model ($\hat{P}$).
- Novel Distribution Estimator: Rather than relying on standard Maximum Likelihood Estimators (MLE), which are sub-optimal for expert behavior, MB-TAIL uses the learned transition model to estimate the expert's intent more accurately, even for states the expert visited infrequently.
- Minimax Optimization: The algorithm solves the distribution matching problem by alternating between updating the reward function (discriminator) and the policy (generator) using a gradient-based approach.
- State Abstraction: To handle large state spaces, MB-TAIL can be extended to use state abstractions, making complexity independent of the total number of states $|S|$.
Theoretical and Empirical Results
MB-TAIL achieves significant theoretical improvements over existing methods. It is the first algorithm to reach the minimax optimal expert sample complexity of $\tilde{O}(H^{3/2}|S|/\epsilon)$ in the unknown transition setting. Furthermore, it reduces the interaction complexity compared to the previous best algorithm, OAL, by a factor of $H$.
Empirically, we evaluated MB-TAIL on the Reset Cliff MDP, a challenging environment where a single error resets the agent. MB-TAIL significantly outperformed Behavioral Cloning (BC), FEM, and GTAL. Most notably, it achieved a lower imitation gap than OAL using the same number of environment interactions, demonstrating its superior efficiency.
Conclusion and Future Work
MB-TAIL provides a rigorous theoretical foundation for AIL with unknown transitions, achieving minimax optimality in expert sample complexity. While the current analysis focuses on tabular MDPs and state abstractions, future research will explore horizon-free bounds to improve performance in long-term tasks and extend these provable guarantees to more general function approximation settings like linear or kernel-based models.
Summary updated