Giter Site home page Giter Site logo

sched_net's Introduction

Learning to Schedule Communication in Multi-agent Reinforcement Learning

This is the code for implementing the SchedNet algorithm presented in the paper which will appear ICLR 2019: "Learning to Schedule Communication in Multi-agent Reinforcement Learning".

Summary of the paper

In MARL (multi-agent reinforcement learning), well-coordinated actions among the agents are crucial to achieve the target goal better at these tasks. One way to accelerate the coordination effect is to enable multiple agents to communicate with each other in a distributed manner and behave as a group. In this paper, we study a practical scenario when (i) the communication bandwidth is limited and (ii) the agents share the communication medium so that only a restricted number of agents are able to simultaneously use the medium, as in the state-of-the-art wireless networking standards. This calls for a certain form of communication scheduling. In that regard, we propose a multi-agent deep reinforcement learning framework, called SchedNet, in which agents learn how to schedule themselves, how to encode the messages, and how to select actions based on received messages. SchedNet is capable of deciding which agents should be entitled to broadcasting their (encoded) messages, by learning the importance of each agent’s partially observed information.

The overall architecture of SchedNet

  • Actor: Collection of n per-agent individual actor blocks (i.e., WG, ENC, AS)
  • Scheduler: Map from weights w to schedule profile c
  • Critic: Estimates the action value function of actor

Components of each agent in SchedNet

  • Each block is fully connected neural network

alt text

  • Distributed Execution
    • Determine the scheduling weight
    • k agents are scheduled by WSA
    • Scheduled agents to be broadcast message to all agents
    • Select an action based on observation and received messages

How to run the code

git clone https://github.com/rhoowd/sched_net.git
cd sched_net
python main.py

Environment: Predator and Prey (PP)

  • n agents try to capture a randomly moving prey
  • Observation: Position of themselves, relative positions of prey (heterogeneous observation range)
  • Action: Move up/down/leaf/right
  • Reward: Get reward when they capture the prey Performance metric: Number of steps taken to capture the prey

Result

  • Setup
    • Train the models until convergence
    • Evaluate models by averaging metrics for 1,000 iterations

  • Communication improve the performance: SchedNET and DIAL outperform IDQN and COMA
  • Consider the scheduling from training: Sched-Top(1) outperforms DIAL(1) which is trained without considering scheduling
  • Intelligent scheduling: Sched-Top(1) improves the performance by 43% compared to Round Robin

- Importance-based scheduling - Instances of temporal scheduling profiles obtained during the execution - Agent 1 has a wider observation range - Agent 1 tends to obtain valuable observation more frequently - SchedNet schedules agent 1 more

- Message - What the agents communicate when performing the task - Observe prey: larger variance to include prey’s location information (red ‘x’ in (a)) - Conditioned on success observation of prey:�Message includes the information of agent’s location and prey’s location

sched_net's People

Contributors

rhoowd avatar mununum avatar ddhostallero avatar soarhigh avatar minitsl avatar

Stargazers

 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.