Giter Site home page Giter Site logo

dfrl-1's Introduction

Learning Fair Policies in Decentralized Cooperative Multi-Agent Reinforcement Learning PDF

We consider the problem of learning fair policies in (deep) cooperative multi-agent reinforcement learning (MARL). We formalize it in a principled way as the problem of optimizing a welfare function that explicitly encodes two important aspects of fairness: efficiency and equity. As a solution method, we propose a novel neural network architecture, which is composed of two sub-networks specifically designed for taking into account the two aspects of fairness. In experiments, we demonstrate the importance of the two sub-networks for fair optimization. Our overall approach is general as it can accommodate any (sub)differentiable welfare function. Therefore, it is compatible with various notions of fairness that have been proposed in the literature (e.g., lexicographic maximin, generalized Gini social welfare function, proportional fairness). Our solution method is generic and can be implemented in various MARL settings: centralized training and decentralized execution, or fully decentralized. Finally, we experimentally validate our approach in various domains and show that it can perform much better than previous methods.

Installation

#Create a python virtual environment with python>=3.7
python3.7 -m venv py37-dfrl
#Activate the environment
. py37-dfrl/bin/activate
#Install the minimal requirements
pip install --upgrade pip
pip install tensorflow==1.15.4 keras==2.3.1 matplotlib

#For SUMO environments:
sudo add-apt-repository ppa:sumo/stable
sudo apt-get update
sudo apt-get install sumo sumo-tools sumo-doc

#If not done by your system after SUMO installation
#Define the SUMO_HOME environment variable by creating the file /etc/profile.d/sumo.sh or in your ~/.bashrc:
export SUMO_HOME=/usr/share/sumo

#For Iroko environment:
#Clone https://github.com/matthieu637/iroko/
#Follow the script https://github.com/matthieu637/iroko/blob/master/install.sh

Training

#SOTO with alpha fairness in the centralized learning with decentralized execution scenario:
python SOTO-ALF-CLDE.py 

#SOTO with alpha fairness in the centralized learning with decentralized execution scenario:
python SOTO-ALF-CLDE.py 

#SOTO with GGF in the fully decentralized scenario:
python SOTO-ALF-FD.py 

#To change the environment, edit config.ini
#to reproduce our experiments, check the hyperparameters directory and replace config.ini

Cite

If you make use of this code, please cite:

@inproceedings{zimmer2021learning,
      title={Learning Fair Policies in Decentralized Cooperative Multi-Agent Reinforcement Learning}, 
      author={Matthieu Zimmer and Claire Glanois and Umer Siddique and Paul Weng},
      booktitle = {International Conference on Machine Learning},
      year={2021},
      eprint={2012.09421},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

dfrl-1's People

Contributors

matthieu637 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.