Research Article  Open Access
Qi Zhang, Peng Jiao, Quanjun Yin, Lin Sun, "Coordinated Learning by Model Difference Identification in Multiagent Systems with Sparse Interactions", Discrete Dynamics in Nature and Society, vol. 2016, Article ID 3207460, 17 pages, 2016. https://doi.org/10.1155/2016/3207460
Coordinated Learning by Model Difference Identification in Multiagent Systems with Sparse Interactions
Abstract
Multiagent Reinforcement Learning (MARL) is a promising technique for agents learning effective coordinated policy in Multiagent Systems (MASs). In many MASs, interactions between agents are usually sparse, and then a lot of MARL methods were devised for them. These methods divide learning process into independent learning and joint learning in coordinated states to improve traditional joint stateaction space learning. However, most of those methods identify coordinated states based on assumptions about domain structure (e.g., dependencies) or agent (e.g., prior individual optimal policy and agent homogeneity). Moreover, situations that current methods cannot deal with still exist. In this paper, a modified approach is proposed to learn where and how to coordinate agents’ behaviors in more general MASs with sparse interactions. Our approach introduces sample grouping and a more accurate metric of model difference degree to identify which states of other agents should be considered in coordinated states, without strong additional assumptions. Experimental results show that the proposed approach outperforms its competitors by improving the average agent reward per step and works well in some broader scenarios.
1. Introduction
Multiagent Reinforcement Learning (MARL) provides a promising technique for autonomous agents to solve sequential decision problems in Multiagent Systems (MASs) [1], which has been applied to a variety of problem domains, such as multirobot teams [2], distributed control [3], resource management [4], and computer games [5, 6]. In such fields, traditional Reinforcement Learning (RL) for single agent is usually inapplicable because of the concurrency and dynamics in MASs [7]. To solve the above problems, various mathematical models have been introduced in MARL, such as Markov Game (MG) [8], multiagent MDPs (MMDPs) [9], and decentralized partially observable Markov Decision Process (DecPOMDP) [10]. However, most of such MARL models require sufficient information of other agents, including states information and selected actions, which leads to the joint stateaction space increasing exponentially with the number of agents. Actually it is difficult to get sufficient information due to the limitations of communication and privacy.
In fact, the interactions between agents are usually sparse in many realworld problems [11, 12]. In such problems, agents only need to consider coordinating their behaviors in sparse states influenced by others. Take the multirobot path finding as an example; coordination only happens when agents are close to each other. Lots of works have been done to exploit the interactions sparseness explicitly to reduce stateaction space and thus improve the performance of MARL approaches [13–15]. Traditionally, researchers mainly exploit the hierarchical structure [16] or interdependencies of agents in specific domain problems to reduce the size of joint action space, such as coordination graphs (CGs) [13, 14]. However those dependencies or coordination situations must be predefined for different domain problems.
Recently, much more attention has been attracted to learning in which states agent needs to coordinate with others [11]. The stateoftheart approaches include CQlearning [15], independent degree learning (IDL) [17], and MTGA [18], which usually identify coordinated states from statistics to decompose the learning process and receive favorable performance in specific conditions. However, several limitations still exist as follows. Firstly, current approaches usually make strong assumptions about agent or domain structure, which would confine their practical applications. For instance, CQlearning and MTGA assume that agent has prior individual optimal policy [15, 18], while IDL and MTGA require agent homogeneity [17, 18]. Secondly, approaches like MTGA construct joint coordination for all influenced agents that are identified simply through monitoring state and reward changes. However, a situation exists when agents influencing others having their own state and reward remain unchanged (e.g., unintentional signal interference) and thus will not be included in the joint coordination. This would lead to potential miscoordination. Lastly, in approaches like CQlearning, coordinated states are identified only through changes of immediate rewards, which cannot reflect all information about how the environmental dynamics change [18]. However, it may fail in real applications when agents have subtle or even no reward feedback while state transition actually changes. Thus state transition changes should also be considered for all unanticipated situations without valid reward feedback.
To overcome the aforementioned limitations, a modified approach is proposed for effective MARL through exploiting sample grouping and the concept of model difference degree, without additional assumptions about agents or domain structure. First and foremost, a modified Monte Carlo sampling is performed in the Markov Game. Agents record not only their own reward and state transition information, but also the state information of others. This information could be used for further grouping collected samples before identifying which states of other agents bring changes to the agent’s current state. After that, a modified concept of model difference degree is introduced to detect changes and measure the difference between the agent performing the task collectively and that performing the task separately. This degree integrates changes of both reward and state transition to evaluate full environmental dynamics. Based on that, the agent’s learning process in MASs can then be divided into two different branches. When the degree exceeds certain threshold, those identified states of other agents would be included and coordinated learning is performed; otherwise independent Qlearning is conducted. Experimental results show that the modified approach, with no additional assumptions but better generalization, has its advantage in adapting to broader scenarios. Moreover, in terms of average agent reward per step and convergence, it can learn agents’ policy better than existing approaches like CQlearning and MTGA.
The remainder of this paper is organized as follows. Section 2 introduces necessary background and related work around learning in MASs with sparse interactions. Section 3 describes the proposed coordinated learning approaches. Section 4 tests the proposed approaches in various gridworld environments. Finally Section 5 draws some conclusions and suggests directions for future research.
2. Background and Related Work
In this section, we review some key concepts of Multiagent Reinforcement Learning and related works of learning in MASs with sparse interactions.
2.1. MDP and Markov Game
A Markov Decision Process (MDP) describes a singleagent sequential decisionmaking problem, in which an agent must choose an action at every time step to maximize its accumulated reward [19–21]. It is the fundamental model of Reinforcement Learning (RL) to learn an agent’s individual optimal policy.
Definition 1. A Markov Decision Process is a tuple , in which is a finite set of state space, is a set of actions available to the agent, is the reward function that returns the immediate reward to the agent after taking action in state , and is the transition function representing the transition probability from one state to another when action is taken. The transition function and reward function together define the complete model of the MDP.
The objective of an agent in an MDP is to learn an optimal policy which maximizes the expected discounted sum of rewards for each state at each time step :where denotes the policy of an agent, stands for expectation under policy , is a discount factor, and denotes the state at time . This goal can be formulated equivalently by explicitly storing the expected discounted reward for every stateaction pair’s Qvalues:An optimal policy can be found by computing the optimal stateaction value function. One of the most classic and widely used RL algorithms is Qlearning, which is an offpolicy model free temporal difference approach to iteratively approximating by the following update rule:where is the learning rate at time step .
An extension of the singleagent MDP to the multiagent case can be defined by Markov Game, which generalizes the MDP and is proposed as the standard framework for MARL recently [8, 11]. In a Markov Game, joint actions are the result of multiple agents choosing an action independently.
Definition 2. An agent Markov Game is a tuple , where is the set of agents in the system, is a finite set of state space, and is the set of actions available to agent (). Let be the joint action space. is the reward function of agent and is the transition function.
In an MG, transition probabilities now depend on current state , next state , and a joint action from state ; that is, with . The reward function is now individual to each agent , meaning that different agents can receive different rewards for the same state transition. Furthermore, the reward function implies the collaboration relation between agents in MASs. In a fully cooperative MG, which is also called Team Markov Game, all agents share the same reward function [9]. In this case, the team joint optimal policy consists with all agents’ individual optimal policy. In a noncooperative MG, individual reward functions are not the same or even opposite. Then agents try to learn an equilibrium between agent policies instead of the joint optimal policy [22]. However, it is expensive to calculate the equilibrium policy. Moreover, it is difficult for agents to acquire or estimate the complete stateaction information and Qvalues of all the other agents in the game. Thus a more general approach is proposed to calculate the expected individual optimal policy based on agents’ joint state information and individual selected action.
2.2. Learning in MASs with Sparse Interactions
A wide range of researches have been performed to exploit sparse interactions so as to learn coordinated policy in MASs [11–17]. In earlier researches, much attention is attracted to improving the learning performance by exploiting the hierarchical structure or interdependencies of agents in specific domain problems [13, 16]. For instance, in the hierarchical MARL [16], an overall task is subdivided into a hierarchy of subtasks manually according to prior domain knowledge, so coordinated learning is just considered in the joint of different hierarchies. In sparse cooperative Qlearning (SCQ) [13], Kok and Vlassis adopt coordination graph (CG) to decompose the overall function into local functions which can be optimized individually in the joint state space. However, the approach is limited to fully cooperative tasks and the state space is still exponential with the number of agents. Besides, all the above approaches assume that the dependencies or coordinated situations of agents are constructed beforehand explicitly through network or problem structure.
Some approaches have been developed in recent years with the aim of learning when coordination is beneficial in MASs with sparse interactions [12, 14, 15, 17, 18], which is significant in reducing learning cost and relaxing learning conditions for realworld MASs. For example, in [12], Melo and Veloso propose a twolayer extension of Qlearning algorithm called “learning to coordination” to enable agent to learn its coordinated states. Nevertheless, the learning performance of this algorithm is strongly affected by the penalty value. Kok et al. [14] introduce utile coordination to learn CGs automatically from statistical immediate rewards of other agents. Their approach is still only suited for collaborative multiagent MDP.
Recently, De Hauwere et al. [15] propose an algorithm called CQlearning to learn in which states an agent coordinating with others is beneficial. The algorithm identifies augmented states by detecting significant difference between the observed reward statistics in MASs and the expected reward in individual MDP. However, the algorithm depends on the assumption that each agent has a prior individual optimal policy. What is more, it only updates Qvalues of the coordinated states while it ignores their effect on the former uncoordinated states; therefore the retained optimal individual policy is not guaranteed any more. In FCQlearning [23], they extend the former with an enhanced detecting mechanism to solve the delayed coordination problems. Yu et al. [17] propose a method named independent degree learning (IDL) to learn coordinated behaviors in loosely coupled MASs. The independent degree for signifying coordination probability is calculated according to individual local observation and can be adjusted dynamically. However, this method is limited to the navigation scenario with two homogeneous robots and needs to be demonstrated in MASs with more agents. From a different view of knowledge transfer and game abstraction, Hu et al. [18] investigate a mechanism called Model TransferBased Game Abstraction (MTGA) for efficient sparse interactions MARL. They abstract the action selection in MASs as a oneshot game in each state and reduce the game by removing agents whose similarities of both reward and state transition are not changed significantly. The mechanism achieves better asymptotic performance and higher total rewards than former approaches. However, it still needs individual optimal policy as prior knowledge and computes inaccurate similarity for the state transition changes. What is more, a common situation exists when agents influencing others having their own state and reward remain unchanged and thus will not be included in the reduced game. This would lead to potential miscoordination.
Our work differs from the earlier approaches to learning coordinated states automatically instead of specifying them in advance. Comparing with recent approaches like CQlearning, IDL, and MTGA, our method requires no strong assumptions about agent or domain structure. We adopt sample grouping technique to identify the specific influence of each pair of agents so as to avoid miscoordination in MTGA. Each agent selects its own action based on augmented coordinated states as CQlearning, which is different from those using joint action or joint stateaction information like game abstraction in MTGA. Besides, a more accurate model difference degree than MTGA is defined for each agent’s state to signify the coordination necessity, which evaluates the changes of both reward and state transition and achieves better performance in broader scenarios.
3. Coordinated Learning Approach
This section introduces our modified coordinated learning approach to learn effective coordinated policy in MASs with sparse interactions. We first give a basic approach based on the assumption that agents have already learned the optimal individual policy by completing the singleagent task. Note that the assumption here could be satisfied in certain situations using existing approaches. The main concepts of the approach are as follows:(1)Identifying coordinated states automatically by grouping collected samples and calculating model difference degree.(2)Learning agents’ coordinated policy according to divided learning processes based on the identified coordinated states.Based on the basic approach, an extended one is proposed to cover more flexible situations without prior individual knowledge.
3.1. Identify Coordinated States Automatically
For a given MAS, we can build a full MG . Suppose, for each agent , we have an individual original MDP model to finish its singleagent task. This is natural for agent to apply individual policy to finish its task in the MG when the interactions between agents are sparse. Under this situation, the reward feedback and state transition may be different from those in with other agents’ influence. We can construct the empirical local environment model by conducting Monte Carlo sampling with a random policy in the MG, where and are the statistic changed reward function and state transition function. Then the model difference between and can be evaluated in each state to detect whether agent should consider coordinating with others in state . Moreover, to specify which state of another agent should be augmented to deal with the coordination, we can group the samples to get a more particular empirical local MDP when another agent is in state . Then model difference between and can be evaluated to detect whether agent should consider of agent to deal with the coordination. Next we elaborate the definition of the model difference degree and the complete coordinated states identification method.
3.1.1. Evaluate Difference of Environmental Dynamics
In an MDP, the environmental dynamics are reflected in reward function and state transition function. To evaluate the coordination necessity, it is vital to evaluate accurately the synthesized difference of the reward and state transition of the individual original MDP and empirical local MDP in the MG.
Inspired by the concept of state distance in an MDP proposed by Ferns et al. [24], we define a concept of model difference degree to evaluate differences in the same state between the individual original MDP and empirical local MDP in an MG, which is a more accurate metric compared with the similarity proposed by Hu et al. [18]. The definition of the model difference degree is given as follows.
Definition 3. Given a Markov Game , for each agent , let be the individual original MDP when agent acts alone in the SingleAgent System and let be the empirical local MDP when agent acts together with other agents in . For any state , the model difference degree between and in is defined aswhere is the discount factor and is the Kantorovich distance between the probabilistic distributions and that measures the supremum of all the probability difference for each potential transferred state.
From (4), it can be found that difference between the two MDPs in the same state is equal to the weighted sum of the reward difference and the state transition probabilities difference for each available action, summarizing all information about the changes of the environmental dynamics in the same state . If other agents have no impact on agent in , the reward function and the state transition function will remain unchanged; thus the model difference degree in between the two MDPs is equal to zero approximately. If both reward and state transition of agent are changed after interacting with other agents, the contribution of state transition dynamics will reinforce the identification of the reward change. Even in some situations when the intermediate reward feedback is not provided beforehand and state transition is changed because of others’ influence, we can still evaluate the difference according to state transition change.
In comparison, the model similarity proposed by Hu et al. in MTGA [18] computes the similarities of two MDPs by the summation of relative state distance between current state and all the other states in state space. It can reflect reward difference effectively but cannot accurately evaluate the state transition change according to the concept of Kantorovich distance [24]. This is because the supremum of state transition distance between and other states always keeps 1 and no state transition difference can be detected. The computational complexity of the proposed model difference degree is and is much smaller than of MTGA, where denotes the size of the state space. Compared with the KStest [15] and Friedmanntest in FCQlearning [23], it is more flexible because of the consideration of the state transition dynamics.
3.1.2. ModelBased Method for Identification
In this section, our complete coordinated states identification method is elaborated based on the model difference degree defined in Section 3.1.1.
Figure 1 is a detailed graphical representation of our method to identify coordinated states in MASs with sparse interactions. As the top of Figure 1 shows, for each agent in the MG, Monte Carlo sampling is first conducted to collect data at each step, including current state, executed action, received reward, transferred next state, and the states information of other agents. The action selection is performed as greedy random policy, where is set to a small value like 0.1. After sampling, we group the rewards and transferred states recorded based on the local state of other agents. For instance, in Figure 1, the collected data of agent in are grouped according to agent ’s local states and . Thus we can calculate new reward function and state transition function statistically for the situation that agent takes action in state at the time agent is in state . The reward function is the average of the collected rewards and the state transition function is the probability distribution of the recorded transferred states. The set of the calculated reward functions and state transition functions for all the available actions depicts the particular empirical local environment model . Thirdly, we compute the particular model difference degree for agent in state to evaluate the changes of environmental dynamics caused by agent in state . This difference is calculated based on agent ’s individual original MDP and according to (4) in Section 3.1.1. If the degree exceeds a significant difference threshold, agent should augment the coordinated state in state to include state of agent to deal with the coordination; otherwise it performs action as finishing a singleagent task.
The complete pseudocode of our coordinated states identification method is given in Algorithm 1, through which the agent can determine whether or not the coordination is needed in each state and which agents should be considered in its coordination. It should be noted that although all states’ information of other agents is recorded for grouping in Algorithm 1, we can restrict the number of agents recorded according to specific influence distance (e.g., sensor radius and field of fire) in realworld MASs. The distance can be a variable to describe the interacting bound depending on the agent type and current state. It can release the computational cost of the approach further.

