---
title: "Multi-Agent Reinforcement Learning for Traffic Signal Control through Universal Communication Method"
authors:
  - "Qize Jiang"
  - "Minhao Qin"
  - "Shengmin Shi"
  - "Weiwei Sun"
  - "Baihua Zheng"
doi: "10.24963/ijcai.2022/535"
url: "https://ijcai.org/proceedings/2022/535"
pdf: "https://ijcai.org/proceedings/2022/0535.pdf"
venue: "Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence"
year: 2022
pages: "3854-3860"
track: "Main Track"
keywords:
  - "Multidisciplinary Topics and Applications: Transportation"
---

# Multi-Agent Reinforcement Learning for Traffic Signal Control through Universal Communication Method

Qize Jiang, Minhao Qin, Shengmin Shi, Weiwei Sun, Baihua Zheng

*Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence*, pages 3854-3860. DOI: [10.24963/ijcai.2022/535](https://doi.org/10.24963/ijcai.2022/535)

## Abstract

How to coordinate the communication among intersections effectively in real complex traffic scenarios with multi-intersection is challenging.  Existing approaches only enable the communication in a heuristic manner without considering the content/importance of information to be shared. In this paper, we propose a universal communication form UniComm between intersections. UniComm embeds massive observations collected at one agent into crucial predictions of their impact on its neighbors, which improves the communication efficiency and is universal across existing methods. We also propose a concise network UniLight to make full use of communications enabled by UniComm.  Experimental results on real datasets demonstrate that UniComm universally improves the performance of existing state-of-the-art methods, and UniLight significantly outperforms existing methods on a wide range of traffic situations. Source codes are available at https://github.com/zyr17/UniLight.

## Full text

## 1 Introduction

Traffic congestion is a major problem in modern cities. While the use of traffic signal mitigates the congestion to a certain extent, most traffic signals are controlled by timers. Timerbased systems are simple, but their performance might deteriorate at intersections with inconsistent traffic volume. Thus, an adaptive traffic signal control method, especially controlling multiple intersections simultaneously, is required.

Existing conventional methods, such as SOTL [Cools et al., 2013], use observations of intersections to form better strategies, but they do not consider long-term effects of different signals and lack a proper coordination among intersections. Recently, reinforcement learning (RL) methods have showed promising performance in controlling traffic signals. Some of them achieve good performance in controlling traffic signals at a single intersection [Zheng et al., 2019a; Oroojlooy et al., 2020]; others focus on collaboration of multi-intersections [Wei et al., 2019b; Chen et al., 2020].

Multi-intersection traffic signal control is a typical multiagent reinforcement learning problem. The main challenges include stability, nonstationarity, and curse of dimensionality. Independent Q-learning splits the state-action value function into independent tasks performed by individual agents to solve the curse of dimensionality. However, given a dynamic environment that is common as agents may change their policies simultaneously, the learning process could be unstable.

To enable the sharing of information among agents, a proper communication mechanism is required. This is critical as it determines the content/amount of the information each agent can observe and learn from its neighboring agents, which directly impacts the amount of uncertainty that can be reduced. Common approaches include enabling the neighboring agents i) to exchange their information with each other and use the partial observations directly during the learning [El-Tantawy et al., 2013], or ii) to share hidden states as the information [Wei et al., 2019b; Yu et al., 2020]. While enabling communication is important to stabilize the training process, existing methods have not yet examined the impact of the content/amount of the shared information. For example, when each agent shares more information with other agents, the network needs to manage a larger number of parameters and hence converges in a slower speed, which actually reduces the stability. As reported in [Zheng et al., 2019b], additional information does not always lead to better results. Consequently, it is very important to select the right information for sharing.

Motivated by the deficiency in the current communication mechanism adopted by existing methods, we propose a universal communication form UniComm. To facilitate the understanding of UniComm, let's consider two neighboring intersections Ii and Ij connected by a unidirectional road Ri,j from Ii to Ij. If vehicles in Ii impact Ij, they have to first pass through Ii and then follow Ri,j to reach Ij. This observation inspires us to propose UniComm, which picks relevant observations from an agent Ai who manages Ii, predicts their impacts on road Ri,j, and only shares the prediction with its neighboring agent Aj that manages Ij. We conduct a theoretical analysis to confirm that UniComm does pass the most important information to each intersection.

While UniComm addresses the inefficiency of the current communication mechanism, its strength might not be fully achieved by existing methods, whose network structures are designed independent of UniComm. We therefore design UniLight, a concise network structure based on the observations made by an intersection and the information shared by UniComm. It predicts the Q-value function of every action based on the importance of different traffic movements.

In brief, we make three main contributions in this paper. Firstly, we propose a universal communication form UniComm in multi-intersection traffic signal control problem, with its effectiveness supported by a thorough theoretical analysis. Secondly, we propose a traffic movement importance based network UniLight to make full use of observations and UniComm. Thirdly, we conduct experiments to demonstrate that UniComm is universal for all existing methods, and UniLight can achieve superior performance on not only simple but also complicated traffic situations.

