Abstract
Imitation learning often struggles to balance diversity and robustness. Behavioral Cloning (BC) captures diverse behaviors but is brittle to state distribution shifts, while Generative Adversarial Imitation Learning (GAIL) offers robustness but frequently suffers from mode collapse. This paper introduces a hybrid framework that integrates Variational Autoencoders (VAEs) with GAIL to achieve both. By learning a semantic latent space of behaviors and subsequently fine-tuning with a conditioned discriminator, the proposed model achieves robust, one-shot imitation of diverse styles across complex robotic tasks.
Introduction
The challenge of imitation learning lies in two primary paradigms. Behavioral Cloning (BC) treats imitation as a supervised learning problem, mapping states to expert actions. While BC can represent a wide range of behaviors, it is prone to "cascading failures" when the agent encounters states outside the expert's distribution. Conversely, Generative Adversarial Imitation Learning (GAIL) employs a discriminator to keep the agent within the expert distribution, providing robustness. However, GAIL often collapses to a single mode, failing to capture the variety of styles present in expert demonstrations.
The authors propose a system that is both robust to perturbations and capable of imitating diverse styles, such as varying walking gaits or reaching trajectories.
Methodology
The framework consists of a two-stage training process.
Stage 1: Latent Space Learning
A VAE is trained on demonstration trajectories to establish a structured latent space.
- Encoder: A bi-directional LSTM processes full demonstrations into a latent vector $z$.
- Decoders: The architecture utilizes dual decoders. An action decoder predicts the policy, while a state decoder predicts the next state. To handle high-dimensional correlations in agent dynamics, the state decoder employs a WaveNet-style autoregressive structure.
Stage 2: Robust Fine-tuning (Diverse GAIL)
To address the brittleness of the VAE-based policy, the model is fine-tuned using GAIL. Crucially, the discriminator is conditioned on the latent vector $z$. This modification ensures that the reward signal is specific to the intended behavior style, preventing the "averaging out" effect seen in standard GAIL and allowing for the preservation of diverse modes.
Experimental Setup
The approach was evaluated using the MuJoCo physics engine on three platforms:
- 9 DoF Jaco Robotic Arm: Reaching tasks.
- 9 DoF 2D Biped: Diverse walking speeds and styles.
- 62 DoF 3D Humanoid: Utilizing 250 trajectories from the CMU Motion Capture database, including "cat-like," "drunk," and "graceful" walks.
Analysis of Latent Space
A key advantage of this framework is the semantic structure of the learned latent space. The model supports semantic interpolation, where blending two latent vectors $z_1$ and $z_2$ results in a smooth transition between behaviors. For instance, interpolating between two reaching targets produces a trajectory directed toward the midpoint.
Results and Discussion
The "Diverse GAIL" approach demonstrated significant improvements in both robustness and diversity:
- Robustness: In 3D Humanoid tasks, fine-tuning reduced the failure (fall) rate from approximately 50-60% to 10-20%.
- One-Shot Imitation: The model successfully imitates unseen styles by encoding a single demonstration into the latent space.
- Diversity: Unlike standard GAIL, the model captured all distinct movement styles provided in the humanoid dataset.
Conclusion
While the framework provides a robust method for diverse imitation, transitions between behaviors via interpolation are not always perfectly stable. Future work may involve explicitly optimizing for these transitions and testing the model in more complex, non-simulated environments.
Summary updated