Multi-agent reinforcement learning (MARL) has recently received considerableattention due to its applicability to a wide range of real-world applications.However, achieving efficient communication among agents has always been anoverarching problem in MARL. In this work, we propose Variance Based Control(VBC), a simple yet efficient technique to improve communication efficiency inMARL. By limiting the variance of the exchanged messages between agents duringthe training phase, the noisy component in the messages can be eliminatedeffectively, while the useful part can be preserved and utilized by the agentsfor better performance. Our evaluation using a challenging set of StarCraft IIbenchmarks indicates that our method achieves $2-10\times$ lower incommunication overhead than state-of-the-art MARL algorithms, while allowingagents to better collaborate by developing sophisticated strategies.
Quick Read (beta)
Efficient Communication in Multi-Agent Reinforcement Learning via Variance Based Control
Multi-agent reinforcement learning (MARL) has recently received considerable attention due to its applicability to a wide range of real-world applications. However, achieving efficient communication among agents has always been an overarching problem in MARL. In this work, we propose Variance Based Control (VBC), a simple yet efficient technique to improve communication efficiency in MARL. By limiting the variance of the exchanged messages between agents during the training phase, the noisy component in the messages can be eliminated effectively, while the useful part can be preserved and utilized by the agents for better performance. Our evaluation using a challenging set of StarCraft II benchmarks indicates that our method achieves lower in communication overhead than state-of-the-art MARL algorithms, while allowing agents to better collaborate by developing sophisticated strategies.
Efficient Communication in Multi-Agent Reinforcement Learning via Variance Based Control
Sai Qian Zhang Harvard University Qi Zhang Amazon Inc. Jieyu Lin University of Toronto
noticebox[b]33rd Conference on Neural Information Processing Systems (NeurIPS 2019), Vancouver, Canada.\[email protected]
Many real-world applications (e.g., autonomous driving , game playing  and robotics control ) today require reinforcement learning tasks to be carried out in multi-agent settings. In MARL, multiple agents interact with each other in a shared environment. Each agent only has access to partial observations of the environment, and needs to make local decisions based on partial observations as well as both direct and indirect interactions with the other agents. This complex interaction model has introduced numerous challenges for MARL. In particular, during the training phase, each agent may dynamically change its strategy, causing dynamics in the surrounding environment and instability in the training process. Worse still, each agent can easily overfit its strategy to the behaviours of other agents , which seriously deteriorates the overall performance.
In the research literature, there have been three lines of research that try to mitigate the instability and inefficiency caused by decentralized execution. The most common approach is independent Q-learning (IQL) , which breaks down a multi-agent learning problem into multiple independent single-agent learning problems, and makes each agent learn and act independently. Unfortunately, this approach does not account for instability caused by environment dynamics, and therefore often leads to collided actions during the execution. The second approach adopts the centralized training and decentralized execution  paradigm, where a joint action value function is learned during the training phase to better coordinate the agents’ behaviours. During execution, each agent acts independently without direct communication. The third approach introduces communication among agents during execution [17,3]. This approach allows each agent to dynamically adjusts its strategy based on its local observation along with the information received from the other agents. Nonetheless, it introduces additional communication overhead in terms of latency and bandwidth during execution, and its success is heavily dependent on the usefulness of the received information.
In this work, we leverage the advantages of both the second and third approach. Specifically, we consider a fully cooperative scenario where all the agents collaborate to achieve a common objective. The agents are trained in a centralized fashion within the multi-agent Q-learning framework, and are allowed to communicate with each other during execution. However, unlike previous work, we have a few key insights. First, for many applications, it is often superfluous for an agent to wait for feedback from all surrounding agents before making an action decision. For instance, when the front camera on a autonomous vehicle detects an obstacle within the dangerous distance limit, it triggers the ‘brake‘ signal without waiting for the feedback from the other parts of the vehicle. Second, the feedback received from the other agents may not always provide useful information. For example, the navigation system of the autonomous vehicle should pay more attention to the messages sent by the perception system (e.g., camera, radar), and less attention to the entertainment system inside the vehicle before taking its action. Full communication among the agents leads to a large communication overhead and latency, which is impractical for the real system implementation with strict latency requirement and bandwidth limit (e.g., real-time traffic signal control, autonomous driving, etc). In addition, as pointed out by , excessive amount of communication may introduce useless and even harmful information which could even impair the convergence of learning.
Motivated by these observations, we design a novel deep MARL architecture that dramatically improves inter-agent communication efficiency. Specifically, we introduce Variance Based Control (VBC), a simple yet efficient approach to reduce the information transferred between the agents. By inserting an extra loss term on the variance of the exchanged information, the valuable and informative part inside the messages can be effectively extracted and leveraged to benefit the training of each individual agent. Unlike previous work, we do not introduce an extra decision module to dynamically adjust the communication pattern. This allows us to reduce the model complexity significantly. Instead, each agent first makes a preliminary decision based on its local information, and initiates communication only when its confidence level on this preliminary decision is low. Similarly, upon receiving the communication request, the agent replies to the request only when its message is informative. This architecture significantly improves the performance of the agents and reduces the communication overhead during the execution. Furthermore, it can be theoretically shown that the resulting training algorithm achieves guaranteed stability.
For evaluation, we test VBC on the StarCraft Multi-Agent Chanllenge , the results demonstrate that VBC achieves higher for winning rates and lower for communication overhead on average compared with the other benchmark algorithms. A video demo is available at  for better illustration of the VBC performance. The code is available at https://github.com/saizhang0218/VBC.
2 Related Work
The simplest training method for MARL is to make each agent learn independently using Independent Q-Learning (IQL) . Although IQL is successful in solving simple tasks such as Pong , it ignores the environment dynamics arose from the interactions among the agents. As a result, it suffers from the problem of poor convergence, making it difficult to handle advanced tasks.
Given the recent success on deep Q-learning , some work explores the scheme of centralized training and decentralized execution. Sunehag et al.  propose Value Decomposition Network (VDN), a method that acquires the joint action value function by summing all the action value functions of each agent. All the agents are trained as a whole by updating the joint action value functions iteratively. QMIX  sheds some light on VDN, and utilizes a neural network to represent the joint action value function as a function of the individual action value functions and the global state information. The authors of  extends the actor-critic methods to the multi-agent scenario. By performing centralized training and decentralized execution over the agents, the agents can better adapt to the changes on the environment and collaborate with each other. Foerster et al.  propose counterfactual multi-agent policy gradient (COMA), which employs a centralized critic function to estimate the action value function of the joint, and decentralized actor functions to make each agent execute independently. All the aforementioned methods assume no communication between the agents during the execution. As a result, many subsequent approaches, including ours, can be applied to improve the performance of these methods.
Learning the communication pattern for MARL is first proposed by Sukhbaatar et. al. . The authors introduce CommNet, a framework that adopts continuous communication for fully cooperative tasks. During the execution, each agent takes their internal states as well as the means of the internal states of the rest agents as the input to make decision on its action. The BiCNet  uses a bidirectional coordinated network to connect the agents. However, both schemes require all-to-all communication among the agents, which can cause a significant communication overhead and latency.
Several other proposals [3,7,8] use a selection module to dynamically adjust the communication pattern between the agents. In , the authors propose DIAL (Differentiable Inter-Agent Learning), the messages produced by an agent are selectively sent to the neighboring agents by the discretise/regularise unit (DRU). By jointly training DRU with the agent network, the communication overhead can be efficiently reduced. Jiang et. al.  propose an attentional communication model that learns when the communication is required and how to aggregate the shared information. However, an agent can only talk with the agents in its observable field at each timestep. This limits the speed of information propagation, and restricts the possible communication patterns when the local observable field is small. Kim et. al.  propose a communication scheduling scheme for wireless environment, but only part of agents can broadcast their messages at each time. In comparison, our approach does not apply the hard constraints on the communication pattern, which is advantageous to the learning process. Also our method does not adopt additional decision module for the communication scheduling, which greatly reduces the model complexity.
Deep Q-networks: We consider a standard reinforcement learning problem based on Markov Decision Process (MDP). At each timestamp , the agent observes the state , and chooses an action . It then receives a reward for its action and proceeds to the next state . The goal is to maximize the total expected discounted reward , where is the discount factor. Deep Q-Networks (DQN) use a deep neural network to represent the action value function , where represents the parameters of the neural network, and is the total rewards received at and after . During the training phase, a replay buffer is used to store the transition tuples . The action value function can be trained recursively by minimizing the loss , where and represents the parameters of the target network. An action is usually selected with -greedy policy. Namely, selecting the action with maximum action value with probability , and choosing a random action with probability .
Multi-agent deep reinforcement learning: We consider an environment with agents work cooperatively to fulfill a given task. At timestep , each agent () receives a local observation and executes an action . They then receive a joint reward and proceed to the next state. We use a vector to represent the joint actions taken by all the agents. The agents aim to maximize the joint reward by choosing the best joint actions at each timestep .
Deep recurrent Q-networks: Traditional DQN generates action solely based on a limited number of local observations without considering the prior knowledge. Hausknecht et al.  introduce Deep Recurrent Q-Networks (DRQN), which models the action value function with a recurrent neural network (RNN). The DRQN leverages its recurrent structure to integrate the previous observations and knowledge for better decision-making. At each timestep , the DRQN takes the local observation and hidden state from the previous steps as input to yield action values.
Learning the joint Q-function: Recent research effort has been made on the learning of joint action value function for multi-agent Q-learning. Two representative works are VDN  and QMIX . In VDN, the joint action value function is assumed to be the sum of all the individual action value functions , where , and are the collection of the observations, hidden states and actions of all the agents at timestep respectively. QMIX employs a neural network to represent the joint value function as a nonlinear function of and global state .
4 Variance Based Control
In this section, we present the detailed design of VBC in the context of multi-agent Q-learning. The main idea of VBC is to achieve the superior performance and communication efficiency by limiting the variance of the transferred messages. Moreover, during execution, each agent communicates with other agents only when its local decision is ambiguous. The degree of ambiguity is measured by the difference on top two largest action values. Upon receiving the communication request from other agents, the agent replies only if its feedback is informative, namely the variance of the feedback is high.
4.1 Agent Network Design
The agent network consists of the following three networks: local action generator, message encoder and combiner. Figure 1(a) describes the network architecture for agent . The local action generator consists of a Gated Recurrent Unit (GRU) and a fully connected layer (FC). For network of agent , the GRU takes the local observation and the hidden state as the inputs, and generates the intermediate results . is then sent to the FC layer, which outputs the local action values for each action , where is the set of possible actions. The message encoder, , is a multi-layer perceptrons (MLP) which contains two FC layers and a leaky ReLU layer. The agent network involves multiple independent message encoders, each accepts from another agent, and outputs . The outputs from local action generator and message encoder are then sent to the combiner, which produces the global action value function of agent by taking into account the global observation and global history . To simplify the design and reduce model complexity, we do not introduce extra parameters for the combiner. Instead, we make the dimension of the the same as the local action values , and hence the combiner can simply perform elementwise summation over its inputs, namely . The combiner chooses the action with the -greedy policy, . Let and denote the set of parameters of the local action generators and the message encoders, respectively. To prevent the lazy agent problem  and decrease the model complexity, we make is the same for all and , and also make the same for all . Accordingly, we can drop the corner scripts and use and to denote the agent network parameters and the message encoder.
4.2 Loss Function Definition
During the training phase, the message encoder and local action generator learn jointly to generate the best estimation on the action values. More specifically, we employ a mixing network (shown in Figure 1(b)) to aggregate the global action value functions from each agents , and yields the joint action value function, . To limit the variance of the messages from the other agents, we introduce an extra loss term on the variance of the outputs of the message encoders . The loss function during the training phase is defined as:
where , is the parameter of the target network which is copied from the periodically, is the variance function and is the weight of the loss on it. is the batch index. The replay buffer is refreshed periodically by running each agent network and selecting the action which maximizes .
4.3 Communication Protocol Design
During the execution phase, for every timestep , the agent first computes the local action value function and . It then measures the confidence level on the local decision by computing the difference between the largest and the second largest element within the action values. An example is given in Figure 2(a). Assume agent 1 has three actions to select, and the output of the local action generator of agent is , and the difference between the largest and the second largest action values is , which is greater than the threshold . Given the fact that the variance of message encoder outputs from the agent 2 and 3 is relatively small, due to the additional penalty term on variance in equation 1, it is highly possible that the global action value function also has the largest value in its third element. Therefore agent 1 does not have to talk to other agents to acquire . On the other hand, agent 1 broadcasts a request to ask for help if its confidence level on the local decision is low. Because the request does not contain any actual data, it consumes very low bandwidth. Upon receiving the request, only the agents whose message has a large variance reply (Figure 2(b)), since their messages may change the current action decision at agent 1. This protocol not only reduces the communication overhead considerably, but also eliminates less informative messages which may impair the performance. Each agent only consults with the other agents when its confidence level on the local decision is low, and the other agents only reply when their messages can potentially change the final decision. The detailed protocol and operations performed at the agent unit is summarized in Algorithm 1.
5 Convergence Analysis
In this section, we analyze convergence of the learning process with the loss function defined in equation (1) under the tabular setting. For the sake of simplicity, we ignore the dependency of the action value function on the previous knowledge . To minimize equation (1), given the initial state , at iteration , the values in the table is updated according to the following rule:
where , are the learning rate and the joint action value function at iteration respectively, and is the optimal joint action value function. We have the following result on the convergence of the learning process. A detailed proof is given in the appendix.
Assume , , . Also assume the number of possible actions and states are finite. By performing equation 2 iteratively, we have , as , where satisfies .
We evaluated the performance of VBC with the StarCraft Multi-Agent Challenge (SMAC) . StarCraft II  is a real-time strategy (RTS) game that has recently been utilized as a benchmark by the reinforcement learning community [14,5,3,4]. In this work, we focus on the decentralized micromanagement problem in StarCraft II, which involves two armies, one controlled by the user (i.e. a group of agents), and the other controlled by the build-in StarCraft II AI. The goal of the user is to control its allied units to destroy all enemy units, while minimizing received damage on each unit. We consider six different battle settings. Three of them are symmetrical battles, where both the user and the enemy groups consist of 2 Stalkers and 3 Zealots (2s3z), 3 Stalkers and 5 Zealots (2s5z), and 1 Medivac, 2 Marauders and 7 Marines (MMM) respectively. The other three are unsymmetrical battles, where the user and enemy groups have different army unit compositions, including: 3 Stalkers for user versus 4 Zealots for enemy (3svs4z), 6 Hydralisks for user versus 8 Zealots for enemy (6svs8z), and 6 Zealot for user versus 24 Zerglings for enemy (6zvs24zerg). The unsymmetrical battles is considered to be harder than the symmetrical battles because of the difference in army size.
At each timestep, each agent controls a single unit to perform an action, including move[direction], attack[enemyid], stop and no-op. Each agent has a limited sight range and shooting range, where shooting range is less than the sight range. The attack operation is available only when the enemies are within the shooting range. The joint reward received by the allied units equals to the total damage inflicted on enemy units. Additionally, the agents are rewarded 100 extra points after killing each enemy unit, and 200 extra points for killing the entire army. The user group wins the battle only when the allied units kill all the enemies within the time limit. Otherwise the built-in AI wins. The input observation of each agent is a vector consists the following information of each allied unit and enemy unit in its sight range: relative , coordinates, relative distance and agent type. For the detailed game settings, hyperparameters, and additional experiment evaluation over other test environment, please refer to appendix.
We compare VBC and other banchmark algorithms, including VDN , QMIX  and SchedNet , for controlling allied units. We consider two types of VBCs by adopting the mixing networks of VDN and QMIX, denoted as VBC+VDN and VBC+QMIX. The mixing network of VDN simply computes the elementwise summation across all the inputs, and the mixing network of QMIX deploys a neural network whose weight is derived from the global state . The detailed architecture of this mixing network can be found in . Additionally, we remove the penalty in Equation (1), and drop the limit on variance during the execution phase (i.e., and ). The agents are trained with the same network architecture shown in Figure (1), and the mixing network of VDN is used. We call this algorithm FC (full communication). For SchedNet, at every timestep only out of agents can broadcast their messages by using Top(k) scheduling policy . changes with different battles and we usually set close to , that is, each time roughly half of the allied units can broadcast their messages. The VBC are trained for different number of episodes based on the difficulties of the battles, which we describe in detail next.
To measure the speed of convergence for each algorithm, we stop the training process and save the current model every 200 training episodes. We then run 20 test episodes and measure the winning rates for these 20 episodes. For VBC+VDN and VBC+QMIX, the winning rates are measured by running the communication protocol described in Algorithm 1. For easy tasks, namely MMM and 2svs3z, we train the algorithms with million and million episodes respectively. For all the other tasks, we train the algorithms with million episodes. Each algorithm is trained 15 times. Figure 3 shows the average winning rate and 95 confidence interval of each algorithm for all the six tasks. For hyperparameters used by VBC (i.e., used in equation (1), in Algorithm 1), we first search for a coarse parameter range based on random trial, experience and message statistics. We then perform a random search within a smaller hyperparameter space. Best selections are shown in the legend of each figure.
We notice that the algorithms that involve communication (i.e., SchedNet, FC, VBC) outperform the algorithms without communication (i.e., VDN, QMIX) in all the six tasks. This is a clear indication that communication benefits the performance. Moreover, both VBC+VDN and VBC+QMIX achieve better winning rates than SchedNet, because SchedNet only allows a fixed number of agents to talk at every timestep, which prohibits some key information to exchange timely. Finally, VBC achieves a similar performance as FC and even outplays FC for some tasks (e.g., 2s3z,6hvs8z, 6zvs24zerg). This is because a fair amount of communication between the agents are noisy and redundant. By eliminating these undesired messages, VBC is able to achieve both communication efficiency and performance gain.
6.2 Communication Overhead
We now evaluate the communication overhead of VBC. To quantify the amount of communication, we run Algorithm 1 and count the total number of pairs of agents that conduct communication for each timestep , then divided by the total number of pairs of agents in the user group, . For example, for the task 3svs4z, the user controls 3 Stalkers, and therefore the total number of possible pairs of agents for communication is . Within these pairs of agents, suppose that pairs involve communication, and therefore . Let denote the communication overhead. Table 1 shows the of VBC+VDN, VBC+QMIX and SchedNet across all the test episodes at the end of the training phase of each battle. For SchedNet, simply equals the ratio between number of allied agents that are allowed to talk and the total number of allied agents. As shown in Table 1, in contrast to ScheNet, VBC+VDN and VBC+QMIX produce 10 lower communication overhead for MMM and 2s3z, and less traffic for the rest of tasks.
6.3 Learned Strategy
In this section, we examine the behaviors of the agents in order to better understand the strategies adopted by the different algorithms. We have made a video demo available at  for better illustration.
For unsymmetrical battles, the number of allied units is less than the enemy units, and therefore the agents are prone to be besieged and killed by the enemies. This is exactly what happened for the QMIX and VDN agents on 6hvs8z, as shown in (Figure 4(c)). Figure 4(b) shows the strategy of VBC, all the Hydralisks are placed in a row at the bottom margin of the map. Due to the limited size of the map, the Zealots can not go beyond the margin to surround the Hydralisks. The Hydralisks then focus their firings to kill each Zealot. Figure 4(a) shows the change on for a sample test episode. We observe that most of the communication appears in the beginning of the episode. This is due to the fact that Hydralisks need to talk in order to place in a row. After the arrangement is formed, no communication is needed until the arrangement is broken due to the deaths of some Hydralisks, as indicated by the short spikes near the end of the episode. Finally, SchedNet and FC utilize a similar strategy as VBC. Nonetheless, due to the restriction on communication pattern, the row formed by the allied agents are usually not well formed, and can be easily broken by the enemies.
For 3svs4z scenario, the Stalkers have a larger attack range than Zealots. All the algorithms adopt a kiting strategy where the Stalkers form a group and attack the Zealots while kiting them. For VBC and FC, at each timestep only the agents that are far from the enemies attack, and rest of the agents (usually the healthier ones) are used as a shield to protect the firing agents (Figure 4(d)). Communication only occurs when the group are broken and need to realign. In contrast, VDN and QMIX do not have this attacking pattern, and all the Stalkers always fire simultaneously, therefore the Stalkers closest to the Zealots are get killed soon. SchedNet and FC also adopt a similar policy as VBC, but the attacking pattern of the Stalkers is less regular, i.e., the Stalkers close to the Zealots also fire occasionally.
6zvs24zerg is the toughest scenario in our experiment. For QMIX and VDN, the 6 Zealots are surrounded and killed by 24 Zerglings shortly after episode starts. In contrast, VBC first separates the agents into two groups with two Zealots and four Zealots respectively (Figure 4(e)). The two Zealots attract most of Zerglings to a place far away from the rest four Zealots, and are killed shortly. Due to the limit sight range of the Zerglings, they can not find the rest four Zealots. On the other side, the four Zealots kill the small part of Zerglings easily and search for the rest Zerglings. The four Zealots take advantage of the short sight of the Zerglings. Each time the four Zealots adjust their positions in a way such that they can only be seen by a small amount of the Zerglings, the baited Zerglings are then be killed easily (Figure 4(f)). For VBC, the communication only occurs in the beginning of the episode when the Zealots are separated into two groups, and near the end of the episode when four Zealots adjust their positions. Both FC and SchedNet learn the strategy of splitting the Zealots into two groups, but they fail to fine-tune their positions to kill the remaining Zerglings.
For symmetrical battles, the tasks are less challenging, and we see less disparities on performances of the algorithms. For 2s3z and 3s5z, the VDN agents attack the enemies blindly without any cooperation. The QMIX agents learn to focus firing and protect the Stalkers. The agents of VBC, FC and SchedNet adopt a more aggressive policy, where the allied Zealots try to surround and kill the enemy Zealots first, and then attack the enemy Stalkers by collaborating with the allied Stalkers. This is extremely effective because Zealots counter Stalkers, so it is important to kill the enemy Zealots before they damage allied Stalkers. For VBC, the communication occurs mostly when the allied Zealots try to surround the enemy Zealots. For MMM, almost all the methods learn the optimal policy, namely killing the Medivac first, then attack the rest of the enemy units cooperatively.
6.4 Evaluation on Cooperative Navigation and Predator-prey
Furthermore, we evaluate the algorithms for two more scenarios: (1) Cooperative Navigation (CN) which is a cooperative scenario, and (2) Predator-prey (PP) which is a competitive scenario. The game settings are the same as what are used in  and , respectively. We train each method until convergence and test the result models for 2000 episodes. For PP, we make the agents of VBC to compete against the agents of other methods, and report the normalized score of Predator (Figure 5(a)). For CN we report the average distance between agents and their destinations, and average number of collisions (Figure 5(b)). We notice that methods which allows communication (i.e., SchedNet, FC, VBC) outperform the others for both tasks, and VBC achieves the best performance. Moreover, VBC incurs a communication overhead of and for PP and CN respectively. In CN, most of the communication of VBC occurs when the agents are close to each other to prevent collisions. In PP, the communication of VBC occurs mainly to rearrange agent positions for better coordination.
In this work, we propose VBC, a simple and effective approach to achieve efficient communication among the agents in MARL. By constraining the variance of the exchanged messages during the training phase, VBC improves communication efficiency while enabling better cooperation among the agents. The test results of StarCraft Multi-Agent Challenge indicate that VBC outperforms the other state-of-the-art methods significantly in terms of both winning rate and communication overhead.
8.1 Proof for theorem 1
Assume , , . Also assume the number of possible actions and states are finite. By performing equation 2 iteratively, we have , as , where satisfies .
The proof is based on  and . If we subtract from equation 2 in the paper, and rearrange the equation, we get:
where . Let , and we have:
Decompose into two random processes, and , where , we have the following two random iterative processes:
From Theorem 1 of , we know that converges to zero w.p. 1. From equation , we notice that:
Therefore we have . This is linear in and will converge to a nonpositive number as k approaches infinity. However, because is always greater or equal to zero, hence must converge to a number between 0 and . Therefore we get:
as k approaches infinity. ∎
9 Experiment settings and hyperparameters
In this section, we describe in detail the experiment settings.
9.1 StarCraft micromanagement challenges
StarCraft II  is a real-time strategy (RTS) game that has recently been utilized as a challenging benchmark by the reinforcement learning community [14,5,13]. In this work, we concentrate on the decentralized micromanagement problem in StarCraft II. Specifically, the user controls an army that consists of several army units (agents). We consider the battle scenario where two armies, one controlled by the user, and the other controlled by the build-in StarCraft II AI, are placed on the same map and try to defeat each other. The agent type can be different between the two armies, and the agent type can also be different within the same army. The goal of the user is to control the allied units wisely to kill all the enemy units, while minimizing the damage on the health of each individual agent. The difficulty of the computer AI is set to Medium. We consider six different battle settings, which is shown in Table 2. Among these six settings, three are symmetrical battles, where the user group and the enemy group are identical in terms of type and quantity of agents. The other three are unsymmetrical battles, where the agent type of user groups and enemy group are different, and user group contains less number of allied units than the enemy group. The unsymmetrical battles is consider to be harder than the symmetrical battles because of the difference in the army size.
During execution, each agent are allowed to perform the following actions: move[direction], attack[enemyid], stop and no-op. There are four directions for the ’move’ operation: east, west, south, or north. Each agent can only attack the enemy within its shooting range. The Medivacs can only heal the partner by performing the heal[partnerid] instead of attacking the enemies. The number of possible actions for an agent ranges from 11 (2s3z) to 30 (6zvs24zerg). Each agent has a limited sight range, and can only receive information from the partners or enemies within the sight range. Furthermore, the shooting range is smaller than the sight range so the agent can not attack the opponents without observing them, and the attack operation is not available when the opponents are outside the shooting range. Finally, agents can only observe the live agents within the sight range, and can not discern the agents that are dead or outside the range. At each timestep, the joint reward received by the allied units equals to the total damage on the health levels of the enemy units. Additionally, the agents are rewarded 100 extra points after killing each enemy unit, and 200 extra points for killing all the enemies. The user group wins the battle only when the allied units kill all the enemies within the time limit. The user group loses the battle if either all the allied units are killed, or the time limit reaches. The time limit for different battles are: 120 timesteps for 2s3z and MMM, 150 for 3s5z and 3svs4z, and 200 for 6hvs8z and 6zvs24zerg.
The input observation of each agent consisting of a vector which involves the following information of each allied unit and enemy unit in its sight range: relative x,y coordinates, relative distance and agent type. For the mixing network of QMIX, the global state vector contains the following elements:
Shield levels, health levels and cooldown levels of all the units at .
The actions taken by all the units at .
The x,y coordinates of all the units relative to the center of the map at .
For all the six battles, each allied or enemy agent has a sight range of 9 and shooting range of 6 for all types of agents. For additional information, please refer to .
|User||2 Stalkers & 3 Zealots||1 Medivac, 2 Marauders & 7 Marines||3 Stalkers & 5 Zealots|
|Enemy||2 Stalkers & 3 Zealots||1 Medivac, 2 Marauders & 7 Marines||3 Stalkers & 5 Zealots|
|User||3 Stalkers||6 Hydralisks||6 Zealots|
|Enemy||4 Zealots||8 Zealots||24 Zerglings|
For network of agent , at timestep , raw observation is first passed through a single-layer MLP, which outputs a intermediate result with size of 64. The GRU then takes this intermediate result, as well as the hidden states from the previous timestep and generates and . Both and has a size of 64. The is then passed through a FC layer, which generates the local action value function . The message encoder contains two FC layers with 196 and 64 units respectively. The combiner performs elementwise summation on the outputs of local action generator and the message encoders.
During the training, we set the and decrease linearly from 1.0 to 0.05 over the first timesteps and keep it to for the rest of the learning process. The replay buffers stores the most recent 5000 episode. We perform a test run for every 200 training episodes to update the replay buffer. The training batch size is set to 32 and the test batch size is set to 8. We adopt a RMSprop optimizer with a learning rate and .
 Starcraft official game site: https://starcraft2.com/.
 VBC Video demo: https://bit.ly/2VFkvCZ.
 J. Foerster, I. A. Assael, N. de Freitas, and S. Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In Advances in Neural Information Processing Systems, pages 2137–2145, 2016.
 J. N. Foerster, C. A. S. de Witt, G. Farquhar, P. H. Torr, W. Boehmer, and S. Whiteson. Multi-agent common knowledge reinforcement learning. arXiv preprint arXiv:1810.11702, 2018.
 J. N. Foerster, G. Farquhar, T. Afouras, N. Nardelli, and S. Whiteson. Counterfactual multi-agent policy gradients. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
 M. Hausknecht and P. Stone. Deep recurrent q-learning for partially observable mdps. In 2015 AAAI Fall Symposium Series, 2015.
 J. Jiang and Z. Lu. Learning attentional communication for multi-agent cooperation. In Advances in Neural Information Processing Systems, pages 7254–7264, 2018.
 D. Kim, S. Moon, D. Hostallero, W. J. Kang, T. Lee, K. Son, and Y. Yi. Learning to schedule communication in multi-agent reinforcement learning. arXiv preprint arXiv:1902.01554, 2019.
 J. Kober, J. A. Bagnell, and J. Peters. "reinforcement learning in robotics: A survey.". The International Journal of Robotics Research, 2013.
 R. Lowe, Y. Wu, A. Tamar, J. Harb, O. P. Abbeel, and I. Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environments. In Advances in Neural Information Processing Systems, pages 6379–6390, 2017.
 L. Marc, V. Zambaldi, A. Gruslys, A. Lazaridou, K. Tuyls, J. Pérolat, D. Silver, and T. Graepel. "a unified game-theoretic approach to multiagent reinforcement learning.". In Advances in Neural Information Processing Systems, 2017.
 V. Mnih, K. Kavukcuoglu, D. Silver, A. Graves, I. Antonoglou, D. Wierstra, and M. Riedmiller. "playing atari with deep reinforcement learning.". arXiv preprint arXiv:1312.5602, 2013.
 P. Peng, Y. Wen, Y. Yang, Q. Yuan, Z. Tang, H. Long, and J. Wang. Multiagent bidirectionally-coordinated nets: Emergence of human-level coordination in learning to play starcraft combat games. arXiv preprint arXiv:1703.10069, 2017.
 T. Rashid, M. Samvelyan, C. S. de Witt, G. Farquhar, J. Foerster, and S. Whiteson. Qmix: Monotonic value function factorisation for deep multi-agent reinforcement learning. arXiv preprint arXiv:1803.11485, 2018.
 M. Samvelyan, T. Rashid, C. S. de Witt, G. Farquhar, N. Nardelli, T. G. J. Rudner, C.-M. Hung, P. H. S. Torr, J. Foerster, and S. Whiteson. The StarCraft Multi-Agent Challenge. CoRR, abs/1902.04043, 2019.
 S.-S. Shai, S. Shammah, and A. Shashua. "safe, multi-agent, reinforcement learning for autonomous driving.". arXiv preprint arXiv:1610.03295, 2016.
 S. Sukhbaatar, R. Fergus, et al. Learning multiagent communication with backpropagation. In Advances in Neural Information Processing Systems, pages 2244–2252, 2016.
 P. Sunehag, G. Lever, A. Gruslys, W. M. Czarnecki, V. Zambaldi, M. Jaderberg, M. Lanctot, N. Sonnerat, J. Z. Leibo, K. Tuyls, et al. Value-decomposition networks for cooperative multi-agent learning. arXiv preprint arXiv:1706.05296, 2017.
 A. Tampuu, T. Matiisen, D. Kodelja, I. Kuzovkin, K. Korjus, J. Aru, J. Aru, and R. Vicente. Multiagent cooperation and competition with deep reinforcement learning. PloS one, 12(4):e0172395, 2017.
 M. Tan. "multi-agent reinforcement learning: Independent vs. cooperative agents.". In Proceedings of the tenth international conference on machine learning. IEEE, 1993.
 T. Jaakkola, M. I. Jordan, and S. P. Singh. Convergence of stochastic iterative dynamic programming algorithms. In Advances in neural information processing systems, pages 703–710, 1994.
 F. S. Melo. Convergence of q-learning: A simple proof. Institute Of Systems and Robotics, Tech. Rep, pages 1–4, 2001.