Giter VIP home page Giter VIP logo

mace's Introduction

Settling Decentralized Multi-Agent Coordinated Exploration by Novelty Sharing (MACE)

Code for "Settling Decentralized Multi-Agent Coordinated Exploration by Novelty Sharing" accepted by AAAI 2024. [PDF]

MACE

Exploration in decentralized cooperative multi-agent reinforcement learning faces two challenges. One is that the novelty of global states is unavailable, while the novelty of local observations is biased. The other is how agents can explore in a coordinated way. To address these challenges, we propose MACE, a simple yet effective multi-agent coordinated exploration method.

By communicating only local novelty, agents can take into account other agents’ local novelty $u_t^j$ to approximate the global novelty.

$$ r_{\mathrm{nov}}^i\left(o_t^i, a_t^i\right)=\sum_j u_t^j $$

Further, we newly introduce weighted mutual information to measure the influence of one agent’s action on other agents’ accumulated novelty.

$$ \omega I\left(A_t^i ; Z_t^j \mid o_t^i\right)=\mathbb{E}_{a_t^i, z_t^j \mid o_t^i}\left[\omega(a_t^i, z_t^j) \log \frac{p(a_t^i, z_t^j \mid o_t^i)}{p(a_t^i \mid o_t^i) p(z_t^j \mid o_t^i)}\right] $$

We convert it as an intrinsic reward in hindsight to encourage agents to exert more influence on other agents’ exploration and boost coordinated exploration.

$$ r_{\mathrm{hin}}^{i \rightarrow j}\left(o_t^i, a_t^i, z_t^j\right)=z_t^j \log \frac{p(a_t^i \mid o_t^i, z_t^j)}{\pi^i(a_t^i \mid o_t^i)} $$

We combine the two intrinsic rewards to get the final shaped reward.

$$ r_{\mathrm{s}}^i\left(o_t^i, a_t^i,{z_t^j}_{j \neq i}\right)=r_{\mathrm{ext}}+r_{\mathrm{nov}}^i\left(o_t^i, a_t^i\right)+\lambda \sum_{j \neq i} r_{\mathrm{hin}}^{i \rightarrow j}\left(o_t^i, a_t^i, z_t^j\right)=r_{\mathrm{ext}}+\sum_j u_t^j+\lambda \sum_{j \neq i} z_t^j \log \frac{p(a_t^i \mid o_t^i, z_t^j)}{\pi^i(a_t^i \mid o_t^i)} $$

Training

For GridWorld environment:

./scripts/train_gridworld.sh

For Overcooked environment:

./scripts/train_overcooked.sh

mace's People

Contributors

sigmabm avatar

Stargazers

 avatar WANG Zhiwei avatar

Watchers

 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.