OverFlowLight: Real-Time Gridlock Prevention and Traffic Signal Optimization for Urban Intersections

arXiv cs.LG Papers

Summary

OverFlowLight is a real-time framework that prevents traffic gridlock by detecting queue overflow using multi-modal sensing and inserting dedicated overflow phases via a hybrid rule-based and RL controller. Deployed across 43 intersections, it reduces overflow incidents by 60.4% and increases network throughput by 18.2%.

arXiv:2606.27381v1 Announce Type: new Abstract: Queue overflow, a severe consequence of urban traffic congestion, occurs when vehicle queues exceed intersection capacity, obstructing upstream traffic and triggering cascading gridlocks. Prevailing traffic signal control (TSC) algorithms, primarily optimized for throughput, often fail to address overflow during peak hours, exacerbating congestion and creating safety hazards. We propose OverFlowLight, a real-time framework designed to preemptively resolve overflow and enhance overall TSC performance. It first introduces a mechanism to accurately detect overflow in real-time by leveraging multi-modal sensing from cameras and radars. Upon detection, it dynamically generates and inserts dedicated overflow phases into the signal cycle to clear the blocking queues. This is orchestrated by a hybrid control design that combines rapid rule-based overflow intervention with controller back ends such as reinforcement learning (RL) for longer-horizon efficiency. We conducted extensive real-world deployments of OverFlowLight across 43 intersections in three major cities. The framework demonstrates seamless integration with existing RL-based TSC agents, highlighting its modularity and practical applicability. Empirical results show that OverFlowLight reduces overflow incidents by 60.4% and increases network throughput by 18.2% compared to deployed baselines. Furthermore, it substantially diminishes the need for manual intervention common with expert-tuned signal plans. This work presents the first practical, scalable, and data-driven framework for actively preventing traffic gridlock, offering a crucial component for building resilient and efficient urban transportation systems. Our demonstration videos, codes and datasets are available at the anonymous URL, https://anonymous.4open.science/r/OverFlowLight-FBF9.
Original Article
View Cached Full Text

Cached at: 06/29/26, 05:22 AM

