Enhancing traffic signal control through model-based reinforcement learning and policy reuse

Yihong Li, Chengwei Zhang, Furui Zhan, Wanting Liu, Kailing Zhou, Longji Zheng

Abstract

Multi-Agent Reinforcement Learning (MARL) has emerged as a powerful tool for optimizing traffic signal control. However, existing models often lack robustness when deployed in new environments or varying traffic conditions. This paper introduces PRLight, a transfer learning framework that leverages model-based RL and policy reuse to achieve cross-domain transferability. By maintaining a pool of pre-trained agents and using a "world model" to gauge environmental similarity, PRLight significantly accelerates training and improves traffic flow efficiency across diverse urban networks.

Introduction

The primary challenge in applying MARL to traffic signal control is the "brittleness" problem. Models trained on specific road networks and fixed traffic patterns (e.g., morning rush hours) often fail when faced with new city layouts or dynamic temporal shifts. Retraining from scratch is computationally expensive and impractical for real-time deployment. To address this, the authors propose a framework that enables agents to reuse knowledge from previously mastered scenarios, facilitating rapid adaptation to target domains.

Methodology

The proposed solution consists of two integrated components: PLight, a model-based RL algorithm for pre-training, and PRLight, a policy-reuse framework for transfer learning.

PLight: Predictive Light

PLight moves beyond standard model-free RL by learning a "world model" that predicts traffic transitions. It comprises three main modules:

  • Encoder: Extracts key features from raw traffic data, such as vehicle counts and current signal phases.
  • Decoder: Predicts the subsequent traffic state based on the current state and the chosen action.
  • Q-Network: The primary decision-maker that selects the optimal traffic signal phase.
Traffic signal phases representing the action space for the RL agents.

PRLight: Policy-Reuse Light

PRLight facilitates transfer learning by managing an Agent Pool of pre-trained PLight models. When introduced to a new target environment, the framework performs two key operations:

  1. Environmental Similarity Assessment: The framework utilizes Decoders from the agent pool to predict the next state of the target environment. A low prediction error (Euclidean distance) indicates that a source agent has encountered similar traffic dynamics, making its policy a viable candidate for reuse.
  2. Guided Exploration: Instead of starting with random exploration, the target agent samples "guide agents" from the pool based on similarity weights. These guides suggest actions during the initial learning phase, providing high-quality experience samples immediately.
Notation and definitions for the PRLight framework components.

Experimental Setup

The framework was evaluated using the CityFlow simulator on three real-world road networks:

  • Jinan & Hangzhou: Synthetic datasets representing various Time-of-Day (TOD) scenarios in 3x4 and 4x4 grids.
  • New York City: A large-scale complex grid with 196 intersections (27x8).

To quantify differences between datasets, the authors introduced metrics such as Traffic Flow Density and Traffic Flow Distribution Entropy to mathematically define task variance.

Results and Discussion

PRLight demonstrated significant improvements over state-of-the-art baselines like CoLight and MPLight:

  • Rapid Convergence: In Jinan and Hangzhou, PRLight reached peak performance within just 5 episodes, compared to 20-30 episodes for standard models.
  • Cross-Domain Generalization: Policies pre-trained on small synthetic networks were successfully used to jumpstart learning in the massive New York City network, demonstrating true scalability.
  • Performance Gains: PRLight consistently outperformed baselines in reducing Average Travel Time and Queue Length.
  • Behavioral Transfer: By focusing on behavior transfer rather than parameter transfer, the model avoids the rigidity of simply copying weights, allowing for more flexible adaptation to new "physics" in traffic flow.

Conclusion

PRLight offers a robust solution for dynamic traffic management by enabling efficient policy reuse. While the current model excels in standard vehicle traffic, future research will address more complex scenarios involving heterogeneous transport modes (e.g., buses, emergency vehicles) and aim to reduce the computational overhead associated with similarity calculations in large agent pools.

Summary updated

BibTeX
@article{li2025enhancing,
  author = {Yihong Li and Chengwei Zhang and Furui Zhan and Wanting Liu and Kailing Zhou and Longji Zheng},
  title = {{Enhancing traffic signal control through model-based reinforcement learning and policy reuse}},
  journal = {Expert Systems with Applications},
  year = {2025},
}
Figure