## 2 RelatedWorks

Based on the number of intersections considered, traffic signal control problem (TSC) can be clustered into i) single intersection traffic signal control (S-TSC) and ii) multiintersection traffic signal control (M-TSC).

S-TSC. S-TSC is a sub-problem of M-TSC, as decentralized multi-agent TSC is widely used. Conventional methods like SOTL choose the next phase by current vehicle volumes with limited flexibility. As TSC could be modelled as a Markov Decision Process (MDP), many recent methods adopt reinforcement learning (RL) [van Hasselt et al., 2016; Mnih et al., 2016; Haarnoja et al., 2018; Ault et al., 2020]. In RL, agents interact with the environment and take rewards from the environment, and different algorithms are proposed to learn a policy that maximizes the expected cumulative reward received from the environment. Many algorithms [Zheng et al., 2019a; Zang et al., 2020; Oroojlooy et al., 2020] though perform well for S-TSC, their performance at M-TSC is not stable, as they suffer from a poor generalizability and their models are hard to train.

M-TSC. Conventional methods for M-TSC mainly coordinate different traffic signals by changing their offsets, which only works for a few pre-defined directions and has low efficiency. When adapting RL based methods from single intersection to multi-intersections, we can treat every intersection as an independent agent. However, due to the unstable and dynamic nature of the environment, the learning process is hard to converge [Bishop, 2006; Now´e et al., 2012]. Many methods have been proposed to speedup the convergence, including parameter sharing and approaches that design different rewards to contain neighboring information [Chen et al., 2020]. Agents can also communicate with their neighboring agents via either direct or indirect communication. The former is simple but results in a very large observation space [El-Tantawy et al., 2013; Arel et al., 2010]. The latter relies on the learned hidden states and many different methods [Nishi et al., 2018; Wei et al., 2019b; Chen et al., 2020] have been proposed to facilitate a better generation of hidden states and a more cooperative communication among agents. While many methods show good performance in experiments, their communication is mainly based on hidden states extracted from neighboring intersections. They neither examine the content/importance of the information, nor consider what is the key information that has to be passed from an agent to a neighboring agent. This makes the learning process of hidden states more difficult, and models may fail to learn a reasonable result when the environment is complicated. Our objective is to develop a communication mechanism that has a solid theoretical foundation and meanwhile is able to achieve a good performance.

## 3 ProblemDefinition

We consider M-TSC as a Decentralized Partially Observable Markov Decision Process (Dec-POMDP) [Oliehoek et al., 2016], which can be described as a tuple G = ⟨S,A, P, r,Z,O,N, γ⟩. Let s ∈ S indicate the current true state of the environment. Each agent i ∈ N := 1, · · · ,N chooses an action ai ∈ A, with a := [ai]Ni=1 ∈ AN referring to the joint action vector formed. The joint action then transits the current state s to another state s′ , according to the state transition function P(s′ |s, a) : S × AN × S → [0, 1]. The environment gets the joint reward by reward function r(s, a) : S × AN → R. Each agent i can only get partial observation z ∈ Z according to the observation function O(s, i) : S × i → Z. The objective of all agents is to maximize the cumulative joint reward ∑∞i=0 γ i r(si, ai), where γ ∈ [0, 1] is the discount factor.

Following CoLight [Wei et al., 2019b] and MPLight [Chen et al., 2020], we define M-TSC in Problem 1. We plot the schematic of two adjacent 4-arm intersections in Figure 1 to facilitate the understanding of following definitions.

Definition 1. An intersection Ii ∈ I refers to the start or the end of a road. If an intersection has more than two approaching roads, it is a real intersection I R i ∈ I R as it has a traffic signal. We assume that no intersection has exactly two approaching roads, as both approaching roads have only one outgoing direction and the intersection could be removed by connecting two roads into one. If the intersection has exactly one approaching road, it is a virtual intersection I V i ∈ I V , which usually refers to the border intersections of the environment, such as I2 to I7 in Figure 1. The neighboring intersections I N i of Ii is defined as I N i = {Ij|Ri,j ∈ R}∪{Ij|Rj,i ∈ R}, where roads Ri,j and R are defined in Definition 2.

Definition 2. A Road Ri,j ∈ R is a unidirectional edge from intersection Ii to another intersection Ij. R is the set of all valid roads. We assume each road has multiple lanes, and each lane belongs to exactly one traffic movement, which is defined in Definition 3.