3.2. Learning Coordinated Policy
After determining the coordinated states of each agent, we can divide the multiagent learning process in an MG into independent learning in uncoordinated states and joint learning in coordinated states. In this section, a Qlearning based learning rule is proposed to guide agents to learn optimal coordinated policy. It performs action selection and Qvalues update according to the two subprocesses, respectively.
The action selection works as follows: when the learning process starts, an agent checks whether its current local state is included in its coordinated states. If so, it will further check if the observed global state contains its augmented coordinated state in current local state. If this is the case, it selects its action according to the augmented coordinated state; otherwise it selects action independently only using its own local state information. If the local state of agent is not included in its coordinated states or not augmented in the current joint state, it can also select action independently.
According to the relation of current local state and transferred state, there are following scenarios to update the Qvalues in the learning process.
(1) An agent is in a coordinated state and it needs to select an action using global state information in the coordination union.
In this situation, we will check if the next transferred state is also in a coordinated state needing to use global state information to select an action. If this is the case, the following update rule is used:Otherwise, the individual maximal Qvalues of next transferred state are used to update current coordinated Qvalues:
(2) An agent is in a state where it selects an action using only its own state information.
In this case, if the next transferred state is in a coordinated state needing to use global state information to select an action, the following update rule is used: Otherwise, the standard singleagent Qlearning rule is used with only local state information.
In the above equations (5) to (8), stands for the Qvalues of individual local state and action pair of agent , which can be initialized by prior individual optimal Qtable if singleagent knowledge has been learned. stands for the Qvalues of the augmented state and action pair of agent . Note that contains and the augmented Qtable is initially empty. Let be the transferred state after performing action . If is in the coordinated state and the observed transferred global state information contains augmented state of agent , the augmented state is denoted as . is the next selected action of agent .
Equations (5) to (8) show us the Qvalues update of the possible state transition relation in the learning process, which bootstraps Qvalues of the augmented state and local state, respectively, to optimal convergence. Equation (5) and (6) represent the accumulation of learning experience step by step to solve the coordination problem in sparse coordinated states. It learns effective coordination by taking other agents’ influencing states into consideration to select individual action in the sufficient trials. Equation (7) and (8) represent the local adaptation of the prior individual Qtable to get an optimal independent learning policy, which can avoid suboptimal policy because of the change of hinder Qvalues. In comparison, CQlearning only updates its joint Qtable and ignores coordinated states’ effects on the Qvalues of former uncoordinated state; thus the individual policy that remained beforehand will not be guaranteed as an optimal policy.
The pseudocode for our whole modelbased difference degree learning approach is given in Algorithm 2. We can see that the approach is executed in two phases. In coordinated states identification process (line (2)), the model difference degree between and for each of the agents and costs major computational time of the identification approach. Thus the computational complexity of Algorithm 1 for all the agents is , where denotes the size of state space and denotes the number of agents in the system. In comparison, the complexity in MTGA is , because it only computes the similarities to identify whether agent should coordinate with others to avoid confliction. Compared with the above identification process running only once, the coordinated learning process (lines (3) to (35)) runs a great number of steps until the terminal states are reached. The computational complexity of the proposed approach at each time step is , which is the same as CQlearning. For MTGA, the equilibrium should be computed based on the joint action space for the identified sparse coordinated states, so the computational complexity is higher than that of our approach.

