NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Lipschitzness Is All You Need To Tame Off-policy Generative Adversarial Imitation Learning

Lionel Blondé, Pablo Strasser, Alexandros Kalousis · DOI

Generative Adversarial Imitation Learning (GAIL) has been a breakthrough for teaching agents complex behaviors from demonstrations. However, moving GAIL to the off-policy setting—where we want to reuse old data for better sample efficiency—often leads to a "deadly triad" on steroids. This paper argues that the key to taming this beast isn't complex new architectures, but a simple mathematical property: Lipschitzness.

TL;DR

Enforcing local Lipschitz continuity on the learned reward function is a sine qua non (essential) condition for off-policy adversarial imitation learning to work. The authors provide theoretical guarantees showing how reward smoothness bounds value function variations and introduce a "pessimistic" reward preconditioning method to further boost robustness.

What Problem Does This Paper Address?

Reinforcement Learning (RL) is notoriously sensitive to hyperparameters. When you combine it with Imitation Learning (IL) via an adversarial framework (like GAIL), you add a non-stationary, learned reward function into the mix.

In the off-policy setting, we face the "deadly triad": function approximation, bootstrapping, and off-policy learning. In adversarial IL, this becomes even deadlier because the reward itself is constantly shifting as the discriminator learns. Without proper regularization, the reward landscape becomes "peaky," causing the policy to overfit to narrow spikes in the value function, leading to training collapse.

Methods

The authors build upon SAM (Sample-efficient Adversarial Mimic), an off-policy GAIL variant. Their primary tool for stabilization is Gradient Penalty (GP), which explicitly forces the discriminator (and thus the surrogate reward) to be locally Lipschitz-continuous.

Beyond just applying GP, the paper contributes:

  1. Theoretical Analysis: They derive recursive inequalities proving that if the reward is $\delta$-Lipschitz, the resulting state-action value function ($Q$) is also Lipschitz, preventing "compounding variations" from exploding.
  2. PURPLE (Pessimistic Reward Preconditioning Enforcing Lipschitzness): A novel plug-in that scales down rewards in regions where the environment dynamics or policy have high Jacobians. This "pessimism" prevents the agent from venturing into unstable regions of the state space.
  3. Comparative Study: They evaluate different gradient penalty variants (like WGAN-GP vs. DRAGAN) through a reinforcement learning lens.
Figure 1: Information flows (plain arrows) and gradient flows (dotted arrows) between modules. Best seen in color.

Datasets

The methods were rigorously tested on the MuJoCo physics engine suite via the OpenAI Gym API, including:

  • Hopper-v3, Walker2d-v3, HalfCheetah-v3, Ant-v3
  • Humanoid-v3 (the most challenging task)
  • InvertedDoublePendulum-v2

Key Insights and Ideas

  • Lipschitzness is Mandatory: In their experiments, off-policy GAIL simply failed to learn anything meaningful without gradient penalization. It is the single most important factor for success in this setting.
  • Directed vs. Isotropic Regularization: The authors found that WGAN-GP (which regularizes along lines between agent and expert samples) outperforms isotropic methods like DRAGAN. They argue WGAN-GP creates "smooth reward pathways" that act as an automatic curriculum, guiding the agent toward the expert manifold.
  • Compounding Variations: Just as errors compound in behavioral cloning, variations in the reward and dynamics can compound in the value function. If the dynamics are "jumpy" (high Jacobian), the value function's Lipschitz constant can explode unless the reward is squashed.
  • Implicit Regularization: They show that standard tricks like Target Policy Smoothing (from TD3) are actually implicit ways of enforcing Lipschitzness on the $Q$-function.

Key Results

  • Expert-Level Performance: By adding GP, the authors achieved near-expert performance across the MuJoCo suite, including the high-dimensional Humanoid task, where previous off-policy adversarial methods often struggled.
  • Predictive Validity: They introduced a "soft $\mathcal{C}$-validity pseudo-indicator" and showed a strong correlation between how well the Lipschitz constraint is satisfied and the final episodic return.
  • PURPLE Robustness: While computationally heavier, the PURPLE preconditioning significantly tightened the standard deviation of training runs, making the learning process much more reliable.

Limitations and Future Work

The main drawback of the proposed PURPLE method is its computational cost, as it requires calculating the Jacobians of the dynamics, which is expensive for complex neural network models.

The authors also note that while they've tamed the reward, the transition function of the "real world" remains a black box. Future work could involve more efficient ways to estimate and compensate for dynamics-induced instabilities without needing full Jacobian matrices at every training step.

Summary updated

BibTeX
@article{blonde2022lipschitzness,
  author = {Lionel Blondé and Pablo Strasser and Alexandros Kalousis},
  title = {{Lipschitzness Is All You Need To Tame Off-policy Generative Adversarial Imitation Learning}},
  journal = {Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=S2hJHzroJc},
}
Figure