This repository contains the PyTorch code for the paper "Unlabeled Imperfect Demonstrations in Adversarial Imitation Learning" in AAAI 2023. [Paper][Appendix]
Experiments were run with Python 3.6 and these packages:
- pytorch == 1.1.0
- gym == 0.15.7
- mujoco-py == 2.0.2.9
We provide two different kinds of imperfect demonstrations data (i.e., D1 and D2) to evaluate the performance of UID.
We firstly train an optimal policy
The quality of each demonstrator is provided in the appendix.
- UID-GAIL / UID-WAIL
python uid_main.py --env_id 1/2/3 --il_method uid/uidwail --c_data 1/2 --seed 0/1/2/3/4
- GAIL / WAIL / VAIL
python uid_main.py --env_id 1/2/3 --il_method gail/irl/vail --c_data 1/2 --seed 0/1/2/3/4
- 2IWIL / IC-GAIL
python uid_main.py --env_id 1/2/3 --il_method iwil/icgail --c_data 1/2 --seed 0/1/2/3/4
For other compared methods, the re-implementation of T-REX/D-REX can be found in trex_main.py.
For any questions, please feel free to contact me. (Email: yunke.wang@whu.edu.cn)
@inproceedings{wang2023unlabeled,
title={Unlabeled imperfect demonstrations in adversarial imitation learning},
author={Wang, Yunke and Du, Bo and Xu, Chang},
booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
volume={37},
number={8},
pages={10262--10270},
year={2023}
}
[1] Generative adversarial imitation learning. NeurIPS 2016.
[2] Learning robust rewards with adversarial inverse reinforcement learning. ICLR 2018.
[3] Variational discriminator bottleneck: Improving imitation learning, inverse rl, and gans by constraining information flow. ICLR 2017.
[4] InfoGAIL: Interpretable Imitation Learning from Visual Demonstrations. NeurIPS 2017
[5] Imitation learning from imperfect demonstration. ICML 2019.
[6] Extrapolating beyond suboptimal demonstrations via inversere inforcement learning from observations. ICML 2019.
[7] Better-than-demonstrator imitation learning via automatically-ranked demonstrations. CoRL 2020.
[8] Variational Imitation Learning with Diverse-quality Demonstrations. ICML 2020.
[9] Learning to Weight Imperfect Demonstrations. ICML 2021
[10] Robust Adversarial Imitation Learning via Adaptively-Selected Demonstrations. IJCAI 2021.