Imitation Learning from Observations by Minimizing Inverse Dynamics Disagreement

Chao YangOpenReview 2021

TL;DR

This paper tackles the challenge of "Learning from Observations" (LfO) where only state information is available, a more practical scenario than "Learning from Demonstration" (LfD) which requires actions too. They propose a novel method, IDDM, that bridges the performance gap between LfD and LfO by minimizing the disagreement in inverse dynamics models, achieving state-of-the-art results on challenging benchmarks.

What Problem Does This Paper Address?

Imitation learning aims to teach robots tasks by observing expert behavior. A common approach is Learning from Demonstration (LfD), which requires both the expert's states and actions. However, in many real-world scenarios, only state observations (like videos) are available, leading to the more challenging problem of Learning from Observations (LfO). This LfO setting is more practical for leveraging existing data but is harder because the agent lacks direct action supervision. The paper identifies a key theoretical gap between LfD and LfO, which arises from the disagreement in how the expert and the learning agent predict actions given state transitions (inverse dynamics). This gap hinders LfO performance, especially in complex environments.

Methods

The core of the proposed method, Inverse-Dynamics-Disagreement-Minimization (IDDM), lies in theoretically bridging the gap between LfD and LfO. The authors prove that this gap is directly related to the disagreement between the expert's and the agent's inverse dynamics models. They then derive an upper bound for this disagreement, which can be expressed as a negative causal entropy. This allows them to propose a model-free approach to minimize this upper bound. Specifically, IDDM enhances naive LfO by adding terms to the objective function that encourage policy entropy and mutual information between states and state-action pairs, effectively minimizing the inverse dynamics disagreement. The method is implemented using a GAN-like framework and optimized with policy gradient methods like PPO.

Datasets

The paper evaluates its method on several benchmark environments, including:

  • Gridworld: A custom environment designed to illustrate the relationship between inverse dynamics disagreement and the number of possible action choices.
  • Physics-based control benchmarks: CartPole, Pendulum, DoublePendulum, Hopper, HalfCheetah, and Ant. These are standard environments for evaluating reinforcement learning and imitation learning algorithms.

Key Insights and Ideas

  • The LfD vs. LfO gap is rooted in inverse dynamics disagreement: The paper provides a theoretical foundation showing that the performance difference between LfD and LfO is directly quantifiable by the disagreement in their inverse dynamics models. This is a crucial insight for understanding why LfO is inherently harder.
  • Inverse dynamics disagreement can be bounded and minimized: By deriving an upper bound for the inverse dynamics disagreement as a negative causal entropy, the authors enable a model-free optimization strategy. This is key for practical applications where environment dynamics might be unknown.
  • Policy entropy and mutual information are crucial for LfO: The proposed IDDM method leverages policy entropy and mutual information terms to effectively minimize the inverse dynamics disagreement, leading to improved performance. This highlights the importance of these components in learning from state-only observations.
  • LfO can be made more robust: The experimental results suggest that IDDM not only improves performance but also leads to more stable learning behaviors, especially in complex tasks.

Key Results

  • IDDM consistently outperforms other LfO baselines (e.g., GAIfO, BCO, DeepMimic) on challenging control tasks, achieving significant improvements on tasks like HalfCheetah, Ant, and Hopper. For instance, on the Ant task, IDDM achieved a return of 5699.3±51.8, compared to GAIfO's 3955.1±22.1.
  • In the Gridworld experiments, IDDM showed a growing trend in performance as the number of action choices (and thus inverse dynamics disagreement) increased, demonstrating its ability to handle varying levels of complexity.
  • The ablation studies confirmed the importance of both the policy entropy and mutual information terms, showing that their inclusion consistently improved performance.

Limitations and Future Work

  • Deterministic dynamics assumption: The theoretical derivations and practical implementation of IDDM rely on the assumption of deterministic environment dynamics. While the paper notes that this is often true in practice for continuous control tasks, it might limit applicability to highly stochastic environments.
  • Focus on control planning: The current work primarily focuses on control planning tasks. The authors suggest that future work could explore combining their approach with representation learning to enable imitation learning across different domains.

Summary updated

Abstract

This paper studies Learning from Observations (LfO) for imitation learning with access to state-only demonstrations. In contrast to Learning from Demonstration (LfD) that involves both action and state supervision, LfO is more practical in leveraging previously inapplicable resources (e.g. videos), yet more challenging due to the incomplete expert guidance. In this paper, we investigate LfO and its difference with LfD in both theoretical and practical perspectives. We first prove that the gap between LfD and LfO actually lies in the disagreement of inverse dynamics models between the imitator and the expert, if following the modeling approach of GAIL. More importantly, the upper bound of this gap is revealed by a negative causal entropy which can be minimized in a model-free way. We term our method as Inverse-Dynamics-Disagreement-Minimization (IDDM) which enhances the conventional LfO method through further bridging the gap to LfD. Considerable empirical results on challenging benchmarks indicate that our method attains consistent improvements over other LfO counterparts.
BibTeX
@misc{yang2021imitation,
  author = {Chao Yang},
  title = {{Imitation Learning from Observations by Minimizing Inverse Dynamics Disagreement}},
  year = {2021},
  url = {https://openreview.net/forum?id=9lj655QomfT},
  howpublished = {OpenReview},
}
Figure