3.3. Learning without Prior Individual QValues
In the above approach, we assume that individual optimal policy in completing a singleagent task has been trained beforehand as prior knowledge, which is sometimes not practical in real world. In this section, we introduce a variation of our approach to learn coordinated policy without prior individual optimal policy. The main difference lies in that we perform not only sampling but also individual Qvalues update like independent learning in the phase of coordinated states identification. Through that, we can get not only empirical local MDP model to compute model difference degree of each agent, but also individual empirical knowledge to initialize individual Qtable in coordinated learning.
Specifically, we make the following changes in the pseudocode of the proposed approach. In Algorithm 1, we extend lines (2) and (6) to implement individual knowledge learning. Line (2) shows us the change of action selection policy in sampling, and line (6) is a simple process of individual Qvalue update. The action selection policy is changed as follows. At the beginning of Monte Carlo sampling, the action selection policy is set to a big value approaching 1 like 0.9999, which simulates completely random exploration without prior knowledge. is then decreased by multiplying with factor in each episode and down to a minimal value like 0.1, leading the sampling process from complete exploration to full exploitation. Through above changes in coordinated states identification, we can perform completely random exploration at the beginning to access the real model in the state space and then accumulate experience and make use of the learned knowledge to detect environment delicately around the suboptimal path later. In the learning phase, the accumulated local empirical Qvalues in sampling can be used to replace individual optimal policy to initialize individual Qtable in line (1) of Algorithm 2, which will speed up the learning convergence.
4. Experiments
In this section, a series of experiments are carried out on gridworld games to test the effectiveness of our approaches in different scales of MASs with sparse interactions, especially in situations where the existing approaches cannot solve the coordination correctly. The experiments are run singlethreaded on an Intel Core i5, 3.20 GHz CPU with 3.45 GB using the Windows XP 32bit operating system and Matlab 2014a. The basic learning approach is denoted simply as difference degree learning (DDL), and the extended approach without initialized individual optimal Qvalues is denoted as DDLNI.
4.1. Experimental Setting
The benchmark environment is a set of multiagent gridworld games presented in Figure 2. Games (a) to (f) with 2 agents are the same as those used by De Hauwere et al. [15], where agents can collide with other agents in any state. Games (g) and (h) with more than 2 agents are the same as those used by Hu et al. [18], where agents collide with others only in the shaded grids areas. In all these games, agents are required to reach their goals within certain steps and avoid collisions. The goal of each agent in 2agent games is the starting position of the other one, while goals in games (g) and (h) are denoted by . At each step, agent can choose to move in four directions, that is, Up, Down, Left, and Right, and transfers to another state with certain probabilities. In Sections 4.2.2 and 4.2.3, if agents collide with each other, both will break down and are transferred back to their original states.
(a) TTG
(b) TR
(c) HG
(d) ISR
(e) CIT
(f) CMU
(g) NJU
(h) NTU
Our approaches, DDL and DDLNI, are compared with two stateoftheart approaches, CQlearning and MTGA. The approaches CQlearning, MTGA, and DDL all need prior individual optimal policy to initialize individual policy or lead sampling. The equilibrium calculation in MTGA differs from our prior conditions for it requires states information and corresponding Qvalues from all the other agents in the game. To compare the effectiveness of coordinated states identification, we implement MTGA with the same action selection mechanism to select the optimal action based on joint coordinated states information.
The basic parameter settings are presented in the following list, which is similar to De Hauwere et al.’s [15] except the nondeterministic state transition. All experiments based on the four approaches are run with a learning rate of 0.05 and a discount factor of 0.9. The exploration is regulated using a fixed greedy policy with . In DDLNI, the sampling exploration is set to 0.9999 at first, the minimal exploration value to 0.1, and the decreasing factor to 0.99. In DDL, DDLNI, and MTGA, the number of sampling episodes is 500, with the threshold value set to 0.2 times the maximal value of the computed MDP differences as that used by Hu et al. [18]. Rewards are given as follows: the expected reward for an agent to reach its goal is set to +20 except CMU and the expected penalty for colliding with a wall is set to −1. Because the size of CMU is larger than other games, the expected reward for an agent to reach goal in CMU is set to +200 to lead learning. The expected penalty for colliding with another agent is different in various environment settings, denoted as . State transitions are made stochastic by assigning a success probability to agents’ actions in different experiment settings. Agents were trained for 10,000 episodes with corresponding configuration and the resulting policy is then played greedily for 1000 episodes. Each episode has a time limit of 50,000 steps. All results are then averaged over 10 runs.
Parameter Settings in Our Experiments. (Parameters: Meanings, Values) : the learning rate, 0.05 : the discount factor, 0.9 : the exploration in greedy policy, 0.1 : the minimal exploration value in DDLNI, 0.1 : the decreasing factor of exploration policy in DDLNI, 0.99 : the threshold value to identify coordination in MTGA, DDL, and DDLNI, 0.2 : the expected reward for reaching goal except CMU (+200 in CMU), +20 : the expected reward of colliding with a wall, −1 : the time limit for perepisode learning, 50000 : the number of sampling episodes in MTGA, DDL, and DDLNI, 500 : the number of learning episodes, 10000 : the number of final policy played times in each run, 1000 : the number of all the learning process performed times, 10.
4.2. Results and Analysis
Experiments under different environment conditions are carried out to demonstrate our approaches’ advantages, which are performed as three parts. Firstly, experiments are conducted under more general conditions. Secondly, the results of basic learning performance are compared with the tested approaches in 2agent nondeterministic environment. At last, we demonstrate our approaches in MASs with more than two agents.
During the process, we record the number of steps reaching the goal, reward, collision times, and the average reward per step. The average number of steps before reaching the goal depicts the time cost of finishing the task. The average reward specifies the summation of reward to goal and penalty for colliding with other agents or walls. The average reward per step (ARPS), which is the ratio of average reward and average number of steps to goal, is a synthesized criterion to measure each agent’s learning performance. Therefore, the ARPS curves with episodes can reflect the learning dynamics and convergence performance with their final values portraying the performance of final learned policy.
4.2.1. Learning Performance Comparison in Some Broader Scenarios
In this section, we examine the tested approaches to compare their effectiveness and robustness in two broader types of 2agent scenarios.
In the first scenario, agents are presented in deterministic environment; that is to say, . The particular condition is that agents have no penalty feedback when one agent collides with the other. It represents the situation when intermediate state rewards can not be listed beforehand for all unanticipated circumstances; thus agents should consider the change of state transition to identify coordinated states.
Figure 3 shows the model difference degree in three small domains from the perspective of agent 1, which are computed with (4). These values describe the difference degree between the individual original MDP when agent 1 acts alone and the empirical local MDP when agent 1 acts together with agent 2. A higher value means that agent 1 is more potentially influenced by agent 2, and thus coordinating with agent 2 during decisionmaking should be considered. As expected, the values in the conflicting states, that is, the areas near the entrance or doorway, are much higher than that of those “safe” states. For example, in TTG, the state with the biggest value 0.657 is exactly the position where agent 1 collides with agent 2 frequently when both agents perform actions under individual optimal policy. The change of difference degree reflects the level of necessity for agent 1 coordinating with agent 2. We can see that difference degrees of states surrounded by walls are bigger than those of states on the left of the most “dangerous” one. This is because the former states are laid on the only way to goal while the latter one is far from the optimal route of agent 2 to collide. (b) and (c) depict the coordination necessity when two agents perform tasks as nearoptimal policy in games TR and HG.
(a) TTG
(b) TR
(c) HG
Note that the difference degree is computed only based on the collected data of state transition, which is inaccessible to those methods dependent on reward only, like CQlearning. Therefore, those methods cannot deal with collisions to learn a coordinated policy. For MTGA, the similarities computed are all 0 in the conditions of agents having no reward feedback. Because the supremum of state transition distance keeps 1 all the same and no state transition difference will be detected. it cannot identify accurate coordinated states in the scenario.
Figure 4 shows ARPS learning curves of the tested approaches in different games in the first scenario. To be specific, without penalty feedback for the collision, agents using CQlearning cannot identify coordinated states to avoid collision; thus they cannot learn coordinated policy to finish tasks. For MTGA, agents also cannot detect the difference of the two MDPs owing to the inaccurate evaluation of state transition changes; consequently they cannot reach goals. For DDL and DDLNI, agents can learn effective coordinated policy as well as in the conditions without reward feedback.
(a) TTG
(b) TR
(c) HG
(d) CMU
In terms of the observed data, the changes of states transition are more primary than the reward feedback in reflecting environmental dynamics’ changes caused by other agents. Thus, it is more important to consider the changes of states transition to exploit the relations between agents, which can learn approximate optimal coordinated policy based on the least observed information more flexibly.
In the second scenario, agents are also presented in deterministic environment. There is a special condition when agent 1 receives expected penalty −10 and returns to its original state after colliding with agent 2, while the state transition and reward of agent 2 are not influenced by agent 1. This is a quite common situation when influences of an interaction are unilateral in a heterogeneous MAS.
Figure 5 shows the learning curves of agent 1 by the tested approaches in the second scenario. We can see that the CQlearning, DDL, and DDLNI all learn favorable final policy in different games. For example, in game HG, the final ARPS values achieved by CQlearning, DDL, and DDLNI all reach around 1.8. In game CMU, this value reaches about 5.6 for CQlearning and DDLNI, indicating that CQlearning can learn equivalent policy to our approaches in deterministic environment. However, the final ARPS value achieved by MTGA is obviously lower than that of all the other approaches except in game TR, which is only 1.0 in game HG. In game CMU, MTGA cannot learn a convergent policy within the allowed time limit. Because game TR provides multiple routes for agents to reach goals, agents can learn an optimal policy without collisions in MTGA.
(a) TTG
(b) TR
(c) HG
(d) CMU
Note that influences of the interactions between two agents are not as mutual as collision of robots. For CQlearning, DDL, and DDLNI, two agents deal with the changes caused by the other agent’s interaction in each state, respectively. Specifically, after identifying the state where agent 2 influences agent 1 obviously, agent 1 will construct a joint state for itself and thus to avoid miscoordination. However, without changes being detected, agent 2 still selects its action on its own. For MTGA, it only constructs an overall joint coordination including influenced agent 1. Thus MTGA performs like an independent learner in these conditions, which treats the remaining agents simply as part of the environment and ignores the coordination requirements. So the learning curves of MTGA show big fluctuating errors and lead to a nonconvergent policy in complex MASs like CMU.
4.2.2. Learning Performance Comparison in 2Agent Nondeterministic Environment
In this section, agents are assigned a stochastic transition probability of 0.8 to reach its expected state and 0.2 of failure in original state. The expected penalty for colliding with another agent is −10. Due to space limitation, we only show in Figure 6 the ARPS learning curves of four tested approaches in partially typical games, including three small ones (TTG, TR, and HG) and the most complicated 2agent game CMU. The complete results of final policy for four approaches are showed in Table 1.

