Abstract
While recent state-of-the-art results for adversarial imitation-learning algorithms are encouraging, recent works exploring the imitation learning from observation (ILO) setting, where trajectories contain only expert observations, have not been met with the same success. Inspired by recent investigations of $f$-divergence manipulation for the standard imitation learning setting, we examine the extent to which variations in the choice of probabilistic divergence may yield more performant ILO algorithms. We find that $f$-divergence minimization through reinforcement learning is susceptible to numerical instabilities. We contribute a reparameterization trick for adversarial imitation learning to alleviate the optimization challenges of the promising $f$-divergence minimization framework. Empirically, we demonstrate that our design choices allow for ILO algorithms that outperform baseline approaches and more closely match expert performance in low-dimensional continuous-control tasks.
Introduction
Imitation Learning (IL) typically requires a dataset of expert state-action pairs. However, in many real-world scenarios—like learning from YouTube videos—we only have sequences of observations (states) without the corresponding actions. This is Imitation Learning from Observation (ILO). The current state-of-the-art for ILO involves adversarial methods like GAIFO, where a discriminator distinguishes between agent and expert behavior. While powerful, these methods are notoriously unstable. Recent research suggested that using different probabilistic distances ($f$-divergences) could improve performance, but in practice, these often lead to "numerical explosions" due to exploding gradients. The authors set out to find why these instabilities happen and how to fix them.
Methods: The Reparameterization Trick
The authors build upon the $f$-Variational Imitation (f-VIM) framework, which generalizes adversarial imitation to any $f$-divergence (e.g., KL, Reverse KL, or Total Variation). Their key contribution is a reparameterization trick to stabilize training.
Standard $f$-GAN activation functions often produce reward signals that are poorly scaled (e.g., linear or exponential), leading to massive policy gradients that destabilize reinforcement learning. The authors propose a uniform activation function: $g_f(v) = f^{*-1}(r(v))$, where $r(v)$ is a bounded reward function like a sigmoid. This shift moves the "unpleasant" scaling behavior into the discriminator's optimization (which is handled by stable backpropagation) while providing the agent with a well-behaved, bounded reward signal.
They extend this to the observation-only setting, creating $f$-VIMO (Variational Imitation from Observation), and incorporate gradient-based discriminator regularization to further prevent the discriminator from "overpowering" the agent.
Experimental Results
The approach was evaluated on four standard continuous-control benchmarks from the MuJoCo physics engine: Hopper-v2, Ant-v2, HalfCheetah-v2, and Walker2d-v2. The reparameterized $f$-VIMO algorithms were compared against standard baselines like GAIL and GAIFO.
Stability and Performance
The reparameterized $f$-VIMO algorithms successfully completed training across all tasks, whereas previous implementations often failed due to numerical instability unless they were meticulously tuned with gradient clipping. In the ILO setting, specific divergences stood out: KL and Total Variation (TV) were particularly effective for the Hopper and Walker tasks, while Reverse KL performed best on HalfCheetah.
Sample Efficiency
The proposed methods were more robust when expert data was scarce. For example, $f$-VIMO using KL or TV divergence often outperformed standard GAIFO when provided with only a single expert demonstration, showing significant sample efficiency gains in low-data regimes.
Discussion and Conclusion
Adversarial RL is highly sensitive to the reward scale. By reparameterizing the divergence, the authors decouple the mathematical choice of divergence from the physical stability of the reward signal. While ILO remains fundamentally harder than standard IL—particularly in high-dimensional tasks like Ant-v2—this work demonstrates that forward KL and other divergences are viable if properly stabilized. Future work may explore optimal shapes for the internal reward function or bridge $f$-divergences with Integral Probability Metrics for even more stable imitation.
Summary updated