Optimism is All You Need: Model-Based Imitation Learning From Observation Alone

Rahul Kidambi, Jonathan D. Chang, Wen Sun

Abstract

Imitation Learning from Observation Alone (ILFO) is a challenging paradigm where an agent must learn to mimic an expert using only state trajectories, without access to the specific actions taken. We introduce MobILE (Model-based Imitation Learning and Exploring), a framework that integrates "optimism in the face of uncertainty" into a model-based distribution matching approach. MobILE not only achieves state-of-the-art performance on continuous control tasks but also establishes a theoretical foundation for the inherent difficulty of ILFO compared to standard imitation learning.

Introduction

Standard Imitation Learning (IL) typically relies on expert demonstrations consisting of state-action pairs. However, in many real-world applications—such as learning from human videos or transferring skills from simulation to physical robots—we often only have access to state observations (the "what") rather than the underlying actions (the "how"). This setting, known as ILFO, is significantly more complex because the learner must simultaneously infer the environment's dynamics and the actions required to replicate the observed state transitions.

The MobILE Framework

MobILE addresses the ILFO problem through a principled model-based approach. The algorithm operates in an iterative loop consisting of three primary components:

  1. Dynamics Model Learning: The agent interacts with the environment to collect transition data and fits a forward dynamics model ($P$). Unlike inverse models, forward models are always well-defined, even in complex environments.
  2. Optimistic Bonus Design: To ensure robust exploration, MobILE utilizes an ensemble of neural networks. Disagreement within the ensemble serves as a measure of epistemic uncertainty. The agent receives an "optimism bonus" in regions of high uncertainty, encouraging it to explore poorly understood parts of the state space.
  3. Optimistic Distribution Matching: The agent seeks a policy that matches the expert's state distribution. The optimism bonus effectively cancels out penalties for distribution mismatch in areas where the dynamics model is still being refined, preventing the agent from being prematurely penalized for failing to mimic the expert in unfamiliar territory.

Theoretical Insights: The Exponential Gap

A key contribution of this work is the formal proof of an "exponential gap" in sample complexity between ILFO and standard IL. Without action information, the learner must perform systematic exploration, transforming the imitation task into a problem structurally similar to Reinforcement Learning (RL). This theoretical result underscores why simple supervised approaches like Behavior Cloning are insufficient for ILFO and why strategic exploration—driven by optimism—is essential.

Experimental Evaluation

The researchers evaluated MobILE on several benchmark tasks from the OpenAI Gym suite, including Reacher-v2, Hopper-v2, and Walker2d-v2. MobILE was compared against several baselines: Behavior Cloning from Observation (BC-O), Generative Adversarial Imitation from Observation (GAIFO), and ILPO.

Normalized performance of MobILE compared to baselines across MuJoCo tasks.

As shown in the results, MobILE consistently matched or outperformed existing ILFO methods. In several environments, it reached expert-level performance (normalized to 1.0) with significantly higher sample efficiency than model-free alternatives. Ablation studies further confirmed that the "optimism" component is critical; without it, agents failed to reach expert performance or learned at a much slower rate.

Conclusion and Future Work

MobILE demonstrates that model-based approaches combined with optimistic exploration can effectively bridge the gap in ILFO. While the current implementation focuses on low-dimensional state vectors, future work will explore extending this framework to high-dimensional observations like raw pixels. Additionally, addressing the safety implications of mimicking unvetted expert data remains a priority for real-world deployment.

Summary updated

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