Definition 3. A traffic movement Tx,i,y is defined as the traffic movement travelling across Ii from entering lanes on road Rx,i to exiting lanes on road Ri,y. For a 4-arm intersection, there are 12 traffic movements. We define the set of traffic movements passing Ii as Ti = {Tx,i,y|x, y ∈ I N i ,Rx,i,Ri,y ∈ R}. T3,0,4 and T7,1,6 represented by orange dashed lines in Figure 1 are two example traffic movements.

Definition 4. A vehicle route is defined as a sequence of roads V with a start time e ∈ R that refers to the time when the vehicle enters the environment. Road sequence V = ⟨R1 ,R2 , · · · ,Rn ⟩, with a traffic movement T from Ri to Ri+1 for every i ∈ [1, n - 1]. We assume that all vehicle routes start from/end in virtual intersections. V is the set of all valid vehicle routes. V0 in Figure 1 is one example.

Figure 1: Visualization of two adjacent 4-arm intersections and their corresponding definitions, and 8 phases. Phase #6 is activated in I1. We omit the turn-right traffic movements in all phases as they are always permitted in countries following right-handed driving.

![Image](https://ijcai.org/proceedings/2022/fulltext/535/image_000000_0e4ca0669e16ae408bf495489e2def51d1197461aeb2aa1ebbdd74fd503b8ee4.png)

Definition 5. A traffic signal phase Pi is defined as a set of permissible traffic movements at Ii. The bottom of Figure 1 shows eight phases. Ai denotes the complete set of phases at Ii, i.e., the action space for the agent of Ii.

Problem 1. In multi-intersection traffic signal control (MTSC), the environment consists of intersections I, roads R, and vehicle routes V. Each real intersection I R i ∈ I R is controlled by an agent Ai. Agents perform actions between time interval ∆t based on their policies πi. At time step t, Ai views part of the environment zi as its observation, and tries to take an optimal action ai ∈ Ai (i.e., a phase to set next) that can maximize the cumulative joint reward r.

As we define the M-TSC problem as a Dec-POMDP problem, we have the following RL environment settings.

True state s and partial observation z. At time step t ∈ N, agent Ai has the partial observation zt i ⊆ st , which contains the average number of vehicles nx,i,y following traffic movement Tx,i,y ∈ Ti and the current phase P t i .

Action a. After receiving the partial observation zt i , agent Ai chooses an action ati from its candidate action set Ai corresponding to a phase in next ∆t time. If the activated phase P t+1 i is different from current phase P t i , a short all-red phase will be added to avoid collision.

Joint reward r. In M-TSC, we want to minimize the average travel time, which is hard to optimize directly, so some alternative metrics are chosen as immediate rewards. In this paper, we set the joint reward rt = ∑Ii∈IR rt i , where rt i = -nt+1 x,i,y , s.t. x, y ∈ I N i ∧ Tx,i,y ∈ Ti indicates the reward received by Ii, with nx,i,y the average vehicle number on the approaching lanes of traffic movement Tx,i,y.

## 4 Methods

In this section, we first propose UniComm, a new communication method, to improve the communication efficiency among agents; we then construct UniLight, a new controlling algorithm, to control signals with the help of UniComm. We use Multi-Agent Deep Q Learning with double Q learning and dueling network as the basic reinforcement learning structure. Figure 2 illustrates the newly proposed model, and the pseudo codes of UniComm and UniLight are presented in our technique report [Jiang et al., 2022].

## 4.1 UniComm

The ultimate goal to enable communication between agents is to mitigate the nonstationarity caused by decentralized multiagent learning. Sharing of more observations could help improve the stationarity, but it meanwhile suffers from the curse of dimensionality.

In existing methods, neighboring agents exchange hidden states or observations via communication. However, as mentioned above, there is no theoretical analysis on how much information is sufficient and which information is important. While with deep learning and back propagation method, we expect the network to be able to recognize information importance via well-designed structures such as attention. Unfortunately, as the training process of reinforcement learning is not as stable as that of supervised learning, the less useful or useless information might affect the convergence speed significantly. Consequently, how to enable agents to communicate effectively with their neighboring agents becomes critical. Consider intersection I0 in Figure 1. Traffic movements such as T4,0,2 and T3,0,4 will not pass R0,1, and hence their influence to I1 is much smaller than T2,0,1. Accordingly, we expect the information related to T4,0,2 and T3,0,4 to be less relevant (or even irrelevant) to I1, as compared with information related to T2,0,4. In other words, when I0 communicates with I1 and other neighboring intersections, ideally I0 is able to pass different information to different neighbors.

We propose to share only important information with neighboring agents. To be more specific, we focus on agent A1 on intersection I1 which learns maximizing the cumulative reward of r1 via reinforcement learning and evaluate the importance of certain information based on its impact on r1.

We make two assumptions in this work. First, spillback that refers to the situation where a lane is fully occupied by vehicles and hence other vehicles cannot drive in never happens. This simplifies our study as spillback rarely happens and will disappear shortly even when it happens. Second, within action time interval ∆t, no vehicle can pass though an entire road. This could be easily fulfilled, because ∆t in M-TSC is usually very short (e.g. 10s in our settings).

Under these assumptions, we decompose reward rt1 as follows. Recall that the reward rt1 is defined as the average of nx,1,y with Tx,1,y ∈ T1 being a traffic movement. As the number of traffic movements |T1| w.r.t. intersection I1 is a constant, for convenience, we analyze the sum of nx,1,y, i.e. |T1|r1, and rt1 can be derived by dividing the sum by |T1|.

<!-- formula-not-decoded -->

Figure 2: UniComm and UniLight structure

![Image](https://ijcai.org/proceedings/2022/fulltext/535/image_000001_57b0ac75f1dda62ee4ab450fd454a50d3c762af03e24c890b1e018a9584c5d5d.png)

In Eq. (1), we decompose nt+1 x,1,y into three parts, i.e. current vehicle number ntx,1,y , approaching vehicle number ltx,1,y , and leaving vehicle number mtx,1,y . Here, ntx,1,y ∈ zt1 can be observed directly. All leaving vehicles in mtx,1,y are on Tx,1,y now and can drive into next road without the consideration of spillback (based on first assumption). P t 1 is derived by π1, which uses partial observation zt1 as input. Accordingly, mtx,1,y is only subject to ntx,1,y and P t 1 that both are captured by the partial observation zt1 . Therefore, approaching vehicle number ltx,1,y is the only variable affected by observations o /∈ zt1 . We define f(zt1 ) = ∑ (ntx,1,y -mtx,1,y ) and g(st ) = ∑ ltx,1,y , as shown in Eq. (2).

To help and guide an agent to perform an action, agent A1 will receive communications from other agents. Let ct1 denote the communication information received by A1 in time step t. In the following, we analyze the impact of ct1 on A1.

For observation of next phase zt+1 1 = {nt+1 x,1,y , P t+1 1 }, we have i) nt+1 x,1,y = ntx,1,y + ltx,1,y - mtx,1,y ; and ii) P t+1 1 = π1(zt1 , ct1 ). As ntx,1,y and mtx,1,y are part of zt1 , there is a function Z1 such that zt+1 1 = Z1(zt1 , ct1 , ltx,1,y ). Consequently, to calculate zt+1 1 , the knowledge of ltx,1,y , that is not in zt1 , becomes necessary. Without loss of generality, we assume ltx,1,y ⊆ ct1 , so zt+1 1 = Z1 (zt1 , ct1 ). In addition, zt+j 1 can be represented as Zj(zt1 , ct1 , ct+1 1 , · · · , ct+j-1 1 ). Specifically, we define Z0(· · · ) = zt1 , regardless of the input.

