Giter Site home page Giter Site logo

sail's Introduction

Robust Adversarial Imitation Learning via Adaptively-Selected Demonstrations

This repository contains the PyTorch code for the paper "Robust Adversarial Imitation Learning via Adaptively-Selected Demonstrations" in IJCAI 2021. [Paper][Appendix]

Requirements

Experiments were run with Python 3.6 and these packages:

  • pytorch == 1.1.0
  • gym == 0.15.7
  • mujoco-py == 2.0.2.9

Train SAIL

  • SAIL with soft weight
 python sail_main.py --env_id 2/4/5/7 --il_method sail --weight --soft --seed 0
  • SAIL with binary weight
 python sail_main.py --env_id 2/4/5/7 --il_method sail --weight --seed 0
  • GAIL/AIRL/VAIL/InfoGAIL
 python sail_main.py --env_id 2/4/5/7 --il_method gail/airl/vail/infogail --seed 0

For other compared methods, the re-implementation of 2IWIL/IC-GAIL and D-REX can be found in core/irl.py and trex_main.py.

After saving the policy model during training, you can plot the optimization trajectories in Figure 2 under the instruction of https://github.com/tomgoldstein/loss-landscape.

Acknowledegement

We thank the authors of VILD. Our code structure is based on their source code and we also use expert data collected by VILD.

Contact

For any questions, please feel free to contact me. (Email: [email protected])

Citation

@inproceedings{ijcai2021-0434,
  title     = {Robust Adversarial Imitation Learning via Adaptively-Selected Demonstrations},
  author    = {Wang, Yunke and Xu, Chang and Du, Bo},
  booktitle = {Proceedings of the Thirtieth International Joint Conference on
               Artificial Intelligence, {IJCAI-21}},
  publisher = {International Joint Conferences on Artificial Intelligence Organization},
  editor    = {Zhi-Hua Zhou},
  pages     = {3155--3161},
  year      = {2021},
  month     = {8},
  note      = {Main Track}
  doi       = {10.24963/ijcai.2021/434},
  url       = {https://doi.org/10.24963/ijcai.2021/434},
}

Reference

[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] Unlabeled Imperfect Demonstrations in Adversarial Imitation Learning. AAAI 2023.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.