Introduction
Imitation Learning (IL) trains agents to perform tasks using expert demonstrations rather than explicit reward signals. Two main approaches dominate the field: Behavioral Cloning (BC), which treats IL as a supervised learning problem to directly map states to expert actions, and Adversarial Imitation Learning (AIL), which attempts to match the state-action distribution of the expert and can leverage online, reward-free interactions with the environment.
Empirically, AIL often vastly outperforms BC when expert data is scarce. However, the theoretical understanding of why this happens has lagged behind. Specifically, existing theory hasn't tightly characterized the benefits of online interaction, nor has it fully explained how environment stochasticity (randomness) impacts the number of samples an agent needs to learn effectively. This paper aims to close that gap by providing a rigorous, variance-aware theoretical framework for model-based AIL, proving that it achieves minimax-optimal sample complexity for online interactions.
The MB-AIL Approach
The authors propose MB-AIL (Model-Based Adversarial Imitation Learning). The core innovation is decomposing the imitation learning problem into two parallel tracks, allowing the algorithm to handle general function approximations:
- Adversarial Reward Learning: The algorithm uses a no-regret online optimization method (like Follow-The-Regularized-Leader) to estimate the hidden reward function by comparing the expert's offline demonstrations with the agent's current behavior.
- Model and Policy Learning: Simultaneously, MB-AIL uses Maximum Likelihood Estimation (MLE) with an optimistic exploration strategy to learn the environment's transition dynamics (the "world model") from online, reward-free interactions. The policy is then updated by planning over this learned model using the estimated reward.
Crucially, the authors perform a second-order, horizon-free theoretical analysis. "Second-order" means the bounds scale with the variance of the returns rather than just the maximum possible return. This allows the bounds to tighten significantly as the environment approaches determinism.
Key Insights: Why and When AIL Excels
- AIL vs. BC in Low-Data Regimes: BC tries to learn the entire policy directly from expert data. AIL, however, searches over a class of reward functions and learns a transition model. If the true reward function is highly structured (i.e., the reward class is small), AIL's effective search space is much smaller than BC's. Thus, AIL needs far fewer expert demonstrations.
- The Impact of Stochasticity and Determinism: BC only cares about matching actions, making it largely insensitive to random environment transitions. AIL must match the expert's occupancy measure (where they spend time in the environment), making its estimation highly sensitive to transition stochasticity.
Thanks to the second-order analysis, the authors show that in deterministic systems, the sample complexity drops dramatically from an $\epsilon^{-2}$ dependence to an $\epsilon^{-1}$ dependence.
Theoretical Guarantees and Empirical Results
By constructing a new "hard instance" family for imitation learning, the authors prove that MB-AIL's use of online interaction is mathematically optimal (up to logarithmic factors) when expert data is limited.
- Theoretical Bounds: MB-AIL achieves an expert sample complexity of $\tilde{O}(\sigma_E^2 \log(|\mathcal{R}|)\epsilon^{-2})$ and an online interaction complexity of $\tilde{O}(\sigma^2 d_E \log(|\mathcal{P}|)\epsilon^{-2})$.
- Crushing Complex Tasks: On the high-dimensional MuJoCo Humanoid task, MB-AIL achieved a cumulative reward of 5816.4, completely outclassing baselines like BC (342.5), GAIL (1614.4), and OPT-AIL (2014.4).
- Superior Sample Efficiency: On the Walker2d environment, MB-AIL reached optimal performance in roughly 120K interaction steps, compared to ~320K steps for the model-free OPT-AIL baseline.
- GridWorld Validation: Empirical tests in a custom 9x9 grid environment perfectly mirrored the theory—shrinking the reward space size or increasing the determinism of the environment drastically improved MB-AIL's performance relative to offline BC.
Limitations and Future Work
- The Logarithmic Gap: The theoretical lower bound for expert demonstrations still has a small $\log |\mathcal{R}|$ gap compared to the upper bound. The authors hypothesize that removing this gap might be intrinsically difficult, as similar gaps persist in related behavioral cloning literature.
- Realizability Assumption: The theoretical analysis assumes that the true reward and transition dynamics perfectly exist within the chosen function classes (realizability). While the authors empirically showed that MB-AIL can handle mild model misspecification, performance does degrade as misspecification increases. Future theoretical work could explore robust guarantees under strict misspecification.
Summary updated