We define the cumulative reward of A1 as R1, which can be calculated as follows:

<!-- formula-not-decoded -->

From above equation, we set ct1 as the future values of l:

<!-- formula-not-decoded -->

All other variables to calculate Rt1 can be derived from ct1 :

<!-- formula-not-decoded -->

Hence, it is possible to derive the cumulative rewards Rt1 based on future approaching vehicle numbers of traffic movements ltx,1,y s from ct1 , even if other observations remain unknown. As the conclusion is universal to all existing methods on the same problem definition regardless of the network structure, we name it as UniComm. Now we convert the problem of finding the cumulative reward Rt1 to how to calculate approaching vehicle numbers ltx,1,y with current full observation st . As we are not aware of exact future values, we use existing observations in st to predict lt+1 x,1,y .

We first calculate approaching vehicle numbers on next interval ∆t. Take intersections I0, I1 and road R0,1 for example, for traffic movement T0,1,x which passes intersections I0, I1, and Ix, approaching vehicle number l0,1,x depends on the traffic phase P t+1 0 to be chosen by A0. Let's revisit the second assumption. All approaching vehicles should be on T0,1 = {Ty,0,1|Ty,0,1 ∈ T0, y ∈ I N 0 }, which belongs to zt0 . As a result, T0,1 and the phase P t+1 0 affect l0,1,x the most, even though there might be other factors.

We convert observations in T0 into hidden layers h0 for traffic movements by a fully-connected layer and ReLU activation function. As P t+1 0 can be decomposed into the permission for every T ∈ T0, we use self-attention mechanism [Vaswani et al., 2017] between h0 with Sigmoid activation function to predict the permissions g0 of traffic movements in next phase, which directly multiplies to h0. This is because for traffic movement Tx,0,y ∈ T0, if Tx,0,y is permitted, hx,0,y will affect corresponding approaching vehicle numbers l0,y,z; otherwise, it will become an all-zero vector and has no impact on l0,y,z. Note that Rx,0 and R0,y might have different numbers of lanes, so we scale up the weight by the lane numbers to eliminate the effect of lane numbers. Finally, we add all corresponding weighted hidden states together and use a fully-connected layer to predict l0,y,z.

