Quantifying the impact of non-stationarity in reinforcement learning-based traffic signal control

Lucas Nunes Alegre, Ana L. C. Bazzan, Bruno C. da Silva

TL;DR

This paper investigates how non-stationarity, specifically changes in traffic patterns and limited sensor data, impacts the performance of reinforcement learning (RL) agents controlling traffic signals. They found that while RL agents can adapt to changing traffic, insufficient sensor data (leading to reduced state observability) is a more significant performance bottleneck than the traffic pattern changes themselves.

What Problem Does This Paper Address?

Traffic signal control is a complex problem, especially in urban environments where traffic flow is constantly changing. Reinforcement learning (RL) offers a promising approach by allowing traffic signals to learn optimal control policies autonomously. However, a major hurdle for RL in such dynamic environments is "non-stationarity" – the fact that the rules governing the environment (like traffic flow) can change over time. These changes can be due to various factors, including fluctuating vehicle demand, accidents, or even the actions of other learning traffic signals. When the environment changes, an RL agent's learned policy might become suboptimal, leading to increased traffic congestion and delays. This paper aims to quantify the specific impact of different sources of non-stationarity on RL-based traffic signal control, focusing on how changes in traffic patterns and the quality of information available to the agents affect their learning and performance.

Methods

The researchers used a simulation-based approach to study non-stationarity in traffic signal control. They employed a 4x4 grid traffic network simulated using SUMO (Simulation of Urban Mobility), with 16 independent Q-learning agents controlling each intersection.

Key methodological aspects include:

  • Multiagent Independent Q-learning (MIQL): Each traffic signal acts as an independent agent learning its own Q-table based on local observations. This approach avoids the computational complexity of centralized methods but introduces its own form of non-stationarity as agents learn and influence each other.
  • Context Modeling: Different traffic patterns were modeled as "contexts," defined by varying vehicle insertion rates across Origin-Destination (OD) pairs in the network. The simulation switched between two contexts (Context 1: balanced flow, Context 2: unbalanced flow) every 20,000 time steps.
  • State Formulation: Two state representations were used:
  • Full Observability (Eq. 4): Includes phase information, elapsed time, density (vehicles approaching), and queue length (vehicles stopped). This is considered more realistic but potentially expensive to implement due to sensor requirements.
  • Reduced Observability (Eq. 5): Excludes density information, relying only on phase and queue length. This simulates scenarios with less sophisticated sensors.
  • Discretization: Continuous state variables (density and queue) were discretized into bins. The impact of different discretization levels (e.g., 10 bins vs. 4 bins for queue) was also studied to simulate sensor imprecision.
  • Disabling Learning/Exploration: To isolate the impact of context changes on a fixed policy, experiments were conducted where learning rate ($\alpha$) and exploration rate ($\epsilon$) were set to zero after a context change.

Datasets

The study did not use pre-existing datasets for training or evaluation. Instead, it relied on a simulated traffic environment created using the SUMO (Simulation of Urban Mobility) simulator. The simulation involved a 4x4 grid network with specific traffic flow configurations (contexts) and agent learning parameters.

Key Insights and Ideas

  • Partial Observability is a Major Bottleneck: The most striking finding is that limited sensor data (reduced state observability, e.g., lacking density information) has a more drastic negative impact on RL agent performance than changes in traffic patterns themselves. Agents with less information struggle to adapt, even to previously encountered contexts.
  • Density is Crucial: The "density" attribute (vehicles approaching an intersection) is vital for accurately characterizing the traffic state. Its absence significantly hinders an agent's ability to make optimal decisions.
  • Adaptation is Possible, but Costly: Independent Q-learning agents can re-adapt to changing traffic patterns. However, this adaptation process can be slow and lead to temporary performance drops, especially when observability is limited.
  • Discretization Matters: Imprecise sensor readings, simulated by lower discretization levels for state variables, amplify the negative effects of non-stationarity, leading to significant performance degradation.
  • Sensors Over Sophisticated Algorithms (Potentially): The results suggest that investing in better sensors and more informative state features might yield greater improvements in RL traffic control performance than solely focusing on developing more complex learning algorithms.

Key Results

  • Fixed Policy Failure: A fixed traffic signal policy (based on a highway manual) performed poorly when traffic patterns changed, highlighting the need for adaptive control.
  • Learning Agents Adapt: Q-learning agents, even with reduced observability, generally performed better than fixed policies.
  • Reduced Observability Impact: Agents using the full state definition (queue + density) recovered more quickly from context changes than those using only queue information. In some cases, agents with limited observability had to "relearn" policies even for contexts they had experienced before.
  • Discretization Impact: Reducing the number of discretization bins for the "queue" attribute from 10 to 4 led to a significant performance drop (up to three times increase in waiting time) after context changes.
  • Faster Learning with Less State: Agents with reduced state definitions (fewer states to explore) learned faster initially, but converged to policies with higher waiting times compared to agents with more comprehensive state information.

Limitations and Future Work

  • Limited Scope of Non-stationarity: The study focused on specific causes of non-stationarity (traffic flow changes and partial observability). Other factors, such as traffic accidents or unexpected events, were not explicitly modeled.
  • Simplified Network: The 4x4 grid network is a simplification of real-world urban traffic systems.
  • Future Work: The authors suggest exploring scenarios with other causes of non-stationarity (e.g., accidents, local queues), extending the study to arterial roads and intersections with more traffic phases, and investigating how these findings generalize to more complex settings. They also hint at the potential benefits of designing better sensors and state features for RL agents.

Summary updated

BibTeX
@article{alegre2021quantifying,
  author = {Lucas Nunes Alegre and Ana L. C. Bazzan and Bruno C. da Silva},
  title = {{Quantifying the impact of non-stationarity in reinforcement learning-based traffic signal control}},
  journal = {PeerJ Comput. Sci.},
  year = {2021},
  doi = {10.7717/peerj-cs.575},
}
Figure