SD2AIL: Adversarial Imitation Learning from Synthetic Demonstrations via Diffusion Models
Pengcheng Li, Qiang Fang, Tong Zhao, Yixing Lan, Xin Xu
TL;DR
SD2AIL tackles the scarcity of expert demonstrations in Adversarial Imitation Learning by injecting diffusion-model–generated pseudo-experts into the discriminator training. A dynamic confidence-based selection produces high-quality synthetic demonstrations, which are replayed via Prioritized Expert Demonstration Replay (PEDR) to accelerate learning. The approach, combined with SAC for policy optimization, yields superior or competitive results across four MuJoCo continuous-control tasks, with faster convergence and strong alignment between surrogate and true rewards. The work demonstrates that diffusion-enabled synthetic data can substantially boost AIL performance while maintaining data efficiency, albeit with additional training time due to diffusion computations.
Abstract
Adversarial Imitation Learning (AIL) is a dominant framework in imitation learning that infers rewards from expert demonstrations to guide policy optimization. Although providing more expert demonstrations typically leads to improved performance and greater stability, collecting such demonstrations can be challenging in certain scenarios. Inspired by the success of diffusion models in data generation, we propose SD2AIL, which utilizes synthetic demonstrations via diffusion models. We first employ a diffusion model in the discriminator to generate synthetic demonstrations as pseudo-expert data that augment the expert demonstrations. To selectively replay the most valuable demonstrations from the large pool of (pseudo-) expert demonstrations, we further introduce a prioritized expert demonstration replay strategy (PEDR). The experimental results on simulation tasks demonstrate the effectiveness and robustness of our method. In particular, in the Hopper task, our method achieves an average return of 3441, surpassing the state-of-the-art method by 89. Our code will be available at https://github.com/positron-lpc/SD2AIL.
