Abstract
Traffic signal control is a critical component of urban infrastructure management. While adaptive systems exist, fixed-time control remains prevalent due to its stability and low cost, yet it often relies on outdated, hand-crafted formulas like Webster’s method. This paper introduces EvolveSignal, an AI-powered coding agent that leverages Large Language Models (LLMs) to automatically discover and evolve Python-based traffic signal control algorithms. By integrating LLMs into an evolutionary loop with simulation-in-the-loop evaluation, EvolveSignal discovers interpretable control logic that significantly outperforms traditional methods. Experimental results in the SUMO simulator demonstrate a 20.1% reduction in average vehicle delay and a 47.1% reduction in stops compared to the industry-standard Webster baseline.
Introduction
Traffic congestion remains a persistent global challenge. Traffic signal control (TSC) strategies generally fall into two categories: sensor-heavy adaptive control and pre-scheduled fixed-time control. Despite the rise of AI in traffic engineering, fixed-time control still largely depends on formulas developed decades ago, such as Webster’s method (1958). These legacy rules often fail to optimize for modern, high-volume, or asymmetrical traffic patterns. EvolveSignal addresses this by treating algorithm discovery as a program synthesis problem, using LLMs to "evolve" better Python-based control logic.
Methods
The EvolveSignal framework operates as an iterative evolutionary system. It begins with a baseline implementation of Webster’s method and proceeds through a cycle of mutation and selection.
- Program Synthesis: LLMs (e.g., GPT-4o, DeepSeek-v3) act as the mutation engine, proposing logical improvements to the Python code.
- Simulation-in-the-Loop: Each candidate program is evaluated using the SUMO (Simulation of Urban MObility) simulator to assess its real-world performance.
- MAP-Elites: A program database maintains a diverse set of high-performing algorithms, preventing premature convergence.
- Interpretability: Unlike "black-box" neural networks, the output is human-readable Python code, allowing for engineering audit and refinement.
Experimental Setup
The agent was tested on a standard four-leg intersection within SUMO across three heavy-traffic scenarios: Balanced flow (S1), heavy North-South flow (S2), and complex asymmetrical flow (S3). The primary benchmark for comparison was the classic Webster’s Method.
Results and Discussion
After 300 iterations, the discovered algorithms demonstrated substantial improvements across all key metrics. The agent learned to relax restrictive cycle length constraints and adjusted "Shared Lane Factors" to better account for through-right turn interactions. Notably, the agent discovered synergistic modifications—such as combining right-turn demand calculations with extended cycle lengths—that provided performance boosts not achievable by individual changes alone.
The discovered program reduced average delay by 20.1% and vehicle stops by 47.1%. Furthermore, the agent implicitly learned to respect safety constraints like "minimum green" times through iterative feedback from failed simulations.
Conclusion
EvolveSignal demonstrates the potential of LLM-powered program synthesis to modernize infrastructure management. By automating the discovery of interpretable, high-performance control logic, the framework bridges the gap between traditional engineering and modern AI. Future work will focus on extending the system to multi-intersection arterial coordination and more complex junction geometries.
Summary updated