(a) TTG
(b) TR
(c) HG
(d) CMU
In Figure 6, we examine the average results of the two agents according to the learning process and final policy received. It should be noted that, at episode 10000, there is abrupt climbing of ARPS because the final learned policy is performed without random action selection any more.
For the learning process, we can see that, at the beginning, DDL, DDLNI, and MTGA perform rapid climbing and receive favorable ARPS values compared to CQlearning. Because the former approaches identify coordinated states beforehand in the sampling of early episodes, it can make use of prior knowledge transfer. CQlearning augments coordinated states continually as reward collecting. As a result, it fluctuates obviously with the exploration of coordination and takes more time to reach convergence.
In terms of final ARPS values achieved, our approaches can learn a better policy compared with CQlearning and MTGA. For example, the values achieved by DDL and DDLNI finally reach almost 2.0 in game HG, while MTGA reaches only 1.6. In game CMU, the difference is more significant. DDL finally reaches a high value of 5.9, compared with DDLNI reaching a value of about 5.7, MTGA reaching a value around 4.0, and CQlearning having no convergent policies due to exceeding the maximal time limit. In MTGA, as the accuracy of model similarity would decrease because of its rough evaluation of state transition, redundant coordinated states would be expanded to avoid collision and assure convergence. Clearly, for CQlearning, nondeterministic state transition would give rise to the number of coordinated states which should be taken into consideration, making immediate reward difference get blurred to identify. What is more, it only updates coordinated states’ Qvalues, which restrict the exploration of possible coordinated states. Thus necessary coordinated states may not be expanded in CQlearning when the size of environment state is large like CMU. In comparison, the model difference degree in DDL and DDLNI would keep pace with the changes of environmental dynamics to highlight the coordination necessity accurately. Due to the absence of individual optimal policy, DDLNI cannot get final ARPS values as well as DDL. But it also receives approximate optimal policy better than MTGA and CQlearning in most situations, which encourages our approach to be applied in more flexible MASs.
The overall results of average final learned policy for the 2agent games are given in Table 1, including number of augmented states, number of collisions, number of steps, and received reward value in distinct environments by certain algorithms. In agreement with the results in Figure 6, Table 1 shows that our approaches take the least number of moving steps and receive the biggest reward in most games, whereas CQlearning cannot assure learning convergent policy in large scale nondeterministic games. For example, in TTG, CQlearning takes average 13.503 steps and receives average reward value of about 22.594, which is better than the values of 15.767 and 21.719 in MTGA, respectively. In CMU, CQlearning gets a large average number of moving steps of 39685 and average reward of −645.73. The number of collisions also shows that agents can learn effective policy without collision into other agents in most games except CMU by CQlearning. The number of total augmented states reflects the main reason of performance difference. It can be found that MTGA expands most coordinated states, in TTG it augments about 76.4 states, and in CMU it augments more than 16000. In comparison, DDL and DDLNI expand the least necessary coordinated states to avoid collision.
As a whole, the proposed approaches perform favorable convergence and learn better coordinated policy in 2agent nondeterministic environment, which outperforms CQlearning and MTGA.
4.2.3. Learning Performance Comparison with More Than 2 Agents in Nondeterministic Environment
In this section, we show our experimental results in MASs with more than 2 agents. Games NJU and NTU have 3 and 4 agents, respectively. The transition probability is the same as those in 2agent games. Agents receive an expected penalty of −10 when colliding with others in the shaded areas. For exhibiting the results better, each subfigure in Figures 7 and 8 only plots the learning curves of one agent using different approaches.
(a) Agent 1
(b) Agent 2
(c) Agent 3
(a) Agent 1
(b) Agent 2
(c) Agent 3
(d) Agent 4
Figure 7 depicts the learning curves of the tested approaches in game NJU. We can see that CQlearning cannot learn a convergent policy in the end because of large size of state space and nondeterministic environment. In comparison, the other three approaches get favorable convergence for the final learned policy. The ARPS values of agents 1, 2, and 3 for MTGA finally converge to 2.1, 1.8, and 2.4. For DDL and DDLNI, the values are 3.0, 3.0, and 2.6 and 3.6, 3.0, and 3.1, respectively. It indicates that our two approaches learn better policy than CQlearning and MTGA in game NJU.
In Figure 8, similar results can be observed in NTU. Due to the layout difference, agents in NJU are more likely to collide with each other than in NTU though it possesses fewer agents. For instance, in NTU, agent 1 only needs to coordinate with agent 2 and ignores agent 3 and agent 4. Thus an interesting point that should be noted is that the performance of MTGA in NTU drops dramatically compared to that in NJU, while DDL and DDLNI in NTU perform better than those in NJU. The final ARPS values achieved by MTGA and DDL in NTU for the four agents are 0.3, 0.5, 0.3, and 0.5 and 7.0, 3.8, 5.0, and 3.7, respectively. The dispersion of final ARPS for MTGA and DDL in NTU is obviously much bigger than that in NJU. The main reason is that MTGA augments more redundant states than DDL and DDLNI. MTGA constructs an overall joint coordination for all those influenced agents in each state but ignores which states of other agents for a specific agent should be augmented. Thus it augments almost all the joint states in the nondeterministic environment, which costs great computation and leads to more moving steps in each episode. Through our sample grouping mechanism, agent 1 only considers coordination with agent 2 and ignores influences of agent 3 and agent 4 to a certain extent, which reduce the learning space to improve final APRS effectively.
Table 2 shows the average runtime results of the tested algorithm during a run. Due to the space limitations, we only show the average runtimes of CQlearning, MTGA, DDL, and DDLNI in games TTG, ISR, CMU, NJU, and NTU. We can see that, in general, DDL and DDLNI are faster than CQlearning and MTGA, especially in games with large size of state space. In small games, MTGA is sometimes faster than DDL and DDLNI because the process of computing model difference degree needs more time than similarities calculation in MTGA. For instance, in game ISR, runtimes of MTGA, DDL, and DDLNI are 40.14 s, 58.13 s, and 54.93 s, respectively. With more redundant coordinated states being expanded in larger games like CMU, NJU, and NTU, runtimes taken in MTGA for each episode are obviously longer than those of our approaches, which are 513.75 s, 322.91 s, and 338.28 s, respectively. For CQlearning, although extra time is not needed in coordinated states identification beforehand, it augments coordinated states continually along with rewards being collected during learning, which leads to slow convergence. Thus, CQlearning is the slowest. Moreover, in large nondeterministic games like CMU and NTU, CQlearning cannot learn convergent policies within the allowed time limit. In comparison, DDL is the fastest because of the accurate coordinated states identification and knowledge transfer. For DDLNI with less accurate individual knowledge collected through limited sample times, it takes more time in games CMU and NTU.