To learn the phase prediction P t+1 0 , a natural method is using the action a0 finally taken by the current network. However, as the network is always changing, even the result phase action a0 corresponding to a given s is not fixed, which makes phase prediction hard to converge. To have a more stable action for prediction, we use the action ar0 stored in the replay buffer of DQN as the target, which makes the phase prediction more stable and accurate. When the stored action ar0 is selected as the target, we decompose corresponding phase P r 0 into the permissions gr0 of traffic movements, and calculate the loss between recorded real permissions gr0 and predicted permissions gp0 as Lp = BinaryCrossEntropy(gr0 , gp0 ).

For learning approaching vehicle numbers l0,y,z prediction, we get vehicle numbers of every traffic movement from replay buffer of DQN, and learn l0,y,z through recorded results lr0,y,z . As actions saved in replay buffer may be different from the current actions, when calculating volume prediction loss, different from generating UniComm, we use gr0 instead of g0, i.e. Lv =MeanSquaredError(gr0 · h0, lr0,y,z ).

Based on how ct1 is derived, we also need to predict approaching vehicle number for next several intervals, which is rather challenging. Firstly, with off-policy learning, we can't really apply the selected action to the environment. Instead, we only learn from samples. Considering the phase prediction, while we can supervise the first phase taken by A0, we, without interacting with the environment, don't know the real next state s′ ∼ P(s, a), as the recorded ar0 may be different from a0. The same problem applies to the prediction of l0,y,z too. Secondly, after multiple ∆t time intervals, the second assumption might become invalid, and it is hard to predict l0,y,z correctly with only z0. As the result, we argue that as it is less useful to pass unsupervised and incorrect predictions, we only communicate with one time step prediction.

## 4.2 UniLight

Although UniComm is universal, its strength might not be fully achieved by existing methods, because they do not consider the importance of exchanged information. To make better use of predicted approaching vehicle numbers and other observations, we propose UniLight to predict the Q-values.

Take prediction of intersection I1 for example. As we predict lx,1,y based on traffic movements, UniLight splits average number of vehicles nx,1,y, traffic movement permissions g1 and predictions lx,1,y into traffic movements Tx,1,y, and uses a fully-connected layer with ReLU to generate the hidden state h1. Next, considering one traffic phase P that permits traffic movements TP among traffic movements T1 in I1, we split the hidden states h1 into two groups G1 = {hp|Tp ∈ TP} and G2 = {hx|hx ∈ h1, Tx /∈ TP}, based on whether the corresponding movement is permitted by P or not. As traffic movements in the same group will share the same permission in phase P, we consider that they can be treated equally and hence use the average of their hidden states to represent the group. Obviously, traffic movements in G1 are more important than those in G2, so we multiply the hidden state of G1 with a greater weight to capture the importance. Finally, we concatenate two hidden states of groups and a number representing whether current phase is P through a fully-connected layer to predict the final Q-value.

## 5 Experiments

We conduct our experiments on the microscopic traffic simulator CityFlow [Zhang et al., 2019], set the action time interval ∆t to 10s and the all-red phase to 5s. We train our newly proposed methods and their competitors, including newly proposed ones and the existing ones selected for comparison, with 240, 000 frames on a cloud platform with 2 virtual Intel 8269CY CPU core and 4GB memory. We run all the experiments 4 times independently to pick the best one, which is then tested 10 times to get the average performance.

## 5.1 Experimental Setup

Datasets. We use the real-world datasets from four different cities, including Hangzhou (HZ), Jinan (JN), and Shanghai (SH) from China, and New York (NY) from USA. The HZ, JN, and NY datasets are publicly available [Wei et al., 2019b], and widely used in many related studies. Though these datasets are constructed based on real traffics, they have short simulation time, same road length, a small number of lanes, and vehicle trajectories are simulated. To simulate an environment that is much closer to reality, we construct SH dataset based on real taxi trajectories in Shanghai. The detail of SH dataset (including SH1 and SH2) can be found in our technique report [Jiang et al., 2022].

Competitors. To evaluate the effectiveness of newly proposed UniComm and UniLight, we implement five conventional TSC methods and six representative reinforcement learning M-TSC methods as competitors, which are listed below. (1) SOTL [Cools et al., 2013], a S-TSC method based on current vehicle numbers on every traffic movement; (2) MaxPressure [Varaiya, 2013], a M-TSC method that balances the vehicle numbers between two neighboring intersections; (3) MaxBand [Little et al., 1981] that maximizes the green wave time for both directions of a road; (4) TFP-TCC [Jiang et al., 2021] that predicts the traffic flow and uses traffic congestion control methods based on future traffic condition; (5) MARLIN [El-Tantawy et al., 2013] that uses Qlearning to learn joint actions for agents; (6) MA-A2C [Mnih et al., 2016], a general RL method with actor-critic structure and multiple agents; (7) MA-PPO [Schulman et al., 2017], a popular policy based method; (8) PressLight [Wei et al., 2019a], a RL based method motivated by MaxPressure; (9) CoLight [Wei et al., 2019b] that uses GAT for communication; (10) MPLight [Chen et al., 2020], a state-of-the-art MTSC method that combines FRAP [Zheng et al., 2019a] and PressLight; and (11) AttendLight [Oroojlooy et al., 2020] that uses attention and LSTM to select best actions.