# OverFlowLight: Real-Time Gridlock Prevention and Traffic Signal Optimization for Urban Intersections
Source: [https://arxiv.org/html/2606.27381](https://arxiv.org/html/2606.27381)
,Boyang HuangUniversity of Electronic Science and Technology of China,Tianqi JiangSouth China University of Technology,Chenpu LiBeijing Xiaocheng Intelligent Computing,Chunyu LiuBeijing University of Posts and Telecommunications,Yang LiBeijing University of Posts and Telecommunications,Ruimin LiTsinghua UniversityandQiang WuLanzhou University

\(2025\)

###### Abstract\.

Queue overflow, a severe consequence of urban traffic congestion, occurs when vehicle queues exceed intersection capacity, obstructing upstream traffic and triggering cascading gridlocks\. Prevailing traffic signal control \(TSC\) algorithms, primarily optimized for throughput, often fail to address overflow during peak hours, exacerbating congestion and creating safety hazards\. We propose OverFlowLight, a real\-time framework designed to preemptively resolve overflow and enhance overall TSC performance\. It first introduces a mechanism to accurately detect overflow in real\-time by leveraging multi\-modal sensing from cameras and radars\. Upon detection, it dynamically generates and inserts dedicated overflow phases into the signal cycle to clear the blocking queues\. This is orchestrated by a hybrid control design that combines rapid rule\-based overflow intervention with controller back ends such as reinforcement learning \(RL\) for longer\-horizon efficiency\. We conducted extensive real\-world deployments of OverFlowLight across 43 intersections in three major cities\. The framework demonstrates seamless integration with existing RL\-based TSC agents, highlighting its modularity and practical applicability\. Empirical results show that OverFlowLight reduces overflow incidents by 60\.4% and increases network throughput by 18\.2% compared to deployed baselines\. Furthermore, it substantially diminishes the need for manual intervention common with expert\-tuned signal plans\. This work presents the first practical, scalable, and data\-driven framework for actively preventing traffic gridlock, offering a crucial component for building resilient and efficient urban transportation systems\. Our demonstration videos, codes and datasets are available at the anonymous URL111[https://anonymous\.4open\.science/r/OverFlowLight\-FBF9](https://anonymous.4open.science/r/OverFlowLight-FBF9)\.

traffic signal control, reinforcement learning, overflow control, gridlock prevention, real\-world deployment, OverFlowLight

††copyright:acmcopyright††journalyear:2025††doi:XXXXXXX\.XXXXXXX††isbn:978\-1\-4503\-XXXX\-X/18/06††ccs:Computing methodologies Control methods††ccs:Applied computing Transportation![Refer to caption](https://arxiv.org/html/2606.27381v1/x1.png)Figure 1\.During peak hours, surging traffic demand can cause overflow and subsequent gridlock when signals switch\. Traditional manual control is inefficient, whereas our method reduces the need for manual intervention and improves traffic efficiency\.## 1\.Introduction

Motivations\.Conventional Traffic Signal Control \(TSC\) algorithms predominantly emphasize operational efficiency metrics under normal traffic conditions\([wei2018intellilight,](https://arxiv.org/html/2606.27381#bib.bib1)\)\. Typical approaches include pressure maximization strategies, where the Max Pressure framework\([varaiya2013max,](https://arxiv.org/html/2606.27381#bib.bib2)\)minimizes vehicle travel times through intersection pressure optimization, and Deep Reinforcement Learning \(DRL\) techniques\([VanDerPol2016,](https://arxiv.org/html/2606.27381#bib.bib3)\)that employ queue length, delay time, and stopping frequency as optimization objectives\([wei2018intellilight,](https://arxiv.org/html/2606.27381#bib.bib1);[wei2019colight,](https://arxiv.org/html/2606.27381#bib.bib4)\)\. However, these methodologies exhibit critical limitations in addressing the urban traffic phenomenon of intersection overflow and its progression to gridlock\([haight1959overflow,](https://arxiv.org/html/2606.27381#bib.bib5)\)\. As illustrated in Figure[1](https://arxiv.org/html/2606.27381#S0.F1), real\-world deployment reveals that conventional TSC systems frequently fail under asymmetric traffic patterns, particularly during peak hours with directional flow imbalances or when intersections exhibit lane configuration mismatches \(i\.e\., more entry than exit lanes\)\([akccelik1994overflow,](https://arxiv.org/html/2606.27381#bib.bib6)\)\. Existing traffic signal control methods cannot explicitly resolveintersection overflow, a critical failure mode in which insufficient exit\-lane capacity causes vehicle queues to propagate backward into the intersection area\([haight1959overflow,](https://arxiv.org/html/2606.27381#bib.bib5)\)\. Such overflow conditions create cascading failure risks, potentially escalating intogridlockscenarios\([kerner2011physics,](https://arxiv.org/html/2606.27381#bib.bib7)\)where mutually obstructing vehicle clusters create a positive feedback loop, leading to the complete paralysis of intersection functionality\.

Challenges\.Existing TSC methodologies exhibit three critical deficiencies in addressing intersection overflow\. First, existing traffic emulators fail to accurately replicate overflow conditions, and conventional TSC methods prove inadequate in addressing the gridlock issues arising from such overflow scenarios, while pressure\-based optimization approaches, such as the MaxPressure algorithm\([liu2022novel,](https://arxiv.org/html/2606.27381#bib.bib8);[mercader2020max,](https://arxiv.org/html/2606.27381#bib.bib9)\)demonstrate partial effectiveness under moderate traffic conditions, they fundamentally fail during peak hour congestion characterized by directional flow imbalances and enter/exit lane configuration mismatches\. Second, current predictive frameworks suffer from dual technical constraints: \(1\) reliance on imperfect traffic forecasting models with inherent estimation errors\([Viti2004c,](https://arxiv.org/html/2606.27381#bib.bib10);[zhao2024,](https://arxiv.org/html/2606.27381#bib.bib11)\), and \(2\) insufficient temporal resolution \(¿30s latency\) for real\-time overflow prevention\. Third, the absence of automated control mechanisms forces dependency on manual police intervention, this is an unsustainable solution that inefficiently allocates law enforcement resources while introducing human error risks\.

These limitations collectively highlight a significant research\-practice gap\. Despite the severe consequences of traffic gridlock, which range from network\-wide congestion cascades to heightened accident risks, existing TSC systems continue to depend on manually tailored expertise and lack a unified framework to effectively address gridlock issues stemming from overflow\.

Technical Overview\.OverFlowLight addresses this gap with a concise three\-stage pipeline, illustrated in Figure[3](https://arxiv.org/html/2606.27381#S3.F3)\. First, theoverflow detectionmodule fuses radar\- and camera\-derived lane\-level observations to identify emerging overflow directions in real time\. Second, theoverflow phase constructionmodule maps each detected overflow direction to a feasible set of overflow\-clearing phases through the overflow phase map \(OPM\)\. Third, theOPM\-constrained phase selectionmodule applies this safe phase set to either a traditional controller or an RL\-based controller, enabling fast local intervention while preserving compatibility with existing TSC back ends\. This overview gives readers the high\-level logic of the system before the detailed problem formulation and method description\.

Contributions\.In response to the challenges enumerated above, this work presents the first real\-world deployed traffic management system that systematically resolves intersection overflow through three fundamental contributions:

- •We formulate overflow as an actionable lane\-level control problem and design an overflow\-control framework that addresses gridlock during peak hours and at intersections with unbalanced lane conditions\.
- •We introduce a practical overflow detection and phase\-selection interface centered on the overflow phase map \(OPM\), which integrates with both traditional TSC methods and RL\-based controllers to mitigate gridlock caused by overflow\.
- •We conduct the first large\-scale real\-world validation of an overflow\-preemption framework, deploying OverFlowLight across 43 intersections in three cities over 1\.5 years\. Empirical results demonstrate a60\.4% reductionin overflow incidents and an18\.2% increasein network throughput compared to deployed baselines, validating its effectiveness and scalability\.

## 2\.Related Works

### 2\.1\.Traffic Signal Control

In urban traffic control, initial strategies relied on static signal timings\([miller1963settings,](https://arxiv.org/html/2606.27381#bib.bib12)\), adjusting plans for different periods like peak and off\-peak hours, weekdays, weekends, and seasons\. Later, heuristic methods such as Longest\-Queue\-First \(LQF\) were introduced, which switched traffic light phases based on traffic demand at intersections\([Papageorgiou2003,](https://arxiv.org/html/2606.27381#bib.bib13)\)\. However, these traditional approaches struggle with complex traffic scenarios and are less effective when demand varies significantly\.

To overcome the shortcomings of traditional methods, Reinforcement Learning \(RL\) was introduced into the field of Traffic Signal Control \(TSC\)\. Methods like FRAP\([zheng2019learning,](https://arxiv.org/html/2606.27381#bib.bib14)\), IntelliLight\([wei2018intellilight,](https://arxiv.org/html/2606.27381#bib.bib1)\), Presslight\([wei2019presslight,](https://arxiv.org/html/2606.27381#bib.bib15)\), and Colight\([wei2019colight,](https://arxiv.org/html/2606.27381#bib.bib4)\)leverage RL to optimize traffic signal phases, either through phase competition principles or by facilitating communication between intersections\. Toward A Thousand Lights\([chen2020toward,](https://arxiv.org/html/2606.27381#bib.bib16)\)leverages agent based multi intersection parameter sharing for fast convergence\. AttendLight\([NIPS\-attention,](https://arxiv.org/html/2606.27381#bib.bib17)\)introduces a self\-attention mechanism to learn phase correlations without relying on human expertise\. DynamicLight\([zhang2022dynamiclight,](https://arxiv.org/html/2606.27381#bib.bib18)\)adopts a two\-stage framework, determining the phase with RL and then selecting the phase duration from predefined values\. These RL\-based methods have shown significant progress in enhancing traffic management intelligence to improve efficiency\([zhang2024multi,](https://arxiv.org/html/2606.27381#bib.bib19);[liu2023gplight,](https://arxiv.org/html/2606.27381#bib.bib20)\)\. However, they often require extensive online data and computational resources, and face challenges related to safety and stability during real\-world deployment\([park2024traffic,](https://arxiv.org/html/2606.27381#bib.bib21);[ma2023traffic,](https://arxiv.org/html/2606.27381#bib.bib22)\)\.

Offline RL offers a promising alternative by learning from historical data, avoiding the need for real\-time interaction with the environment\. TransformerLight\([wu2023transformerlight,](https://arxiv.org/html/2606.27381#bib.bib23)\)utilizes offline RL for TSC, demonstrating the potential of this approach to improve traffic management efficiency without online experimentation\. Meng et al\.\([meng2023offline,](https://arxiv.org/html/2606.27381#bib.bib24)\)further advance the field with an offline pre\-trained Multi\-Agent Decision Transformer \(MADT\), which enhances sample efficiency and generalization in online tasks through offline dataset pre\-training\. This pre\-training strategy presents a novel solution for addressing complex decision\-making problems in TSC\([han2023mitigating,](https://arxiv.org/html/2606.27381#bib.bib25)\), particularly in scenarios where online experimentation is costly or poses safety risks\. However, most TSC methods focus primarily on improving efficiency, without addressing safety concerns\.

### 2\.2\.Traffic Overflow Prediction

Overflow occurs when traffic intensity approaches the capacity of an intersection\. In such scenarios, random fluctuations in vehicle arrival rates could result in cycle failures, where queues fail to clear within a cycle and progressively grow, ultimately forming overflow queues\. Traditional queuing models have been used to describe and predict these overflow queues, but they have limitations, particularly when traffic flow is near saturation, resulting in inaccurate delay estimations\([Viti2004c,](https://arxiv.org/html/2606.27381#bib.bib10)\)\.

The max\-pressure\([varaiya2013max,](https://arxiv.org/html/2606.27381#bib.bib2)\)method selects TSP based on the difference in vehicle counts between upstream and downstream lanes\. While this approach could alleviate overflow under certain conditions, it proves ineffective in scenarios with imbalanced lane capacities between upstream and downstream or when the traffic demand in the current phase is excessively high\.

To tackle these challenges, advanced queuing models have been introduced\. For example,\([Viti2004c,](https://arxiv.org/html/2606.27381#bib.bib10)\)created a heuristic model that integrates initial linear trends with nonlinear elements by employing data generated through the Markov chain process\. This model enhances the precision of overflow queue length calculations and delay predictions by accounting for the queue’s temporal evolution and the influence of standard deviation on average queue behavior\.

With the advancement of connected vehicle technology, Connected Vehicle \(CV\) data has emerged as a novel approach for overflow prevention\. CV data, which encompasses detailed information like vehicle position, speed, and travel trajectory, could mirror the real\-time state of traffic flow\([Li2019,](https://arxiv.org/html/2606.27381#bib.bib26);[Wu2020,](https://arxiv.org/html/2606.27381#bib.bib27)\)\. Certain studies have leveraged CV data to estimate traffic states, including the analysis of vehicle trajectory data to determine traffic flow, speed, and density parameters\([Zheng2017,](https://arxiv.org/html/2606.27381#bib.bib28);[Tang2020,](https://arxiv.org/html/2606.27381#bib.bib29);[Zhang2022,](https://arxiv.org/html/2606.27381#bib.bib30)\)\. Zhao etc\.\([zhao2024,](https://arxiv.org/html/2606.27381#bib.bib11)\)utilizes partial CV data, employing an adaptive Kalman filtering model in conjunction with real\-time CV data to forecast the remaining space at intersection exits and vehicle arrival\-departure patterns\. Subsequently, it reallocates signal control using Model Predictive Control \(MPC\) to effectively avert overflow\.

While existing methods of overflow prediction may be effective in some situations, their applicability and accuracy may be limited in situations such as infrequent congestion, limited data availability, and difficulties in obtaining real\-time data\. Therefore, further research is needed to develop more flexible, accurate, and practical measures for overflow prediction and prevention\.

### 2\.3\.Traffic Overflow Control

Various solutions have been proposed in the field of traffic management for the intersection overflow problem\. Early methods mainly focus on signal timing optimization, such as the lane\-based optimization method proposed by\([wong2003lane,](https://arxiv.org/html/2606.27381#bib.bib31)\), which manages traffic flow by adjusting the green light time and cycle length to reduce the accumulation of vehicles while waiting\. The advantage of this method is that it can significantly improve the efficiency of intersections, especially during periods of high traffic demand\. However, the disadvantage of this approach is that it may ignore the actual queuing of vehicles, resulting in overflow still occurring in some cases\.

Subsequently, researchers began to focus on lane marking optimization\.\([yu2017robust,](https://arxiv.org/html/2606.27381#bib.bib32)\)proposed a robust optimal lane assignment method to minimize the total delay at intersections by optimizing lane markings\. The advantage of this method is that it can control the flow of vehicles more finely and reduce unnecessary turning and lane changing behaviors, thus reducing the risk of overflow\. Nevertheless, this approach may require more complex traffic control systems and higher maintenance costs\.

Most of the existing approaches are rooted in traffic engineering optimizations, relying heavily on on\-site inspections by professional traffic engineers for individual intersections\. These methods lack a universal, flexible signal control framework capable of effectively mitigating overflow scenarios traffic conditions\.

## 3\.Preliminary

### 3\.1\.Traffic Signal Control

As shown in Figure[2](https://arxiv.org/html/2606.27381#S3.F2)\. the traffic network is composed of multiple intersections and lanes\.

Intersection\.A place where different vehicle paths cross in the traffic network\. It gathers and disperses traffic from various directions\. Multiple intersections combine to make up the whole traffic network, and its layout affects traffic flow\. The state representation of each intersection is based on individual lanes, including metrics such as the total number of vehicles per lane \(x​\(l\),l∈ℒii​nx\(l\),l\\in\\mathcal\{L\}^\{in\}\_\{i\}\), segmentation of each lane defined asxi​\(l\)x\_\{i\}\(l\)with segments spacedmmmeters apart, and the queue length, which measures the number of waiting vehicles \(q​\(l\),l∈ℒii​nq\(l\),l\\in\\mathcal\{L\}^\{in\}\_\{i\}\)\.

![Refer to caption](https://arxiv.org/html/2606.27381v1/x2.png)Figure 2\.Definition of the TSC\. Sensors are used to acquire vehicle information, which is fed into the TSC algorithm to output the appropriate phase, as shown in Figure 1\(d\)\.Traffic Movement\.This refers to vehicles crossing an intersection in a specified direction \(left, straight, or right\), and an intersection typically supports twelve different traffic movements, which is critical for developing effective signal phasing\.

Traffic Signal Phasing \(TSP\)\.The heart of TSC and defines the vehicle movements that are permitted at an intersection during a specific time interval\. Each TSP is associated with a signal indication that directs vehicles whether to proceed, yield, or stop\. The number of phases in the network can vary, usually from two to four, and these phases are designed to manage traffic flow by sequentially assigning rights\-of\-way\. Intersections use 2, 4, orkkbase phases, denoted asp=1,2,…,kp=1,2,\.\.\.,k\. Figure[2](https://arxiv.org/html/2606.27381#S3.F2)\(d\) shows 8 phases\.

The State Representation\.It provides a detailed snapshot of traffic conditions\. This representation includes metrics such as the total number of vehicles in each lane, queue lengths, and other metrics that quantify the number of vehicles waiting to move forward\. Understanding these metrics allows for the development of complex TSC strategies that can adapt to real\-time traffic conditions, thereby improving the efficiency and safety of the entire network\.

Traffic Perception\.Each intersection has four directional sensors \(e\.g\., cameras, radars\) monitoring vehicles in three lanes, with different security states indicated by colors: orange for noise attacks, red for sensor damage, and green for normal operation, as shown in Figure[2](https://arxiv.org/html/2606.27381#S3.F2)\(b\)\.

### 3\.2\.Traffic Overflow

The overflow direction refers to the direction of vehicle behavior when the traffic flow is in a specific state\.

Exit Overflow Direction\.Common traffic intersections include the north exito​dNod\_\{N\}, south exito​dSod\_\{S\}, east exito​dEod\_\{E\}, and west exito​dWod\_\{W\}\. Vehicles enter the intersection from these directions and participate in the traffic flow\. The exit directions represent the paths vehicles take when leaving the intersection area\. After turning or going straight at the intersection, vehicles exit and continue on their way\. When the queue length exceeds the capacity of the exit lane, we define these exits as overflow directions, denoted asO​D=\(o​dN,o​di,…,o​dW\),i=N,…,WOD=\(od\_\{N\},od\_\{i\},\.\.\.,od\_\{W\}\),i=N,\.\.\.,W\.

Overflow Direction Judgment\.The determination of whether an overflow occurs hinges on two crucial factors: traffic volume and vehicle queue length\. Regarding traffic volume, whenQa​c​t​u​a​l\>Qc​a​p​a​c​i​t​yQ\_\{actual\}\>Q\_\{capacity\}, it implies that the influx of vehicles into this exit direction surpasses its normal handling capacity, a significant contributor to potential overflow\. Simultaneously, the vehicle queue length is a vital indicator\. IfLq​u​e​u​e\>Lt​h​r​e​s​h​o​l​dL\_\{queue\}\>L\_\{threshold\}, it indicates that the vehicle accumulation at the exit has exceeded the normal range\. Only when both these criteria are met, along with additional factors such as unreasonable signal timing \(tg​r​e​e​nt\_\{green\}being too short\), traffic accidents, or other interferences preventing normal vehicle evacuation at the exit, and vehicles start spreading around the exit, can it be concluded that an overflow has happened, which is then defined as the Overflow Direction\.

![Refer to caption](https://arxiv.org/html/2606.27381v1/x3.png)Figure 3\.Overview of OverFlowLight\. The framework consists of three stages\. \(1\) Overflow Phase Construction: Constructs an overflow\-phase map \(OPM\) by mapping each detected overflow direction to adaptive overflow phases\. \(2\) Overflow Detection: Extracts traffic data from cameras and radars, applying congestion metrics to identify overflow directions\. \(3\) Overflow Phase Selection: Applies a phase mask to select the optimal phase, adopting either traditional TSC or RL method\.Overflow Phase\.The overflow phase is defined as a specific phase in a traffic TSC that mitigates the overflow direction\. Each individual movement, as well as the combination of non\-conflicting movements, can be considered as an overflow phase\.The combination of all movements Figure[2](https://arxiv.org/html/2606.27381#S3.F2)\(c\) and phases Figure[2](https://arxiv.org/html/2606.27381#S3.F2)\(d\) constitutes the list of overflow phaseso​p=1,2,3,4,…,mop=1,2,3,4,\.\.\.,m\.

The reason for considering individual movements as overflow phases is that overflow may occur several seconds before the current phase ends\. For example, at overflow directiono​dEod\_\{E\}, the current phase might be phase M Figure[2](https://arxiv.org/html/2606.27381#S3.F2)\(d\), but if there are still many vehicles in movement G Figure[2](https://arxiv.org/html/2606.27381#S3.F2)\(c\), it could result in the inability to clear the vehicles in that lane before the phase ends\. This situation could cause the overflow to propagate to the next intersection in movement G, leading to congestion there as well\. When the vehicles in movement G are not cleared in time due to insufficient green time in the current phase, the overflow extends to the following intersection, where the same vehicles might still be waiting\. This can cause a ripple effect, worsening congestion downstream\.

As shown in Figure[1](https://arxiv.org/html/2606.27381#S0.F1)\. If directiono​dEod\_\{E\}experiences heavy traffic, an overflow phase might be triggered to movement G and allow more time for mitigating overflow diretiono​dEod\_\{E\}\. Once the overflow is resolved, the algorithm will switch to the phaseppthat can improve efficiency\.

## 4\.Methods

In this section, we presentOverFlowLight, a real\-time overflow control framework designed to mitigate vehicle spillovers and optimize Traffic Signal Control \(TSC\) at urban intersections\.OverFlowLightcomprises three core modules: Overflow Phase Construction, Overflow Detection, and Overflow Phase Selection\.

### 4\.1\.Overflow Phase Construction

To construct overflow phases, we design an algorithm that adjusts signal phases based on traffic overflow conditions\. The algorithm starts with thebase phasespp\(Definition[3\.1](https://arxiv.org/html/2606.27381#S3.SS1)\), which define the fundamental traffic signal plans under normal conditions and serve as a reference for adjustments\.

The algorithm generates all availableoverflow phaseso​pop, representing alternative movement and phases to address overflow situations\. These phases adapt dynamically to changing traffic patterns and improve intersection efficiency during congestion\.

In addition, the algorithm incorporatesoverflow directions\(e\.g\.,o​dEod\_\{E\},o​dSod\_\{S\}\), which indicate where vehicle accumulation is most significant, guiding the selection of effective overflow phases\.

The algorithm operates as follows:

Algorithm 1Overflow Phase Map Construction0:

DDList of all directions

dd
0:Overflow phase map

O​P​MOPM
1:Initial map

O​P​MOPM
2:foreach

ddin

DDdo

3:For each direction

dd, initial list

O​P​M​\[d\]OPM\[d\]
4:foreach

o​popin

O​POPdo

5:if

o​popcould mitigate

ddthen

6:

O​P​M​\[d\]OPM\[d\]add

o​pop
7:endif

8:endfor

9:endfor

10:Return

O​P​MOPM

The algorithm initializes a list of overflow phases for each overflow directiondd, and iterates through the overflow phases to identify an available overflow phaseo​popthat can mitigate the overflow in the specified direction\. For example, overflow phaseo​pGop\_\{G\}Figure[2](https://arxiv.org/html/2606.27381#S3.F2)\(c\) could mitigate overflow directiono​dEod\_\{E\}\. From this, we obtain a mapping from overflow direction to overflow phase:

overflow phase mapO​P​M:O​P​M​\[d\]↦o​p\\text\{overflow phase map $OPM$\}:OPM\[d\]\\mapsto op
This map provides guidance for subsequent overflow selection\.

### 4\.2\.Overflow Detection

Overflow detection is divided into three steps: Data Extraction, Applying Overflow Rules, and Get Overflow Mask\.

#### 4\.2\.1\.Data Extraction:

Surveillance cameras and radars are installed at each directions of intersections to monitor traffic conditions in real\-time\. We detect data within an effective rangeE​RERof each direction\. ThePerception Modulecollects data from entry and exit lanes, including the number of queuing vehicles, their speed, and waiting time to assess if the direction is overflow states\.

ThePerception Featurefurther processes this data, providing:

- •Vehicle Speed:Real\-time speed of each vehicle in each lane to better analyze waiting vehicles\.
- •Vehicle Coordinates:Positions of vehicles based on a coordinate system centered at the intersection, allowing precise vehicles within entry and exit lanes\.

#### 4\.2\.2\.Apply Overflow Rules:

The collected monitoring data is then compared against the pre\-defined overflow conditions\. We have established two key overflow conditions:

1. \(1\)Waiting Condition: The number of waiting vehicles and the average waiting time on most lanes of a particular road direction exceed the specified thresholds\.
2. \(2\)Queuing Congestion Condition: The number of queuing vehicles \(low\-speed vehicles\) on a specific road direction surpasses the set threshold\.

These two conditions, by monitoring and responding to traffic conditions in real time, enable early congestion warnings, optimize traffic flow, and prevent congestion from spreading, thereby effectively alleviating traffic congestion\.

#### 4\.2\.3\.Get Overflow Mask:

If either of Apply Overflow Rules conditions is satisfied, the overflow direction is then add to the list of available overflow directions to construct overflow phase maskM∈\{0,1\}1×mM\\in\\\{0,1\\\}^\{1\\times m\}, wheremmis the count of overflow phase\.

The detection function iterates through each exit road and its corresponding lanes, applying Algorithm[2](https://arxiv.org/html/2606.27381#alg2)to generate the overflow mask\. The Algorithm[2](https://arxiv.org/html/2606.27381#alg2)iterates through vehicles in each overflow directionO​DODfrom lines 3 to 11, applies overflow rules to determine the available overflow phase indices based on the overflow phase mapO​P​MOPM, and subsequently marks the overflow mask corresponding to these indices as 1\. If no overflow is detected, the overflow mask for the base phases is set to 1\. Finally, the algorithm outputs the overflow phase maskMMbased on overflow flagO​FOF\.

Algorithm 2Get Overflow Phase Mask0:

O​DODSet of overflow directions

α\\alpha: Zero\-speed vehicle waiting time threshold

β\\beta: Max exit vehicle count

E​PEP: Effective range to detect overflow directions

0:

MM: Overflow phase mask and overflow flag

O​FOF
1:Initial overflow flag

O​F←F​a​l​s​eOF\\leftarrow False
2:Initial overflow phase mask

M←0M\\leftarrow 0
3:foreach

o​dodin

O​DODdo

4:Calculated max queued vehicles

VqV\_\{q\}within

E​PEP
5:Calculated max vehicle waiting time

VzV\_\{z\}within

E​PEP
6:if

Vq≥βV\_\{q\}\\geq\\betaor

Vz≥αV\_\{z\}\\geq\\alphathen

7:Get list of overflow phases index

O​P​IOPIfrom

O​P​M​\[o​d\]OPM\[od\]
8:Set overflow phase mask

MO​P​I←1M\_\{OPI\}\\leftarrow 1
9:Set overflow flag

O​F←T​r​u​eOF\\leftarrow True
10:endif

11:endfor

12:if

O​FOFis

F​a​l​s​eFalsethen

13:Get base phases index

B​P​IBPI
14:Set overflow phase mask

MB​P​I←1M\_\{BPI\}\\leftarrow 1
15:endif

16:return

M​and​O​FM\\textbf\{ and \}OF

### 4\.3\.Overflow Phase Selection

The final module ofOverFlowLightinvolves selecting an appropriate overflow phase based on the generated overflow phase maskMM\. This module is pivotal as it determines the traffic signal adjustments required to mitigate overflow and prevent gridlock\.OverFlowLightprovides a unified interface for integrating different control strategies, including both traditional TSC methods and Reinforcement Learning \(RL\)\-based approaches\.

#### 4\.3\.1\.Traditional TSC Approach

In traditional TSC methods, available overflow phases are selected based on predefined criteria prioritizing traffic flow efficiency\. For instance, the Advanced\-MaxPressure method evaluates the pressure on each lane and selects phases that alleviate the most significant congestion\.

#### 4\.3\.2\.RL\-based Overflow Control Algorithm

Building upon theOverFlowLightframework, we introduce a novel RL\-based overflow control algorithm that optimizes phase selection dynamically\. The RL algorithm is designed with the following components:

- ∙\\bulletState\.The state is the number of waiting vehicles and waiting vehicles withinE​RER\.
- ∙\\bulletAction\.The actionAAis all of the overflow phaseO​POP\.
- ∙\\bulletReward\.Negative queue lengthri=∑−q​\(l\),l∈ℒii​nr\_\{i\}=\\sum\{\-q\(l\)\},l\\in\\mathcal\{L\}^\{in\}\_\{i\}is denoted as the reward\.

Algorithm 3Overflow Phase Selection0:Overflow phase map

O​P​MOPM
0:Final phase

F​PFP
1:ifTraditional methodthen

2:Get available overflow phases as action

A^←O​P⊙O​P​M\\hat\{A\}\\leftarrow OP\\odot OPM
3:Consider efficiency and

A^\\hat\{A\}to get final phase

F​PFP
4:endif

5:ifRL methodthen

6:Get available Q value

Qo​p←Qo​p⊙O​P​MQ\_\{op\}\\leftarrow Q\_\{op\}\\odot OPM
7:Get final phase

F​P←arg⁡maxa∈A⁡Q​\(s,a\)FP\\leftarrow\\arg\\max\_\{a\\in A\}Q\(s,a\)
8:endif

9:return

F​PFP

The RL agent learns an optimal policy to minimize congestion and prevent gridlock by selecting overflow phases\. Algorithm[3](https://arxiv.org/html/2606.27381#alg3)outlines this process, where traditional TSC methods \(lines 2 and 4\) obtain available overflow phases and their Q\-values, effectively mitigating intersection overflow during peak hours using either traditional or RL\-based approaches\.

The efficacy of this RL\-based approach is underpinned by its convergence properties, which are rooted in the Bellman equations\([watkins1992q,](https://arxiv.org/html/2606.27381#bib.bib33)\):

Qπ​\(st,ut\)=𝔼rt,st\+1∼E​\[rt\+γ​𝔼ut\+1∼π​\[Qπ​\(st\+1,ut\+1\)\]\]Q^\{\\pi\}\(s\_\{t\},u\_\{t\}\)=\\mathbb\{E\}\_\{r\_\{t\},s\_\{t\+1\}\\sim E\}\[r\_\{t\}\+\\gamma\\mathbb\{E\}\_\{u\_\{t\+1\}\\sim\\pi\}\[Q^\{\\pi\}\(s\_\{t\+1\},u\_\{t\+1\}\)\]\]
Our RL agent aims to find the optimal action\-value functionQ∗​\(s,a\)=maxπ⁡Qπ​\(s,a\)Q^\{\*\}\(s,a\)=\\max\_\{\\pi\}Q^\{\\pi\}\(s,a\)\. This optimal function satisfies the Bellman optimality equation, where the inner expectation over actions under policyπ\\pi\(i\.e\.,𝔼ut\+1∼π\\mathbb\{E\}\_\{u\_\{t\+1\}\\sim\\pi\}\) is replaced by a maximization over all possible next actions\. Expressed in terms of our problem’s notation:

Q∗​\(s,a\)=𝔼s′​\[ri\+γ​maxa′⁡Q∗​\(s′,a′\)\|s,a\]Q^\{\*\}\(s,a\)=\\mathbb\{E\}\_\{s^\{\\prime\}\}\[r\_\{i\}\+\\gamma\\max\_\{a^\{\\prime\}\}Q^\{\*\}\(s^\{\\prime\},a^\{\\prime\}\)\|s,a\]The convergence of our Q\-learning algorithm to thisQ∗​\(s,a\)Q^\{\*\}\(s,a\)is guaranteed under standard conditions:

1. \(1\)The action spaceAAand the state spaceSSare discrete and finite\. Specifically, the state space is rendered finite by categorizing vehicle counts based on predefined thresholds\.
2. \(2\)All relevant state\-action pairs\(s,a\)\(s,a\), particularly those permitted by theO​P​MOPMas indicated in Algorithm[3](https://arxiv.org/html/2606.27381#alg3), are sufficiently explored\.
3. \(3\)Appropriate values for the learning rateα\\alphaand discount factorγ\\gammaare applied\.

TheO​P​MOPMplays a crucial role in this learning process\. By constraining the agent’s actions to a contextually relevant subsetAO​P​M​\(s\)A\_\{OPM\}\(s\), the OPM guides the algorithm to converge toQO​P​M∗​\(s,a\)Q^\{\*\}\_\{OPM\}\(s,a\), the optimal Q\-values within this OPM\-constrained policy space, which inherently reflects safer and more effective operational strategies\. This guidance not only upholds the convergence guarantee but also promotes more stable and potentially faster learning towards a practically sound solution\.

Table 1\.Performance Comparison Across Peak Hours and Control Methods \(For Overflow Count and Speed Variance, the smaller the better; for Speed Mean, Speed Median, and Throughput, the higher the better\)\.

## 5\.Experiments

We deploy our overflow algorithm at 43 real\-world intersections in three cities and evaluate the proposed overflow phase\-selection method using FuzzyLight as an efficiency\-enhancement baseline\. Specifically, we conduct a comprehensive performance analysis during peak hours, when overflow events are most likely to occur\. Over a 1\.5\-year experimental period, including rain, snow, and fog conditions, we select two critical intersections in City 2 that are particularly prone to overflow during peak hours and compare their performance against expert\-designed timing plans\. To improve readability, we organize this section into four parts: core quantitative performance, ablation and sensitivity analysis, representative case studies, and deployment cost, latency, and robustness\. More details on the settings are provided inAppendix A\.

### 5\.1\.Core Quantitative Performance

Table 2\.Aggregate improvements across 43 deployed intersections relative to expert\-timed control\.
### 5\.2\.Real\-World Results

As shown in Table[1](https://arxiv.org/html/2606.27381#S4.T1), FuzzyLight reduces the overflow count by 64\.0% at Intersection 1 and 52\.3% at Intersection 2 compared with the traditional fixed\-duration method\. The DQN\-based controller reduces the overflow count by 55\.6% at Intersection 1 and 76\.8% at Intersection 2 during the evening peak hour compared with the same baseline\. Table[2](https://arxiv.org/html/2606.27381#S5.T2)complements these stress\-test intersections with deployment\-level aggregate statistics across all 43 intersections, showing that the gains generalize beyond the two case studies and are largest during peak periods\.

### 5\.3\.Ablation and Sensitivity Analysis

We further analyze the contribution of the major modules and the sensitivity of the overflow\-detection thresholds\. In particular, we examine the effect of removing OPM\-based phase masking or real\-time overflow detection, and we study the robustness of the key thresholdsα\\alphaandβ\\betaaround their default settings\. Due to space constraints, we place the detailed plots and extended comparisons in the appendix and anonymized supplementary materials, while preserving the main outcome here: OverFlowLight remains stable across reasonable threshold ranges, and performance degrades primarily when the thresholds become overly aggressive or overly conservative\.

Table 3\.Overflow Switch Success \(OSS\) for advanced controllers with and without OverFlowLight under real\-traffic replay at Intersection 1\.![Refer to caption](https://arxiv.org/html/2606.27381v1/x4.png)Figure 4\.Peak\-hour waiting\-vehicle counts over one week after moving\-average smoothing\. The blue line represents the original method, while the red line represents our OverFlowLight algorithm\.![Refer to caption](https://arxiv.org/html/2606.27381v1/x5.png)\(a\)Congestion![Refer to caption](https://arxiv.org/html/2606.27381v1/x6.png)\(b\)dNd\_\{N\}warning![Refer to caption](https://arxiv.org/html/2606.27381v1/x7.png)\(c\)Change phase too​pIop\_\{I\}![Refer to caption](https://arxiv.org/html/2606.27381v1/x8.png)\(d\)Change phase too​pIop\_\{I\}
Figure 5\.Real\-world signal\-control snapshots at Intersection 2 integrated with our proposed overflow framework\.Table[3](https://arxiv.org/html/2606.27381#S5.T3)provides an explicit with\-versus\-without comparison for advanced controllers\. Integrating OverFlowLight increases overflow\-switch success from roughly 10%–13% to 81%–100% across representative dates\. This indicates that the main limitation of existing advanced TSC methods in these settings is not generic phase optimization, but the lack of an explicit overflow\-handling mechanism\.

### 5\.4\.Representative Case Studies

As shown in Figure[4](https://arxiv.org/html/2606.27381#S5.F4), we recorded the waiting\-vehicle volume at a representative intersection after applying FuzzyLight during both morning and evening peak periods\. The data reveal several patterns: the morning peak typically occurs between 7:00 AM and 8:00 AM, while the evening peak appears between 6:00 PM and 6:30 PM\. Notably, the number of waiting vehicles during these peak periods is significantly lower on weekends than on weekdays\.

Figure 5\(a\)\-\(b\) demonstrates a case study of FuzzyLight’s overflow control mechanism during peak traffic hours at Intersection 1\. The results indicate that our algorithm dynamically switches to the overflow phaseo​pNop\_\{N\}upon detecting overflow in thedwd\_\{w\}direction\. Similarly, Figures 5\(c\)\-\(f\) showcase a case study of simple DQN control at Intersection 2 during peak hours\. The algorithm effectively addresses congestion and overflow in thednd\_\{n\}direction by transitioning to the overflow phaseo​pIop\_\{I\}, thereby alleviating the overflow phenomenon\.

### 5\.5\.Deployment Cost, Latency, Robustness, and Implementation Details

The computational pipeline achieves an average latency of 35\.61 ms for the perception module and 10\.56 ms for the overflow\-detection module\. With the full DQN\-based system averaging approximately 106 ms end\-to\-end, it satisfies the requirements of real\-time control\. We also evaluate the system under long\-term real\-world operation, including rain, snow, fog, and other challenging conditions over 1\.5 years of deployment\. These results indicate that the radar\-centered multimodal sensing stack remains reliable in adverse environments while preserving practical deployment cost and low\-latency execution\.

Table 4\.Compact deployment\-cost summary per intersection\.Deployment insights\.In practice, the hardware cost is dominated by sensing rather than control or compute\. Radar provides strong robustness under nighttime, rain, and occlusion, making it appropriate for safety\-critical or congestion\-prone intersections\. Camera\-only deployment can substantially reduce hardware cost by reusing existing infrastructure, though it is more sensitive to lighting conditions\. The control stack itself remains lightweight and does not require a GPU at inference time, enabling deployment on low\-cost CPU/NPU edge devices\. In large networks, a hybrid strategy is most practical: radar is reserved for high\-risk intersections, while standard intersections use camera\-only deployment\. This design yields an estimated 40%–60% cost reduction while preserving robustness and scalability\. Detailed component\-wise and city\-scale budget tables are provided in the appendix\.

## 6\.Discussion

\(1\) What are the key innovations, and generalizability of the proposed overflow control framework compared to existing methods, and how is its superiority demonstrated?Our proposed overflow control framework introduces several key innovations, such as lane\-level overflow formalization, adaptive overflow phases, and OPM\-constrained integration with existing RL and rule\-based controllers\. The algorithm demonstrates strong generalizability, having been successfully applied to multiple real\-world intersections\. It significantly reduces overflow occurrences, improves traffic\-flow efficiency, and minimizes the need for manual intervention, outperforming traditional methods in deployment\. \(2\) Why not conduct more experiments on simulators, is the experimental design sufficient to support the conclusions, and are there plans for larger\-scale validation and alignment analysis with expert\-designed signal plans?The reason for not conducting more experiments on simulators like SUMO or CityFlow\([cityflow,](https://arxiv.org/html/2606.27381#bib.bib34)\)is that these platforms are currently unable to accurately simulate overflow conditions\. We prioritize real\-world applicability and have validated the algorithm’s effectiveness through extensive real\-world deployments at 43 intersections across three cities\. In addition, we have successfully achieved overflow control during peak hours with continuous 24/7 operation and have gained recognition from local authorities\. In future work, we plan to deploy our algorithm across more intersections to further validate its scalability and effectiveness\.

\(3\) How are sensor data noise, overflow detection thresholds \(e\.g\.,α\\alphaandβ\\beta\), and RL training processes addressed to ensure robustness and generalizability across traffic scenarios?In the RL training process, the accuracy of perception data is crucial\. To address this, we use higher\-precision radar equipment to ensure accurate perception\. Additionally, we employ compressed sensing from FuzzyLight to reduce noise generated during communication\. The hyperparameters, such asα\\alphaandβ\\beta, were determined through extensive overflow testing, and the added sensitivity study confirms stable performance around the default settings\. Regarding generalizability, the roads and lanes in our dataset are highly imbalanced across intersections\. Nevertheless, the proposed overflow framework can be integrated with both traditional TSC methods and RL approaches and has been successfully deployed in real\-world scenarios\. This demonstrates its strong adaptability and effectiveness across diverse traffic conditions\.

\(4\) How does the OverFlowLight framework address multi\-intersection coordination, and what are the plans for achieving network\-level traffic optimization?OverFlowLight currently prioritizes robust single\-intersection optimization to effectively manage localized overflow phenomena, while its underlying architecture is designed with network\-level awareness and future scalability in mind\. An established communication infrastructure enables individual OverFlowLight\-equipped intersections to exchange critical traffic state information, such as exit lane vehicle speeds and capacity data from adjacent intersections, via a central server\. Our empirical assessments show this data exchange occurs with a low latency of approximately 0\.1 seconds, providing a foundation for future context\-aware control\.

\(5\) How does the OverFlowLight framework address practical deployment considerations such as hardware dependencies, cost\-effectiveness, data privacy, and its chosen sensor architecture?The OverFlowLight framework strategically addresses practical deployment considerations by balancing advanced traffic\-management capabilities with economic viability and robust operation\. Recognizing hardware dependencies as a potential barrier, the system primarily employs cost\-effective 80GHz millimeter\-wave radar, complemented by event\-based cameras, and integrates visual data anonymization techniques\. This approach successfully controls per\-intersection deployment costs to approximately several hundred U\.S\. dollars while addressing data privacy\. The chosen sensor architecture leverages a multi\-sensor fusion strategy integrating data from radar, event cameras, and conventional cameras to harness their complementary strengths and mitigate individual limitations\. We emphasize that the VLM\-based camera\-only path is an optional extension rather than the default deployed stack\.

\(6\) How does OverFlowLight assert its academic novelty, particularly given the established use of DQN in TSC and in comparison to emerging large model approaches?OverFlowLight’s novelty lies not in a new RL algorithm, but in its pioneering real\-world system\-level integration of RL with a dedicated traditional TSC framework \(encompassing overflow detection, adaptive overflow phases, and control logic\) to resolve overflow\-induced gridlock at operational urban intersections, validated by extensive field deployment\. We further propose a conceptual technical framework for adapting various RL paradigms such as CoLight series \(e\.g\., extending GNN state embeddings and adding new overflow phases for Advanced\-CoLight\), FRAP series \(e\.g\., modifying phase competition matrices for MPLight\), and Offline RL series \(e\.g\., presetting overflow scenarios in training data for TransformerLight\) to our targeted overflow control mechanisms\. Compared to emerging large model TSC solutions \(e\.g\., LLMLight\([lai2023llmlight,](https://arxiv.org/html/2606.27381#bib.bib35)\)\), OverFlowLight currently offers a more immediately deployable and robust approach, given practical challenges LLMs face in real\-time, safety\-critical control regarding data requirements, inference speed, hardware demands, and output reliability \(e\.g\., potential for hallucination and inconsistency\)\.

## 7\.Conclusion

This paper addresses vehicle spillback and intersection gridlock during peak hours in real\-world scenarios\. We propose an overflow\-control framework that integrates with both traditional and RL methods\. Across 43 intersections in three cities, the framework effectively mitigates spillback through adaptive phase switching while improving efficiency and reducing reliance on manual traffic\-police coordination\. In future research, we will further explore end\-to\-end decision optimization and larger\-scale coordinated network control\.

## References

- \(1\)H\. Wei, G\. Zheng, H\. Yao, and Z\. Li, “Intellilight: A reinforcement learning approach for intelligent traffic light control,” in*Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining*, 2018, pp\. 2496–2505\.
- \(2\)P\. Varaiya, “Max pressure control of a network of signalized intersections,”*Transportation Research Part C: Emerging Technologies*, vol\. 36, pp\. 177–195, 2013\.
- \(3\)E\. Van der Pol and F\. A\. Oliehoek, “Coordinated deep reinforcement learners for traffic light control,” in*In Proceedings of the NIPS’16 Workshop on Learning, Inference and Control of Multi \- Agent Systems*, Barcelona, Spain, 2016\.
- \(4\)H\. Wei, N\. Xu, H\. Zhang, G\. Zheng, X\. Zang, C\. Chen, W\. Zhang, Y\. Zhu, K\. Xu, and Z\. Li, “Colight: Learning network\-level cooperation for traffic signal control,” in*Proceedings of the 28th ACM International Conference on Information and Knowledge Management*, 2019, pp\. 1913–1922\.
- \(5\)F\. A\. Haight, “Overflow at a traffic light,”*Biometrika*, vol\. 46, no\. 3/4, pp\. 420–424, 1959\.
- \(6\)R\. Akçelik and N\. M\. Rouphail, “Overflow queues and delays with random and platooned arrivals at signalized intersections,”*Journal of Advanced Transportation*, vol\. 28, no\. 3, pp\. 227–251, 1994\.
- \(7\)B\. S\. Kerner, “Physics of traffic gridlock in a city,”*Physical Review E—Statistical, Nonlinear, and Soft Matter Physics*, vol\. 84, no\. 4, p\. 045102, 2011\.
- \(8\)H\. Liu and V\. V\. Gayah, “A novel max pressure algorithm based on traffic delay,”*Transportation Research Part C: Emerging Technologies*, vol\. 143, p\. 103803, 2022\.
- \(9\)P\. Mercader, W\. Uwayid, and J\. Haddad, “Max\-pressure traffic controller based on travel times: An experimental analysis,”*Transportation Research Part C: Emerging Technologies*, vol\. 110, pp\. 275–290, 2020\.
- \(10\)F\. Viti and H\. J\. van Zuylen, “Modeling overflow queues on urban signalized intersections,” in*In Proceedings of the 10th World Conference of Transport Research, 7 \- 8 July 2004*, Istanbul, Turkey, 2004\.
- \(11\)J\. Zhao, T\. Yao, C\. Zhang, and M\. A\. Shafique, “Signal control for overflow prevention at intersections using partial connected vehicle data,”*Transportmetrica A: Transport Science*, 2024\.
- \(12\)A\. J\. Miller, “Settings for fixed\-cycle traffic signals,”*Journal of the Operational Research Society*, vol\. 14, no\. 4, pp\. 373–386, 1963\.
- \(13\)M\. Papageorgiou, C\. Diakaki, V\. Dinopoulou, A\. Kotsialos, and Y\. Wang, “Review of road traffic control strategies,”*Proc\. IEEE*, vol\. 91, pp\. 2043 – 2067, 2003\.
- \(14\)G\. Zheng, Y\. Xiong, X\. Zang, J\. Feng, H\. Wei, H\. Zhang, Y\. Li, K\. Xu, and Z\. Li, “Learning phase competition for traffic signal control,”*Proceedings of the 28th ACM International Conference on Information and Knowledge Management*, 2019\. \[Online\]\. Available:[https://doi\.org/10\.1145/3357384\.3357900](https://doi.org/10.1145/3357384.3357900)
- \(15\)H\. Wei, C\. Chen, G\. Zheng, K\. Wu, V\. Gayah, K\. Xu, and Z\. Li, “Presslight: Learning max pressure control to coordinate traffic signals in arterial network,” in*Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining*, 2019, pp\. 1290–1298\.
- \(16\)C\. Chen, H\. Wei, N\. Xu, G\. Zheng, M\. Yang, Y\. Xiong, K\. Xu, and Z\. Li, “Toward a thousand lights: Decentralized deep reinforcement learning for large\-scale traffic signal control,” in*Proceedings of the AAAI Conference on Artificial Intelligence*, vol\. 34, no\. 04, 2020, pp\. 3414–3421\.
- \(17\)A\. Vaswani, N\. Shazeer, N\. Parmar, J\. Uszkoreit, L\. Jones, A\. N\. Gomez, L\. u\. Kaiser, and I\. Polosukhin, “Attention is all you need,” in*Advances in Neural Information Processing Systems \(NIPS\)*, vol\. 30, 2017\.
- \(18\)L\. Zhang, Q\. Wu, J\. Shen, L\. Lü, B\. Du, A\. Telikani, J\. Wu, and S\. Xie, “Dynamiclight: Dynamically tuning traffic signal duration with drl,”*arXiv preprint arXiv:2211\.01025*, 2022\.
- \(19\)G\. Zhang, F\. Chang, J\. Jin, F\. Yang, and H\. Huang, “Multi\-objective deep reinforcement learning approach for adaptive traffic signal control system with concurrent optimization of safety, efficiency, and decarbonization at intersections,”*Accident Analysis & Prevention*, vol\. 199, p\. 107451, 2024\.
- \(20\)Y\. Liu, G\. Luo, Q\. Yuan, J\. Li, L\. Jin, B\. Chen, and R\. Pan, “Gplight: Grouped multi\-agent reinforcement learning for large\-scale traffic signal control\.” in*IJCAI*, 2023, pp\. 199–207\.
- \(21\)J\. Park, T\. Liu, C\. Wang, H\. Wang, Q\. Wang, and Z\.\-P\. Jiang, “Traffic signal control for large\-scale urban traffic networks: Real\-world experiments using vision\-based sensors,” in*2024 IEEE 18th International Conference on Control & Automation \(ICCA\)*\. IEEE, 2024, pp\. 282–287\.
- \(22\)Z\. Ma, C\. Yu, and W\. Ma, “Traffic signal control performance evaluation based on demand\-supply matching index using trajectory data,” in*CICTP 2023*, 2023, pp\. 2941–2950\.
- \(23\)Q\. Wu, M\. Li, J\. Shen, L\. Lü, B\. Du, and K\. Zhang, “Transformerlight: A novel sequence modeling based traffic signaling mechanism via gated transformer,” in*Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining*, 2023, pp\. 2639–2647\.
- \(24\)L\. Meng, M\. Wen, C\. Le, X\. Li, D\. Xing, W\. Zhang, Y\. Wen, H\. Zhang, J\. Wang, Y\. Yang*et al\.*, “Offline pre\-trained multi\-agent decision transformer,”*Machine Intelligence Research*, vol\. 20, no\. 2, pp\. 233–248, 2023\.
- \(25\)X\. Han, X\. Zhao, L\. Zhang, and W\. Wang, “Mitigating action hysteresis in traffic signal control with traffic predictive reinforcement learning,” in*Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining*, 2023, pp\. 673–684\.
- \(26\)B\. Li, W\. Cheng, and L\. Li, “Real \- time prediction of lane \- based delay using incremental queue accumulation,”*Journal of Transportation Engineering, Part A: Systems*, vol\. 145, no\. 12, p\. 04019051, 2019\.
- \(27\)W\. Wu, L\. Huang, and R\. Du, “Simultaneous optimization of vehicle arrival time and signal timings within a connected vehicle environment,”*Sensors*, vol\. 20, no\. 1, p\. 191, 2020\.
- \(28\)J\. Zheng and H\. X\. Liu, “Estimating traffic volumes for signalized intersections using connected vehicle data,”*Transportation Research Part C: Emerging Technologies*, vol\. 79, pp\. 347–362, 2017\.
- \(29\)K\. Tang, C\. Tan, Y\. Cao, J\. Yao, and J\. Sun, “A tensor decomposition method for cycle \- based traffic volume estimation using sampled vehicle trajectories,”*Transportation Research Part C \- Emerging Technologies*, vol\. 118, p\. 102739, 2020\.
- \(30\)Z\. Zhang, S\. Zhang, L\. Mo, M\. Guo, F\. Liu, and X\. Qi, “Traffic volume estimate based on low penetration connected vehicle data at signalized intersections: A bayesian deduction approach,”*IEEE Transactions on Intelligent Transportation Systems*, vol\. 23, no\. 8, pp\. 10 596–10 609, 2022\.
- \(31\)C\. Wong and S\. Wong, “Lane\-based optimization of signal timings for isolated junctions,”*Transportation Research Part B: Methodological*, vol\. 37, no\. 1, pp\. 63–84, 2003\.
- \(32\)C\. Yu, W\. Ma, H\. K\. Lo, and X\. Yang, “Robust optimal lane allocation for isolated intersections,”*Computer\-Aided Civil and Infrastructure Engineering*, vol\. 32, no\. 1, pp\. 72–86, 2017\.
- \(33\)C\. J\. Watkins and P\. Dayan, “Q\-learning,”*Machine learning*, vol\. 8, pp\. 279–292, 1992\.
- \(34\)H\. Zhang, S\. Feng, C\. Liu, Y\. Ding, Y\. Zhu, Z\. Zhou, W\. Zhang, Y\. Yu, H\. Jin, and Z\. Li, “Cityflow: A multi\-agent reinforcement learning environment for large scale city traffic scenario,” in*The World Wide Web Conference*, 2019, pp\. 3620–3624\.
- \(35\)S\. Lai, Z\. Xu, W\. Zhang, H\. Liu, and H\. Xiong, “Llmlight: Large language models as traffic signal control agents,”*arXiv preprint arXiv:2312\.16044*, 2023\.

## Appendix ADatasets and Hyperparameters

### A\.1\.Hyperparameters

The hyperparameters of our method primarily focus on overflow detection as shown in Table[5](https://arxiv.org/html/2606.27381#A1.T5), which consists of three key parameters: \(1\) ER \(Effective Range\), set to 160 meters, representing a relatively close distance to the intersection exit; \(2\)α\\alpha, the threshold for the stopping time of vehicles across all lanes, set to a moderate value of 3 seconds; and \(3\)β\\beta, the vehicle queue length within the ER for a single exit lane, optimized to 8 vehicles\. These parameters were carefully tuned to balance detection sensitivity and robustness in real\-world scenarios\.

Table 5\.Hyperparameters![Refer to caption](https://arxiv.org/html/2606.27381v1/x9.png)\(a\)Real\-world deployment at 18 intersections in City 1![Refer to caption](https://arxiv.org/html/2606.27381v1/x10.png)\(b\)Real\-world deployment at 4 intersections in City 2
![Refer to caption](https://arxiv.org/html/2606.27381v1/images/inter1.png)\(c\)Representative Intersection 1 in City 2![Refer to caption](https://arxiv.org/html/2606.27381v1/images/Inter2.png)\(d\)Representative Intersection 2 in City 2

Figure 6\.Real\-world intersections and road networks\.
### A\.2\.Datasets

We conduct experiments in three real\-world cities\. The detailed datasets are summarized below\.

- •City 1:The road network has 18 intersections\. Each intersection includes either four\-way or three\-way \(T\-shaped\) configurations, strategically located in the main urban area\. Additionally, each intersection exhibits variations in lane lengths and the number of lanes, reflecting the diverse and complex nature of real\-world traffic environments\.
- •City 2:The road network has four intersections, all located within the main urban area of the provincial capital\. These intersections are situated in close proximity to a cluster of educational institutions, including universities, colleges, and schools, catering to a student population of nearly 20,000\. During peak hours, the substantial increase in vehicular traffic flow and pedestrians frequently leads to overflow phenomena at these intersections, posing significant challenges to urban traffic management and safety\.
- •City 3:The road network has 21 intersections, including both three\-way and four\-way intersections, all located within the main urban area of the provincial capital\.
- •Intersection 1:It belongs to City 2, is a three\-way intersection, with a south entrance, north entrance, and west entrance\. The overflow phenomenon is primarily attributed to the insufficient number of traffic lanes, which significantly restricts the road capacity and exacerbates congestion during peak periods\.
- •Intersection 2:It belongs to City 2, is a four\-way intersection, with a south entrance, north entrance, east entrance, and west entrance\. The overflow primarily results from a mid\-block zebra crossing on the northern approach\. During school peak hours, pedestrian crossings cause vehicle queues, leading to overflows at the northern entrance due to conflicting pedestrian\-vehicle movements\.

### A\.3\.Evaluation Metrics and Settings

We use the following metrics to evaluate the performance of our proposed methods:

- •Average Throughput:The average number of vehicles passing through the intersection during peak overflow periods\.
- •Overflow Count:The number of overflow events during peak overflow periods\.

Each green signal is followed by a three\-second green flash and a three\-second yellow signal time to clear the vehicles at an intersection\. For all metrics, we collect data over a three\-month period and calculate their average values to ensure statistical reliability and robustness in our analysis\.

## Appendix BAdditional Experiments

![Refer to caption](https://arxiv.org/html/2606.27381v1/x11.png)\(a\)Intersection 1 overflow directiondWd\_\{W\}warning![Refer to caption](https://arxiv.org/html/2606.27381v1/x12.png)\(b\)Intersection 1 change phase too​pNop\_\{N\}and mitigate overflow
Figure 7\.Real\-world signal\-control snapshots at Intersection 1 integrated with our proposed overflow framework\.This section details further experimental analyses and validations undertaken to assess the OverFlowLight system’s capabilities, robustness, and long\-term viability\. It expands upon the core experimental results by investigating sensor performance under challenging operational conditions and longitudinal operational efficacy\.

### B\.1\.Ablation Study

Table 6\.Ablation study: overflow events and frame ratios across representative dates\.04\-1112\-1011\-2504\-02ConfigMetricEvtRateEvtRateEvtRateEvtRateFull OverFlowLight20054\.77%19542\.68%17636\.30%599\.38%w/o OPM20955\.54%20243\.19%20536\.82%399\.66%w/o Overflow Detection46\.47%10\.68%11\.46%00\.00%w/o Overflow Phase Construction35532\.43%31725\.54%16014\.92%5157\.08%Avg Waiting16\.3612\.847\.2337\.95Avg Zero\-Speed Vehicles14\.3811\.607\.6529\.94Table 7\.Sensitivity toα\\alphawithβ=5\\beta=5fixed\.Table 8\.Sensitivity toβ\\betawithα=5\\alpha=5fixed\.Key observations\.Disabling the overflow detector reduces detected events to near zero, confirming that the detector does not over\-trigger\. Removing OPM consistently increases overflow events, showing that safe action masking is necessary under multi\-direction simultaneous overflow\. Removing overflow\-phase construction has the largest effect at high density, where fixed base phases cannot clear blocked exits in time\. For threshold sensitivity,α=3\\alpha=3–55provides the most stable behavior, while results are almost identical forβ≥3\\beta\\geq 3, indicating that the defaultβ=5\\beta=5is robust\.

### B\.2\.Sensor Robustness in Diverse Conditions

Experimental evaluations of the OverFlowLight system’s sensor suite assess its performance and robustness when subjected to a spectrum of challenging environmental and operational conditions\.

Validation in Adverse Meteorological Conditions\.A critical aspect of real\-world efficacy is the system’s perceptual accuracy during adverse weather\. Field tests, leveraging data from 1\.5 years of continuous commercial operation, have been conducted to evaluate sensor performance during heavy precipitation \(rain, snow\), fog, and airborne particulates\.

### B\.3\.Long\-term Operational Stability

The OverFlowLight system has been in continuous commercial deployment for over 1\.5 years, providing a substantial period of real\-world operation\. Data gathered throughout this extended deployment is utilized in this section to empirically validate the system’s long\-term operational stability, reliability, and sustained performance\. This operational tenure has spanned diverse traffic patterns and seasonal variations, including winter snowfall and extended rainy periods, with the system’s consistent performance earning official recognition from local transportation authorities\.

## Appendix CMore Implementation Detail

### C\.1\.More RL Method Implementation Detail

As existing simulators cannot simulate overflow, we showcase how OverflowLight works with RL methods:

- •CoLight Series \(CoLight, Advanced\-CoLight, CosLight\):Using Graph Neural Networks for state embedding, incorporating exit\-lane data \(speed, capacity\) to detect overflow\. Extend the action space to include overflow phases for real\-time congestion mitigation\.
- •FRAP Series \(MPLight\):Expand the phase competition matrix to include overflow phases, prioritizing overflow mitigation when congestion is detected\.
- •Offline Series \(TransformerLight, DiffLight\):Integrate overflow phases in offline training to handle peak\-hour congestion, leveraging pre\-deployed TSC algorithms with overflow control for data collection\.

By integrating with OverflowLight, these methods effectively prevent gridlock in high\-traffic scenarios where traditional approaches fail\.

### C\.2\.Hardware Implementation

In our experimental environment, the perception and decision algorithm primarily utilizes the Nvidia V100 for model training\. The perception trained model is then exported as an RKNN format and deployed on a 6 TOP CPU with a tri\-core architecture for model inference\. The decision\-making algorithm is inferred on the CPU consisting of 4 Cortex\-A76 and 4 Cortex\-A55 cores\. The hyperparameters are as Table[9](https://arxiv.org/html/2606.27381#A3.T9)\.

Table 9\.Training hyperparameters
### C\.3\.Detailed Deployment Analysis

To facilitate reproducibility and real\-world adoption, we will release the perception and control modules upon acceptance at[https://github\.com/OpenTraffic\-Team](https://github.com/OpenTraffic-Team)\. The tables below summarize the deployment budget and scaling strategy used to translate the system from pilot intersections to city\-scale operation\.

Table 10\.Per\-intersection deployment cost breakdown \(excluding human\-operation cost\)\.ComponentUnit CostQuantityTotal CostModeDeployment InsightsmmWave radarUSD 400–5004USD 1,600–2,000Radar modeRobust to lighting and weather; strong night\-time and occlusion performanceCameraUSD50–1004USD200–400Both modesLow cost; can reuse existing infrastructure but is lighting\-sensitiveEdge device \(RK3588\)USD 2001USD 200Both modesLightweight inference; CPU/NPU supports on\-site perception and controlTotal——USD 2,000–2,600Radar modeHigh\-reliability deployment used in our current field systemTotal——USD400–1,000Camera\-only modeLow\-cost scalable deployment without radar

Table 11\.Perception and control deployment configurations\.Table 12\.Estimated city\-scale deployment budget under different sensing modes\.Practical scaling strategy\.The deployment cost is dominated by sensors rather than control or compute\. In a fully decentralized setup, each intersection can be equipped with a low\-cost edge device that runs 4\-camera YOLO\-based perception and RL control locally\. In a centralized setup, multiple intersections can share a server; for example, a USD 1,200 server shared across 10 intersections reduces compute cost to roughly USD 120 per site while supporting multi\-stream inference\. In practice, a hybrid sensing strategy is the most effective: radar is installed at high\-risk or congestion\-prone intersections, while standard intersections adopt camera\-only deployment\. This hybrid design achieves an estimated 40%–60% cost reduction while maintaining robustness, scalability, and real\-time performance\.

### C\.4\.Sim\-to\-Real Gap

During peak periods with heavy pedestrian crossings \(e\.g\., school dismissal\), mass pedestrian flows dynamically block vehicle movement at exits\. CityFlow fails to account for these pedestrian\-vehicle interactions\. When multiple approach lanes \(e\.g\., 5 lanes\) converge into fewer exit lanes \(e\.g\., 2 lanes\), the resulting capacity imbalance causes exit saturation\. Current simulator queue models cannot properly represent this compression effect\. Non\-motorized vehicles \(bikes/scooters\) competing for exit lane space create overflow conditions\. SUMO’s IDM car\-following model, which assumes perfect lane discipline, cannot simulate this realistic interference pattern\. These gaps motivate our real\-world validation approach\.

The sim\-to\-real problem in TSC is mainly limited by state observation\. Real\-world noise causes model instability during training\. To address this, we use high\-precision radar and compressed sensing techniques in the perception module to reduce transmission noise\. Additionally, normalization during model training helps minimize noise interference\.

In the OverFlowLight module, we use 80GHz millimeter\-radar as a cost\-effective\. By integrating event cameras and visual anonymization, we enhance privacy while capturing key pedestrian and vehicle data\. This multi\-sensor approach reduces deployment costs to just a few hundred dollars per intersection, enabling large\-scale smart traffic system adoption\.

### C\.5\.Generalization

The proposed framework exhibits strong generalization capability:

- •Intersection structures\.The system supports both3\-way \(T\-junctions\)and4\-way intersections\. The two detailed case\-study intersections are one 3\-way and one 4\-way site, and the overall 43\-intersection deployment spans all three cities\. The OPM scales naturally by remapping detected overflow directions to safe phases, independently of the intersection topology\.
- •Lane imbalance\.Real\-world intersections often exhibit heterogeneous lane distributions \(e\.g\., 1 vs\. 3 lanes\)\. Since our rules operate on lane\-level features such as vehicle count, waiting time, and speed, the framework adapts effectively to lane imbalance without requiring parameter tuning or structural modification\.
- •Algorithm compatibility\.The OPM is decoupled from the underlying control algorithm\. While DQN is used for demonstration, the same mechanism is directly applicable toPPO, FRAP, CoLight, and rule\-based controllers\. This confirms that OPM serves as ageneral policy\-level constraintrather than an algorithm\-specific component\.

### C\.6\.DQN Architecture and Training Details

The DQN module adopts a lightweight feed\-forward neural network optimized for real\-time traffic control\. The overall design is summarized as follows:

- •Input Representation \(24 dimensions\):Lane\-level vehicle count, waiting time, and occupancy signals extracted from radar and camera sensors\.
- •Network Architecture: - –Linear\(24, 64\) with ReLU activation - –Linear\(64, 32\) with ReLU activation - –Linear\(32, 2\) as the output layer for estimating Q\-values of two overflow phase actions
- •Training Dataset:An offline dataset of approximately12,000 sampleswas collected from the deployed FuzzyLight system across diverse traffic scenarios\.
- •Optimization Details:The network is trained for 100 epochs using mini\-batch updates with the Adam optimizer \(learning rate1×10−31\\times 10^\{\-3\}\) and a discount factorγ=0\.95\\gamma=0\.95\.
- •Shared\-Policy Deployment:The current DQN implementation uses one shared policy rather than a separate policy per intersection\. This is possible because lane\-level features provide a consistent input representation across heterogeneous layouts, while the OPM converts each site’s local geometry into a site\-specific feasible action subset\.
- •Safe Policy Execution via OPM:Action outputs are post\-processed by the rule\-based OPM mask to discard unsafe phases in real time\. The final action is selected as a∗=arg⁡maxa∈𝒜safe⁡Q​\(s,a\),a^\{\*\}=\\arg\\max\_\{a\\in\\mathcal\{A\}\_\{\\text\{safe\}\}\}Q\(s,a\),where𝒜safe\\mathcal\{A\}\_\{\\text\{safe\}\}is the action subset permitted by the OPM\. Inference and masking incur an average overhead of59\.83​ms59\.83\\,\\mathrm\{ms\}, leading to an overall decision latency of approximately106​ms106\\,\\mathrm\{ms\}per step\. This design achieves a practical balance betweensafety guaranteesandadaptive control\.

Similar Articles

Explainable Reinforcement Learning for Adaptive Traffic Signal Control

arXiv cs.AI

This paper proposes an explainable entity-centric reinforcement learning framework for adaptive traffic signal control, using a dual-stage attention network with multi-head cross-attention and self-attention to provide interpretable affinity matrices, while integrating deterministic action masking in PPO for safety compliance.

Online Linear Programming for Multi-Objective Routing in LLM Serving

arXiv cs.AI

This paper proposes a multi-objective optimization framework for routing in LLM serving, employing online linear programming with bid-price control to balance latency, throughput, and tail performance, and demonstrates improvements over heuristics using the Vidur simulator.