MobILE: Model-Based Imitation Learning From Observation Alone

Rahul Kidambi, Jonathan Daniel Chang, Wen Sun

Introduction

Standard Imitation Learning (IL) assumes the learner has access to both the states visited by an expert and the specific actions they took (e.g., Behavior Cloning). However, in many real-world scenarios—such as learning from YouTube videos or transferring policies from simulation to reality—we only observe the expert's states. This setting is known as Imitation Learning from Observations alone (ILFO).

Without action labels, traditional supervised learning approaches fail. Existing solutions struggle with this limitation:

  • Model-free ILFO methods (like GAIFO) are highly sample-inefficient, requiring massive amounts of environmental interaction.
  • Model-based ILFO methods often try to learn an inverse dynamics model to guess the missing actions. However, this mathematically fails unless the environment has strictly "injective" dynamics (meaning no two actions can ever lead to the same next state), which is rarely true in practice.

To address these challenges, researchers introduce MobILE (Model-Based Imitation Learning and Exploring), a provably efficient framework for ILFO. By integrating "optimism in the face of uncertainty" into an adversarial distribution-matching objective, MobILE successfully balances imitating an expert with exploring the environment, achieving near-optimal theoretical regret bounds and outperforming existing baselines on continuous control tasks without ever seeing the expert's actions.

The MobILE Framework

MobILE shifts the paradigm from learning inverse dynamics to learning forward dynamics (predicting the next state given a current state and action), which is always well-defined.

The core novelty of MobILE is how it handles the tradeoff between exploration and imitation using an optimism bonus:

  1. Forward Model & Uncertainty: The agent learns a forward dynamics model while interacting with the environment. Crucially, it also calculates an uncertainty score for its predictions.
  2. Adversarial Imitation: MobILE uses an Integral Probability Metric (IPM) to match the learner's state distribution to the expert's state distribution (similar to GAIL).
  3. Optimistic Distribution Matching: The uncertainty score is subtracted from the discriminator's penalty as a "bonus."

How it works in practice: In well-explored areas where the model is confident, the bonus is zero, and the agent strictly tries to imitate the expert. In novel, unexplored areas, the uncertainty bonus cancels out the discriminator's penalty. This relaxes the requirement to match the expert and actively encourages the agent to explore unknown regions, gathering data to improve its forward model.

Practically, MobILE is instantiated using an ensemble of neural networks to model dynamics and compute uncertainty (variance across the ensemble), Maximum Mean Discrepancy (MMD) for the discriminator, and TRPO for policy optimization.

Key Insights

  • ILFO is fundamentally harder than IL: The authors mathematically prove an exponential sample complexity gap between standard IL (with actions) and ILFO (without actions). This formalizes exactly why learning from observation alone is so difficult.
  • Strategic exploration is mandatory: Because of this exponential gap, naive exploration strategies (like random $\epsilon$-greedy exploration) are mathematically insufficient for ILFO. Strategic exploration—specifically, optimism in the face of uncertainty—is strictly required to achieve optimal learning rates.
  • Forward models > Inverse models: By relying on forward dynamics rather than inverse dynamics, MobILE bypasses the restrictive assumptions of prior model-based ILFO works, allowing it to function in stochastic environments with continuous action spaces.

Empirical Results

The framework was evaluated on standard continuous control benchmarks from OpenAI Gym simulated with MuJoCo (e.g., Reacher-v2, Hopper-v2, Walker2d-v2). Expert data was generated by training an expert policy using TRPO and extracting state-only trajectories (typically just 10 trajectories per environment).

Normalized expert performance of MobILE compared to baselines across continuous control tasks.
  • Empirical Superiority: As shown above, MobILE consistently outperforms existing ILFO baselines (BC-O, GAIFO, ILPO) in both sample efficiency and final expert-normalized scores.
  • Matching Standard IL: Remarkably, despite lacking access to expert actions, MobILE matches or exceeds the performance of standard IL algorithms (Behavior Cloning, GAIL) that do have access to expert actions.
  • Theoretical Guarantees: MobILE achieves near-optimal regret bounds for various complex Markov Decision Process (MDP) classes, including discrete MDPs, Kernelized Nonlinear Regulators, and general function classes with bounded Eluder dimension.
  • Ablation on Optimism: Removing the optimistic exploration bonus causes the algorithm to fail or learn extremely slowly, proving that the theoretical need for strategic exploration translates directly to practical performance.

Limitations and Future Work

A critical ethical limitation noted by the authors is that because ILFO algorithms do not require action labels, they can easily capitalize on massive amounts of raw video data to imitate behaviors. If the expert data contains malicious or harmful behavior, ILFO makes it dangerously easy to replicate.

For future work, the authors suggest extending MobILE to handle rich, high-dimensional observation spaces (like raw video pixels). They also propose exploring alternative methods for learning dynamics models and computing strategic exploration bonuses beyond neural network ensembles.

Summary updated

BibTeX
@inproceedings{kidambi2021mobile,
  author = {Rahul Kidambi and Jonathan Daniel Chang and Wen Sun},
  title = {{MobILE: Model-Based Imitation Learning From Observation Alone}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=_Rtm4rYnIIL},
}
Figure