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 · OpenReview

Abstract

Off-policy Generative Adversarial Imitation Learning (GAIL) is notoriously unstable due to the "deadly triad" of reinforcement learning combined with adversarial training. This paper demonstrates that enforcing local Lipschitz-continuity on the learned reward function is a mandatory requirement for success. We provide theoretical bounds to prove this necessity and introduce a novel "pessimistic" reward shaping method, PURPLE (Pessimistic Reward Preconditioning Enforcing Lipschitzness), to enhance robustness in complex environments.

The Problem: Instability in Off-Policy Imitation

Imitation Learning (IL) allows agents to learn complex behaviors from expert demonstrations. While Behavioral Cloning (BC) is simple, it suffers from "compounding errors"—small mistakes lead the agent into unfamiliar states where it cannot recover. GAIL addresses this by using a discriminator to score how expert-like an agent's actions are, turning imitation into a Reinforcement Learning (RL) problem.

However, standard GAIL is "on-policy," making it data-hungry and slow. Transitioning to "off-policy" GAIL (using replay buffers) improves efficiency but introduces extreme instability. The authors identify a "deadlier triad": the combination of function approximation, bootstrapping, and off-policy learning, exacerbated by a non-stationary, adversarial reward. Without constraints, the learned reward function develops "peaks" that cause the agent's value estimates (Q-values) to explode, leading to total training failure.

Methods: Enforcing Lipschitzness

The authors conduct a deep dive into the mechanics of stability in off-policy GAIL, focusing on Lipschitzness—the mathematical property ensuring a function does not change too abruptly.

Comparison of dependency graphs for standard Actor-Critic, GAIL, and the SAM framework which serves as the foundation for this work.

1. Gradient Penalization (GP)

They utilize a WGAN-GP style penalty to force the discriminator (and thus the reward) to be Lipschitz-continuous. They demonstrate that this is not merely a performance trick but an essential condition for convergence. WGAN-GP creates "smooth pathways" in the reward landscape, acting as an automatic curriculum that guides the agent toward the expert manifold.

2. Theoretical Bounds

The authors derive recursive inequalities showing how the Lipschitz constant of the reward function propagates into the state-action value function ($Q$). They prove that without these bounds, "compounding variations" cause the $Q$-function's gradients to diverge.

3. PURPLE: Pessimistic Reward Preconditioning

PURPLE is a novel reward-shaping add-on that "squashes" the reward in regions where environment dynamics or the policy are highly variable. By making the reward "pessimistic" in unstable regions, it makes the resulting $Q$-function provably more robust. The architecture builds upon the SAM/DAC actor-critic setup, incorporating modern stabilizers like clipped double-Q learning and target policy smoothing.

Experimental Results

The methods were evaluated on the MuJoCo continuous control suite (Hopper, Walker2d, HalfCheetah, Ant, Humanoid) using only 10 expert trajectories per task.

  • Necessity of GP: In tasks like Ant and Hopper, agents trained without Gradient Penalty (NoGP) failed completely, collecting near-zero rewards.
  • Sample Efficiency: By combining GP with Spectral Normalization and Label Smoothing, the off-policy agent achieved near-expert performance across all tasks within a fraction of the timesteps required by on-policy methods.
  • Robustness via PURPLE: While PURPLE did not always increase the maximum return, it significantly reduced the variance of the Jacobian of the forward model. This indicates the agent learned "safer" policies that avoid unpredictable regions of the state space.

Key Insights and Future Work

A critical finding is the superiority of the minimax reward ($- \log(1 - D)$) over the non-saturating version early in training, as it is naturally more Lipschitz-continuous. This provides "training wheels" when the agent is most vulnerable to divergence.

Despite its success, PURPLE introduces computational overhead due to explicit automatic differentiation calls and requires per-environment tuning of the threshold $ au$. Future research will focus on automating these "robustness knobs" to eliminate manual reward shaping and further improve the scalability of off-policy imitation learning.

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