5. Conclusion
This paper proposes a modified coordinated learning approach for MASs with sparse interactions. The approach enables agents to learn effective coordinated policy through sample grouping and evaluating the model difference degree of environmental dynamics. The grouped samples help an agent to identify not only whether it should coordinate with others to avoid confliction in current local state, but also which states of other agents should be considered to avoid miscoordination. The modified model difference degree makes full use of changes of reward and state transition to improve the learned policy. Moreover, our approaches require neither prior knowledge about domain structures (e.g., dependencies or coordinated states predefined) nor assumptions about agents (e.g., prior individual optimal policy). These features make our research apart from most existing approaches and render it in a broader way as a technique to solve practical applications. Experimental results show that the proposed approach improves the learned policy in various nondeterministic environment compared to existing algorithms, like CQlearning and MTGA. Furthermore, it adapts to some broader scenarios which existing methods cannot deal with.
In our future work, we will investigate the problems with incomplete or inaccurate observation information about multiagent environment in real world, which may be studied based on the POMDP model [10]. Another interesting direction is the reward shaping for specified application of our approach in the wider context of computer games [25]. We will aim at improving the adaptation and efficiency of coordinated learning in complex multiplayer games by introducing model abstraction and reward shaping.
Competing Interests
The authors declare that there is no conflict of interests regarding the publication of this manuscript.
Acknowledgments
The authors would like to acknowledge the support for this work from the National Science Foundation of China (Grants 61473300, 61573369, and 61403402) and the helpful discussions and suggestions with Xiaocheng Liu, Wei Duan, and Yong Peng.
References
 L. Buşoniu, R. Babuška, and B. De Schutter, “A comprehensive survey of multiagent reinforcement learning,” IEEE Transactions on Systems, Man and Cybernetics Part C: Applications and Reviews, vol. 38, no. 2, pp. 156–172, 2008. View at: Publisher Site  Google Scholar
 E. Yang and D. Gu, “Multiagent reinforcement learning for multirobot systems: a survey,” Tech. Rep., 2004. View at: Google Scholar
 C. V. Goldman and S. Zilberstein, “Decentralized control of cooperative systems: categorization and complexity analysis,” Journal of Artificial Intelligence Research, vol. 22, pp. 143–174, 2004. View at: Google Scholar
 A. Galstyan, K. Czajkowski, and K. Lerman, “Resource allocation in the grid with learning agents,” Journal of Grid Computing, vol. 3, no. 12, pp. 91–100, 2005. View at: Publisher Site  Google Scholar
 I. Szita, “Reinforcement learning in games,” in Reinforcement Learning, pp. 539–577, Springer, Berlin, Germany, 2012. View at: Google Scholar
 J. Duan, N. E. Gough, and Q. H. Mehdi, “Multiagent reinforcement learning for computer game agents,” in Proceedings of the 3rd International Conference on Intelligent Games and Simulation (GAMEON '02), pp. 104–109, The University of Wolverhampton, London, UK, November 2002. View at: Google Scholar
 L. Panait and S. Luke, “Cooperative multiagent learning: the state of the art,” Autonomous Agents and MultiAgent Systems, vol. 11, no. 3, pp. 387–434, 2005. View at: Publisher Site  Google Scholar
 M. L. Littman, “Markov games as a framework for multiagent reinforcement learning,” in Proceedings of the 11th International Conference on Machine Learning, vol. 157, pp. 157–163, 1994. View at: Google Scholar
 C. Boutilier, “Planning, learning and coordination in multiagent decision processes,” in Proceedings of the 6th Conference on Theoretical Aspects of Rationality and Knowledge (TARK '96), pp. 195–210, Morgan Kaufmann, San Francisco, Calif, USA, 1996. View at: Google Scholar
 B. Banerjee, J. Lyle, L. Kraemer, and R. Yellamraju, “Sample bounded distributed reinforcement learning for decentralized POMDPs,” in Proceedings of the 26th AAAI Conference on Artificial Intelligence, pp. 1256–1262, July 2012. View at: Google Scholar
 A. Nowé, P. Vrancx, and Y. M. De Hauwere, “Game theory and multiagent reinforcement learning,” in Reinforcement Learning, pp. 441–470, Springer, Berlin, Germany, 2012. View at: Google Scholar
 F. S. Melo and M. Veloso, “Learning of coordination: exploiting sparse interactions in multiagent systems,” in Proceedings of The 8th International Conference on Autonomous Agents and Multiagent Systems (AAMAS '09), pp. 773–780, International Foundation for Autonomous Agents and Multiagent Systems, Budapest, Hungary, 2009. View at: Google Scholar
 J. R. Kok and N. Vlassis, “Sparse cooperative Qlearning,” in Proceedings of the ACM 21st International Conference on Machine Learning (ICML '04), p. 61, 2004. View at: Publisher Site  Google Scholar
 J. R. Kok, E. J. Hoen, B. Bakker, and N. Vlassis, “Utile coordination: learning interdependencies among cooperative agents,” in Proceedings of the IEEE Symposium on Computational Intelligence and Games, pp. 29–36, Colchester, UK, 2005. View at: Google Scholar
 Y. M. De Hauwere, P. Vrancx, and A. Nowé, “Learning multiagent state space representations,” in Proceedings of the 9th International Conference on Autonomous Agents and Multiagent Systems, vol. 1, pp. 715–722, International Foundation for Autonomous Agents and Multiagent Systems, Toronto, Canada, 2010. View at: Google Scholar
 M. Ghavamzadeh, S. Mahadevan, and R. Makar, “Hierarchical multiagent reinforcement learning,” Autonomous Agents and MultiAgent Systems, vol. 13, no. 2, pp. 197–229, 2006. View at: Publisher Site  Google Scholar
 C. Yu, M. Zhang, F. Ren, and G. Tan, “Multiagent learning of coordination in loosely coupled multiagent systems,” IEEE Transactions on Cybernetics, vol. 45, no. 12, pp. 2853–2867, 2015. View at: Publisher Site  Google Scholar
 Y. Hu, Y. Gao, and B. An, “Learning in multiagent systems with sparse interactions by knowledge transfer and game abstraction,” in Proceedings of the International Conference on Autonomous Agents and Multiagent Systems (AAMAS '15), pp. 753–761, International Foundation for Autonomous Agents and Multiagent Systems, Istanbul, Turkey, May 2015. View at: Google Scholar
 R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, The MIT Press, 2011.
 M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, John Wiley & Sons, New York, NY, USA, 2014.
 Y. Gao, S. F. Chen, and X. Lu, “Research on reinforcement learning technology: a review,” Acta Automatica Sinica, vol. 30, no. 1, pp. 86–100, 2004. View at: Google Scholar
 J. Hu and M. P. Wellman, “Nash Qlearning for generalsum stochastic games,” The Journal of Machine Learning Research, vol. 4, no. 6, pp. 1039–1069, 2004. View at: Publisher Site  Google Scholar
 Y. M. De Hauwere, P. Vrancx, and A. Nowé, “Detecting and solving future multiagent interactions,” in Proceedings of the AAMAS Workshop on Adaptive and Learning Agents, pp. 45–52, Taipei, Taiwan, 2011. View at: Google Scholar
 N. Ferns, P. Panangaden, and D. Precup, “Metrics for finite Markov decision processes,” in Proceedings of the 20th Conference on Uncertainty in Artificial Intelligence, pp. 162–169, AUAI Press, Banff, Canada, July 2004. View at: Google Scholar
 S. Devlin and D. Kudenko, “Planbased reward shaping for multiagent reinforcement learning,” in Proceedings of the AAMAS Workshop on Adaptive and Learning Agents (ALA '12), 2012. View at: Google Scholar
Copyright
Copyright © 2016 Qi Zhang et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.