Abstract
CityLight is a universal reinforcement learning framework designed to coordinate traffic signal control (TSC) across thousands of heterogeneous intersections at a city-wide scale. By explicitly modeling neighborhood influences through a novel attention-based architecture, it achieves an 11.68% average improvement in traffic throughput and demonstrates a 22.59% boost in generalization when transferred to entirely new cities.
The Challenge of City-Scale Coordination
Managing traffic in a modern metropolis involves thousands of intersections, each with unique "topologies"—some are 4-way crosses, others are 3-way T-junctions, and they all have varying numbers of lanes and distances between them.
Traditional Multi-Agent Reinforcement Learning (MARL) approaches often try to learn a unique policy for every single intersection, which is computationally prohibitive at a city scale. To solve this, researchers have moved toward "universal" models—a single shared policy network for all intersections. However, existing universal models typically only look at the "ego" intersection (the one being controlled), ignoring how neighboring intersections influence each other. Without accounting for these neighbor interactions, true city-scale coordination—like creating "green waves" or preventing downstream gridlock—remains out of reach.
Methodology: The CityLight Framework
CityLight is built on the Multi-Agent Proximal Policy Optimization (MAPPO) algorithm. Its core innovation lies in how it represents and aggregates information from diverse neighbors through four key components:
- Phase-based Unified Observation: To handle different intersection shapes, CityLight re-indexes traffic phases into a standard order (e.g., straight-through phases first, then left turns). For 3-arm intersections, missing phases are padded with a placeholder value (-1), allowing a single neural network to process any intersection type.
- Neighbor Influence Encoder: This module uses cross-attention to "translate" a neighbor's traffic state into its specific impact on the ego intersection. It factors in two critical pieces of metadata: Traffic Flow Relation (do the neighbor's flows directly feed into the ego intersection?) and Connectivity (distance and number of connecting lanes).
- Neighbor Influence Aggregator: Recognizing the rotational symmetry of intersections, this module groups neighbors into "competing groups" (e.g., North-South vs. East-West). It uses an attention mechanism to fuse these influences, allowing the model to prioritize the most congested or impactful neighbors.
- Neighborhood-inclusive Reward: Instead of a "selfish" reward based only on local queue lengths, CityLight uses a weighted sum of local and neighbor metrics. This encourages agents to cooperate, potentially sacrificing a bit of local efficiency to prevent a massive jam nearby.
Datasets and Evaluation
The study utilizes five city-scale datasets, including several newly released high-authenticity benchmarks: Manhattan (196 intersections), Chaoyang (97), Central Beijing (885), Jinan (3,930), and a massive Beijing (Full) dataset featuring 13,952 intersections. The road networks were extracted from OpenStreetMap, and traffic flows were derived from real-world location-based service (LBS) data and traffic camera videos.
Key Results
- Performance: CityLight consistently outperformed 11 state-of-the-art baselines, achieving an average 11.68% increase in throughput and an 8.41% reduction in average travel time.
- Generalization: In "zero-shot" transfer tests—where a model trained on one city is tested on another—CityLight showed a 22.59% improvement over the next best baseline.
- Efficiency: Despite the scale, CityLight trains in about 9 hours on a single GPU, whereas individual policy methods would require days of training and massive memory overhead.
Insights and Future Work
The success of CityLight suggests that for a universal policy to work, it shouldn't just look at what a neighbor is doing, but how that neighbor relates to the ego intersection. By encoding physical connectivity and flow relations, the model learns a "language" of coordination that applies regardless of the specific city layout.
While highly effective, the model currently assumes intersections can observe the states of their one-hop neighbors. Future work will explore handling extremely irregular junctions (e.g., 5-way intersections) and hierarchical structures to manage "corridor-level" coordination for long-distance traffic flow.
Summary updated