Performance Metrics. Following existing studies [Oroojlooy et al., 2020; Chen et al., 2020], we adopt the average travel time of all the vehicles as the performance metric to evaluate the performance of different control methods. We also evaluate other commonly-used metrics such as average delay and throughput, as well as their standard deviation in our technique report [Jiang et al., 2022].

## 5.2 Evaluation Results

Overall Performance. Table 1 reports the overall evaluating results. We focus on the results without UniComm, i.e., all competitors communicate in their original way, and UniLight runs without any communication. The numbers in bold indicate the best performance. We observe that RL based methods achieve better results than traditional methods in public datasets. However, in a complicated environment like SH1, agents may fail to learn a valid policy, and accordingly RL based methods might perform much worse than the traditional methods. UniLight performs the best in almost all datasets, and it demonstrates significant advantages in complicated environments. It improves the average performance by 8.2% in three public datasets and 35.6% in more complicated environments like SH1/SH2. JN dataset is the only exception, where CoLight and PressLight perform slightly better than UniLight. This is because many roads in JN dataset share the same number of approaching vehicles, which makes the controlling easier, and all methods perform similarly.

Table 1: The overall performance (average travel time) of UniLight and its competitors with and without UniComm.

| Datasets   | Datasets                       |     JN |     HZ | NY             | SH1                             |     SH2 |
|------------|--------------------------------|--------|--------|----------------|---------------------------------|---------|
|            | SOTL                           | 420.70 | 451.62 | 1137.29 243.59 | 2362.73 4843.07 5675.98 2403.66 | 2084.93 |
|            | MaxPressure                    | 434.75 | 408.47 |                |                                 |  788.55 |
|            | Traditional Algorithms MaxBand | 378.45 | 458.00 | 1038.67        |                                 | 4501.39 |
|            | TFP-TCC                        | 362.70 | 400.24 | 1216.77        |                                 | 1380.05 |
|            | MARLIN                         | 409.27 | 388.00 | 1274.23        | 6623.83                         | 5373.53 |
|            | MA-A2C                         | 355.29 | 353.28 | 906.71         | 4787.83                         |  431.53 |
|            | MA-PPO                         | 460.18 | 352.64 | 923.82         | 3650.83                         | 2026.71 |
|            | PressLight                     | 335.93 | 338.41 | 1363.31        | 5114.78                         |  322.48 |
|            | DRL Algorithms CoLight         | 329.67 | 340.36 | 244.57         | 7861.59                         | 4438.90 |
|            | MPLight                        | 383.95 | 334.04 | 646.94         | 7091.79                         |  433.92 |
|            | AttendLight                    | 361.94 | 339.45 | 1376.81        | 4700.22                         | 2763.66 |
|            | UniLight                       | 335.85 | 324.24 | 186.85         | 2326.29                         |  209.89 |
|            | MA-A2C                         | 332.80 | 349.93 | 834.65         | 4018.67                         |  303.69 |
|            | MA-PPO                         | 331.96 | 349.82 | 847.49         | 3806.77                         |  290.99 |
|            | PressLight                     | 317.72 | 330.28 | 1152.76        | 6200.91                         |  549.56 |
|            | With UniComm CoLight           | 318.93 | 336.66 | 291.40         | 7612.02                         | 1422.99 |
|            | MPLight                        | 336.29 | 329.57 | 193.21         | 5095.34                         |  542.82 |
|            | AttendLight                    | 363.41 | 330.38 | 608.12         | 4825.83                         | 2915.35 |
|            | UniLight                       | 325.47 | 323.01 | 180.72         | 159.88                          |  208.06 |

Figure 3: Phase prediction loss of different phase prediction target in JN and HZ.

