Abstract
Adversarial Imitation Learning (AIL) methods like GAIL often suffer from training instability due to the brittleness of the discriminator. This paper introduces Diffusion-Reward Adversarial Imitation Learning (DRAIL), which replaces standard discriminators with a conditional diffusion model. By leveraging the diffusion model's ability to learn complex data manifolds and providing rewards based on denoising loss, DRAIL achieves smoother reward landscapes, improved data efficiency, and greater robustness to environmental noise across various continuous control tasks.
Introduction
Imitation Learning (IL) is a powerful paradigm for teaching agents complex behaviors by mimicking expert demonstrations, particularly when manual reward engineering is impractical. Generative Adversarial Imitation Learning (GAIL) has emerged as a leading approach, framing IL as a minimax game between a policy (generator) and a discriminator.
However, GAIL is notoriously "brittle." Standard discriminators, usually simple neural networks, often overfit to expert data or provide "noisy" rewards that fail to guide the agent once it wanders off the expert's path. This leads to unstable training and poor generalization to new starting positions or noisy conditions. DRAIL addresses these issues by integrating the structural advantages of diffusion models into the adversarial framework.
Background: Diffusion Models
Diffusion models are a class of generative models that learn to reverse a process of gradual noise addition.
As illustrated above, the forward diffusion process $q(\mathbf{x}_t | \mathbf{x}_{t-1})$ corrupts data with Gaussian noise until it becomes pure noise $\mathbf{x}_T$. The reverse process $p_\phi(\mathbf{x}_{t-1} | \mathbf{x}_t)$ learns to denoise the data. DRAIL leverages this denoising capability to evaluate the likelihood of state-action pairs belonging to the expert distribution.
The DRAIL Framework
The core innovation of DRAIL is the Diffusion Discriminative Classifier ($D_\phi$). Instead of a standard binary classifier, DRAIL uses a conditional diffusion model that takes a state-action pair $(s, a)$ and a class label $c$ (either "expert" or "agent").
Methodology
- Denoising Loss: The model calculates how well a state-action pair fits the "expert" distribution ($c^+$) versus the "agent" distribution ($c^-$) by measuring the diffusion denoising loss ($\mathcal{L}_{diff}$).
- The Classifier: The discriminator's output is defined as the sigmoid of the difference between these two losses: $D_\phi(s, a) = \sigma(\mathcal{L}_{diff}^- - \mathcal{L}_{diff}^+)$.
- Efficiency: While full diffusion generation is computationally expensive, DRAIL only requires a single denoising step to calculate the reward, making it practical for online reinforcement learning.
Experimental Evaluation
The authors evaluated DRAIL across six diverse continuous control domains, ranging from 2D maze navigation (MAZE) and robotic manipulation (FETCHPUSH, FETCHPICK) to high-dimensional tasks like the 24-DoF Shadow Dexterous Hand (HANDROTATE) and image-based racing (CARRACING).
Key Results
- Superior Generalization: In the FETCHPUSH task, when environment noise was doubled, DRAIL maintained a success rate over 95%, while the best baseline (Diffusion Policy) dropped to approximately 79%.
- High Data Efficiency: In the WALKER domain, DRAIL achieved high returns using only a single expert trajectory, whereas baselines like Behavioral Cloning (BC) were unstable or failed completely.
- Stable Training: DRAIL showed significantly less variance across different random seeds and was more robust to hyperparameter changes compared to standard GAIL.
Key Insights
- Smoothness: Standard discriminators often create "cliffs" in the reward landscape. Because diffusion models learn the underlying structure of the data distribution, they provide a "trail of breadcrumbs" back to expert behavior even when the agent is far off-track.
- Explicit Modeling: Unlike prior unconditional diffusion-based AIL methods, DRAIL's use of conditional labels allows it to explicitly model the boundary between expert and agent behaviors, leading to a clearer learning signal.
- Robustness: The denoising objective naturally makes the model more robust to perturbations, translating to agents that can handle higher levels of environmental noise.
Limitations and Future Work
While DRAIL is efficient by using only one denoising step for rewards, a diffusion model forward pass remains more computationally expensive than a standard MLP discriminator. Future work aims to deploy DRAIL to real-world robotic systems with high-dimensional visual inputs and explore alternative mathematical measures of distributional similarity, such as Wasserstein distance, to further enhance stability.
Summary updated