Behavioral Cloning from Observation

Faraz Torabi, Garrett Warnell, Peter Stone

Abstract

Behavioral Cloning from Observation (BCO) is a novel imitation learning framework that allows autonomous agents to learn tasks by watching state-only demonstrations (e.g., video) without needing access to the expert's internal control signals or actions. By first learning an internal "inverse dynamics model" through self-supervised exploration, BCO can infer missing expert actions and achieve state-of-the-art performance with significantly fewer environment interactions than previous methods.

Introduction

Most "Learning from Demonstration" (LfD) algorithms rely on the learner having access to the exact actions taken by the expert, such as precise joint torques in robotics. However, biological learning often occurs through observation alone—watching a tutorial without knowing the exact forces applied. Furthermore, current imitation methods like Generative Adversarial Imitation Learning (GAIL) require extensive "trial and error" interaction after seeing demonstrations, which is often impractical. BCO addresses these gaps by enabling learning from state trajectories only and drastically improving sample efficiency.

The BCO Framework

The authors propose a two-phase approach to imitation learning:

  1. Pre-demonstration (Self-Supervised Learning): Before observing expert data, the agent interacts with the environment using a random policy. It observes state transitions $(s_t, s_{t+1})$ resulting from its own actions $a_t$. This data is used to train an inverse dynamics model ($M_\theta$), which learns to predict the action that likely caused a specific transition. This model captures the "physics" of the agent's body independently of the task.
  2. Post-demonstration (Imitation): Given an expert demonstration (a sequence of states), the agent uses $M_\theta$ to infer the actions the expert likely took. The resulting state-action pairs are then used in standard Behavioral Cloning (BC) to learn a policy.
The BCO algorithmic loop, illustrating the iterative process of policy execution, model updating, and action inference.

The iterative version, BCO($\alpha$), allows the agent to use its improving policy to collect more data, refine the inverse dynamics model, and re-run the cloning process for better accuracy.

Experimental Evaluation

BCO was evaluated on four standard reinforcement learning benchmarks:

  • CartPole: Balancing a pole (discrete actions).
  • MountainCar: Driving up a hill using momentum (discrete actions).
  • Reacher (MuJoCo): A robotic arm reaching a target (continuous actions).
  • Ant-v1 (MuJoCo): A four-legged robot learning to run (high-dimensional continuous actions).

Expert demonstrations were generated using Trust Region Policy Optimization (TRPO).

Key Results and Discussion

BCO demonstrates significant advantages in sample efficiency and performance:

  • Sample Efficiency: In complex domains like "Ant" and "Reacher," BCO reached expert-level performance using 40 times fewer post-demonstration interactions than GAIL or Feature Expectation Matching (FEM).
  • Zero-Interaction Success: In simpler domains like CartPole, BCO(0)—the version with no post-demonstration interaction—matched expert performance immediately.
  • Performance Parity: Despite lacking true expert actions, BCO's performance was comparable to standard BC.
Comparison of environment interaction requirements between BCO variants and baseline methods (GAIL & FEM).

The "pre-demonstration" phase is analogous to "motor babbling" in infants, where the agent learns its own capabilities before mimicking others. This allows BCO to translate observed state transitions into its own action space, regardless of whether the expert is a "black box."

Limitations and Future Work

Current limitations include the assumption of shared state spaces between agent and expert. Future work may involve "context translation" for cases where sensors differ (e.g., pixels vs. joint sensors). Additionally, the success of BCO depends on the accuracy of the inverse dynamics model, which can be challenging in highly stochastic environments or when there is a morphological mismatch between the expert and the learner.

Summary updated

BibTeX
@inproceedings{torabi2018behavioral,
  author = {Faraz Torabi and Garrett Warnell and Peter Stone},
  title = {{Behavioral Cloning from Observation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/687},
}
Figure