Public implementation of "Multi-Agent Graph-Attention Communication and Teaming" from AAMAS'21
Public implementation of "Multi-Agent Graph-Attention Communication and Teaming" from AAMAS'21
This is the codebase for "Multi-Agent Graph-Attention Communication and Teaming," which is published in AAMAS 2021 (oral) and presented at ICCV 2021 Mair2 Workshop (best paper award). The presentation video of this work can be found here. A short video demo can be found here. The implementation is in three domains including Predator-Prey, Traffic-Junction, and Google Researh Football.
Authors: Yaru Niu*, Rohan Paleja*, Matthew Gombolay
cd envs/ic3net-envs
python setup.py developsudo apt-get install git cmake build-essential libgl1-mesa-dev libsdl2-dev \
libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev libboost-all-dev \
libdirectfb-dev libst-dev mesa-utils xvfb x11vnc libsdl-sge-dev python3-pipgit clone https://github.com/chrisyrniu/football.git
cd football
pip install .cd envs/grf-envs
python setup.py develop-Run python main.py --help to check all the options.
-Use --first_graph_complete and --second_graph_complete to set the corresponding communication graph of the first round and second round to be complete (disable the sub-scheduler), respectively.
-Use --comm_mask_zero to block the communication.
sh train_pp_medium.shsh train_pp_hard.shsh train_tj_easy.shsh train_tj_medium.shsh train_tj_hard.shsh train_grf.sh-cd baselines
-Run python run_baselines.py --help to check all the options.
-Use --comm_action_one to force all agents to always communicate all (other) agents.
-Use --comm_mask_zero to block the communication.
-Use --commnet to enable CommNet, --ic3net to enable IC3Net, --tarcomm and --ic3net to enable TarMAC-IC3Net, and --gacomm to enable GA-Comm.
-The learning rate for IC3Net in Google Research Football was adjusted as 0.0007, otherwise it was kept as 0.001.
sh train_pp_medium.shsh train_pp_hard.shsh train_tj_easy.shsh train_tj_medium.shsh train_tj_hard.shsh train_grf.sh--plot. --plot_env should be followed by the name of this plotting environment. --plot_port should be followed by the port number you want to use.python plot.py saved/ title Reward
python plot.py saved/ title Steps-TakenIf you find our paper and repo helpful to your research, please consider citing the paper:
@inproceedings{niu2021multi,
title={Multi-Agent Graph-Attention Communication and Teaming},
author={Niu, Yaru and Paleja, Rohan and Gombolay, Matthew},
booktitle={Proceedings of the 20th International Conference on Autonomous Agents and MultiAgent Systems},
pages={964--973},
year={2021}
}The training framework is adapted from IC3Net
No open issues yet, or sync has not completed.