GithubHelp home page GithubHelp logo

hanhananderson / lsf-sac Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 4.13 MB

Pytorch implementations of the paper Value Functions Factorization with Latent State Information Sharing in Decentralized Multi-Agent Policy Gradients (IEEE-TETCI)

Home Page: https://ieeexplore.ieee.org/document/10185094

License: Apache License 2.0

Python 99.50% Batchfile 0.02% Shell 0.48%

lsf-sac's Introduction

LSF-SAC

This paper is accepted at IEEE Transactions on Emerging Topics in Computational Intelligence (TETCI)

Pytorch implementations of the paper Value Functions Factorization with Latent State Information Sharing in Decentralized Multi-Agent Policy Gradients and several other multi-agent reinforcement learning algorithms, including IQL, QMIX, VDN, QTRAN, QPLEX, WQMIX, DOP, and COMA, which are the state of the art MARL algorithms. The paper implementation and other algorithms' implementation is based on pymarl2.

Requirements

Acknowledgement

Installation

Install dependencies :

conda create -n pymarl python=3.8 -y
conda activate pymarl
bash install_dependencies.sh

Install SC2 :

bash install_sc2.sh

This will download SC2.4.10 into the 3rdparty folder and copy the maps necessary to run over.

Run the experiments

Run all experiments

bash FULL_run.sh

or run single experiment

python src/main.py --config=ow_qmix --env-config=sc2 with env_args.map_name=6h_vs_8z w=0.5 epsilon_anneal_time=500000 t_max=5005000

All results will be stored in the results folder.

Kill running and dead process

bash clean.sh

Result

We independently train these algorithms for 8 times and take the mean of the 8 independent results, and we evaluate them for 20 episodes every 100 training steps. All of the results are saved in ./result. Results on other maps are still in training, we will update them later.

1. Mean Win Rate of 8 Independent Runs with --difficulty=7(VeryHard)

Citation

If you find this helpful to your research, please consider citing this paper as

@article{zhou2022value,
  author = {Zhou, Hanhan and Lan, Tian and Aggarwal, Vaneet},
  journal = {IEEE Transactions on Emerging Topics in Computational Intelligence},
  title = {Value Functions Factorization With Latent State Information Sharing in Decentralized Multi-Agent Policy Gradients},
  year = {2023},
  volume = {7},
  number = {5},
  pages = {1351-1361},
  publisher = {IEEE}
}

Legacy Instruments

The paper implementation and other algorithms' implementation is based on starry-sky6688's qmix impplementation.

Quick Start

$ python main.py --map=3m

Directly run the main.py, then the algorithm will start training on map 3m. Note CommNet and G2ANet need an external training algorithm, so the name of them are like reinforce+commnet or central_v+g2anet, all the algorithms we provide are written in ./common/arguments.py.

If you just want to use this project for demonstration, you should set --evaluate=True --load_model=True.

The running of DyMA-CL is independent from others because it requires different environment settings, so we put it on another project. For more details, please read DyMA-CL documentation.

Replay

Check the website for several replay examples here

If you want to see the replay from your own run, make sure the replay_dir is an absolute path, which can be set in ./common/arguments.py. Then the replays of each evaluation will be saved, you can find them in your path.

lsf-sac's People

Contributors

hanhananderson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.