![Image](https://ijcai.org/proceedings/2022/fulltext/535/image_000002_fc96ca447e55df542ffb2875237944f61e2e1ed9d962cd8ea1dabd545eeacfee.png)

The Impact of UniComm. As UniComm is universal for existing methods, we apply UniComm to the six representative RL based methods and re-evaluate their performance, with results listed in the bottom portion of Table 1. We observe that UniLight again achieves the best performance consistently. In addition, almost all RL based methods (including UniLight) are able to achieve a better performance with UniComm. This is because UniComm predicts the approaching vehicle number on Ri,j mainly by the hidden states of traffic movements covering Ri,j. Consequently, Ai is able to produce predictions for neighboring Aj based on more important/relevant information. As a result, neighbors will receive customized results, which allow them to utilize the information in a more effective manner. In addition, agents only share predictions with their neighbors so the communication information and the observation dimension remain small. This allows existing RL based methods to outperform their original versions whose communications are mainly based on hidden states. Some original methods perform worse with UniComm in certain experiments, e.g. PressLight in SH1. This is because these methods have unstable performance on some datasets with very large variance, which make the results unstable. Despite of a small number of outliers, UniComm makes consistent boost on all existing methods.

Phase Prediction Target Evaluation. As mentioned previously, instead of directly using current phase action to calculate phase prediction loss Lp, we use actions stored in replay buffer. To evaluate its effectiveness, we plot the curve of Lp in Figure 3. Due to space limitation, we only show the curve of datasets JN and HZ. Current and Replay refer to the use of the action taken by the current network and that stored in the replay buffer respectively when calculating Lp. The curve represents the volume prediction loss, i.e. the prediction accuracy during the training process. We can observe that when using stored actions as the target, the loss becomes smaller, i.e., it has learned better phase predictions. The convergence speed of phase prediction loss with stored actions is slower at the beginning of the training. This is because to perform more exploration, most actions are random at the beginning, which is hard to predict.

Table 2: Compare UniComm with hidden state in average travel time.

| Datasets   | Datasets     |     JN |     HZ |     NY |     SH1 |    SH2 |
|------------|--------------|--------|--------|--------|---------|--------|
| UniLight   | No Com.      | 335.85 | 324.24 | 186.85 | 2326.29 | 209.89 |
|            | Hidden State | 330.99 | 323.88 | 180.99 | 1874.11 | 224.55 |
|            | UniComm      | 325.47 | 323.01 | 180.72 |  159.88 | 208.06 |

UniComm vs. Hidden States. To further evaluate the effectiveness of UniComm from a different angle, we introduce another version of UniLight that uses a 32-dimension hidden state for communication, the same as [Wei et al., 2019b]. In total, there are three different versions of UniLight evaluated, i.e., No Com., Hidden State, and UniComm. As the names suggest, No Com. refers to the version without sharing any information as there is no communication between agents; Hidden State refers to the version sharing 32-dimension hidden state; and UniComm refers to the version that implements UniComm. The average travel time of all the vehicles under these three variants of UniLight is listed in Table 2. Note, Hidden State shares the most amount of information and is able to improve the performance, as compared with version of No Com.. Unfortunately, the amount of information shared is not proportional to the performance improvement it can achieve. For example, UniLight with UniComm performs better than the version with Hidden State, although it shares less amount of information. This further verifies our argument that the content and the importance of the shared information is much more important than the amount.

## 6 Conclusion

In this paper, we propose a novel communication form UniComm for decentralized multi-agent learning based M-TSC problem. It enables each agent to share the prediction of approaching vehicles with its neighbors via communication. We also design UniLight to predict Q-value based on UniComm. Experimental results demonstrate that UniComm is universal for existing M-TSC methods, and UniLight outperforms existing methods in both simple and complex environments.

## Acknowledgements

This research is supported in part by the National Natural Science Foundation of China under grant 62172107.

## References

1. [Arel et al., 2010] Itamar Arel, Cong Liu, Tom Urbanik, and Airton G Kohls. Reinforcement learning-based multi- agent system for network traffic signal control. IET In- telligent Transport Systems, 4(2):128-135, 2010.
2. [Ault et al., 2020] James Ault, Josiah P. Hanna, and Guni Sharon. Learning an interpretable traffic signal control policy. In AAMAS 2020, pages 88-96, 2020.
3. [Bishop, 2006] Christopher M Bishop. Pattern recognition and machine learning. springer, 2006.
4. [Chen et al., 2020] Chacha Chen, Hua Wei, Nan Xu, Guanjie Zheng, Ming Yang, Yuanhao Xiong, Kai Xu, and Zhenhui Li. Toward a thousand lights: Decentralized deep rein- forcement learning for large-scale traffic signal control. In AAAI 2020, pages 3414-3421, 2020.
5. [Cools et al., 2013] Seung-Bae Cools, Carlos Gershenson, and Bart D'Hooghe. Self-Organizing Traffic Lights: A Re- alistic Simulation, pages 45-55. Springer London, Lon- don, 2013.
6. [El-Tantawy et al., 2013] Samah El-Tantawy, Baher Abdul- hai, and Hossam Abdelgawad. Multiagent reinforcement learning for integrated network of adaptive traffic signal controllers (marlin-atsc): methodology and large-scale ap- plication on downtown toronto. IEEE Transactions on In- telligent Transportation Systems, 14(3):1140-1150, 2013.
7. [Haarnoja et al., 2018] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In ICML 2018, pages 1856-1865, 2018.
8. [Jiang et al., 2021] Chun-Yao Jiang, Xiao-Min Hu, and Wei- Neng Chen. An urban traffic signal control system based on traffic flow prediction. In ICACI 2021, pages 259-265. IEEE, 2021.
9. [Jiang et al., 2022] Qize Jiang, Minhao Qin, Shengmin Shi, Weiwei Sun, and Baihua Zheng. Multi-agent rein- forcement learning for traffic signal control through uni- versal communication method (long version). CoRR, abs/2204.12190, 2022.
10. [Little et al., 1981] John DC Little, Mark D Kelson, and Nathan H Gartner. Maxband: A versatile program for set- ting signals on arteries and triangular networks. Trans- portation Research Record Journal, 1981.
11. [Mnih et al., 2016] Volodymyr Mnih, Adrià Puigdomènech Badia, Mehdi Mirza, Alex Graves, Timothy P. Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asyn- chronous methods for deep reinforcement learning. In ICML 2016, pages 1928-1937, 2016.
12. [Nishi et al., 2018] Tomoki Nishi, Keisuke Otaki, Keiichiro Hayakawa, and Takayoshi Yoshimura. Traffic signal con- trol based on reinforcement learning with graph convolu- tional neural nets. In ITSC 2018, pages 877-883, 2018.
13. [Nowé et al., 2012] Ann Nowé, Peter Vrancx, and Yann- Michaël De Hauwere. Game theory and multi-agent re- inforcement learning. Springer, 2012.
14. [Oliehoek et al., 2016] Frans A Oliehoek, Christopher Am- ato, et al. A concise introduction to decentralized POMDPs, volume 1. Springer, 2016.
15. [Oroojlooy et al., 2020] Afshin Oroojlooy, MohammadReza Nazari, Davood Hajinezhad, and Jorge Silva. Attendlight: Universal attention-based reinforcement learning model for traffic signal control. In NeurIPS 2020, 2020.
16. [Schulman et al., 2017] John Schulman, Filip Wolski, Pra- fulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017.
17. [van Hasselt et al., 2016] Hado van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with dou- ble q-learning. In Dale Schuurmans and Michael P. Well- man, editors, AAAI 2016, pages 2094-2100, 2016.
18. [Varaiya, 2013] Pravin Varaiya. Max pressure control of a network of signalized intersections. Transportation Re- search Part C: Emerging Technologies, 36:177-195, 2013.
19. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS 2017, pages 5998-6008, 2017.
20. [Wei et al., 2019a] Hua Wei, Chacha Chen, Guanjie Zheng, Kan Wu, Vikash Gayah, Kai Xu, and Zhenhui Li. Presslight: Learning max pressure control to coordinate traffic signals in arterial network. In SIGKDD 2019, pages 1290-1298, 2019.
21. [Wei et al., 2019b] Hua Wei, Nan Xu, Huichu Zhang, Guan- jie Zheng, Xinshi Zang, Chacha Chen, Weinan Zhang, Yanmin Zhu, Kai Xu, and Zhenhui Li. Colight: Learn- ing network-level cooperation for traffic signal control. In CIKM 2019, pages 1913-1922, 2019.
22. [Yu et al., 2020] Zhengxu Yu, Shuxian Liang, Long Wei, Zhongming Jin, Jianqiang Huang, Deng Cai, Xiaofei He, and Xian-Sheng Hua. Macar: Urban traffic light control via active multi-agent communication and action rectifica- tion. In IJCAI 2020, pages 2491-2497, 7 2020.
23. [Zang et al., 2020] Xinshi Zang, Huaxiu Yao, Guanjie Zheng, Nan Xu, Kai Xu, and Zhenhui Li. Metalight: Value-based meta-reinforcement learning for traffic signal control. In AAAI 2020, pages 1153-1160, 2020.
24. [Zhang et al., 2019] Huichu Zhang, Siyuan Feng, Chang Liu, Yaoyao Ding, Yichen Zhu, Zihan Zhou, Weinan Zhang, Yong Yu, Haiming Jin, and Zhenhui Li. Cityflow: A multi-agent reinforcement learning environment for large scale city traffic scenario. In WWW 2019, pages 3620-3624, 2019.
25. [Zheng et al., 2019a] Guanjie Zheng, Yuanhao Xiong, Xin- shi Zang, Jie Feng, Hua Wei, Huichu Zhang, Yong Li, Kai Xu, and Zhenhui Li. Learning phase competition for traffic signal control. In CIKM 2019, pages 1963-1972, 2019.
26. [Zheng et al., 2019b] Guanjie Zheng, Xinshi Zang, Nan Xu, Hua Wei, Zhengyao Yu, Vikash V. Gayah, Kai Xu, and Zhenhui Li. Diagnosing reinforcement learning for traffic signal control. CoRR, abs/1905.04716, 2019.
