SignalClaw: LLM-Guided Evolutionary Synthesis of Interpretable Traffic Signal Control Skills

Da LeiBusiness SchoolSichuan UniversityChengdu, China, Feng XiaoBusiness SchoolSichuan UniversityChengdu, China [email protected] Lu LiBusiness SchoolSichuan UniversityChengdu, ChinaYuzhan LiuBusiness SchoolSichuan UniversityChengdu, China · 2026

Read SignalClaw: LLM-Guided Evolutionary Synthesis of Interpretable Traffic Signal Control Skills by Da LeiBusiness SchoolSichuan UniversityChengdu, China, Feng XiaoBusiness SchoolSichuan UniversityChengdu, China [email protected] Lu LiBusiness SchoolSichuan UniversityChengdu, ChinaYuzhan LiuBusiness SchoolSichuan UniversityChengdu, China (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-05535.txt.

Introduction

Lei and three colleagues evolve readable traffic-signal strategies with language models instead of opaque neural policies or rigid program languages. Each SignalClaw skill carries rationale, selection guidance, and runnable code, refined by simulation feedback and composed by an event dispatcher for emergencies and transit priority. In SUMO tests it nearly matches the best routine delays and beats MaxPressure and DQN sharply on emergency and transit delays.

Catalog record

CREATORDa LeiBusiness SchoolSichuan UniversityChengdu, China, Feng XiaoBusiness SchoolSichuan UniversityChengdu, China [email protected] Lu LiBusiness SchoolSichuan UniversityChengdu, ChinaYuzhan LiuBusiness SchoolSichuan UniversityChengdu, China
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE106342
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2604.05535

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

SignalClaw: LLM-Guided Evolutionary Synthesis of Interpretable Traffic Signal Control Skills Da LeiBusiness SchoolSichuan UniversityChengdu, China, Feng XiaoBusiness SchoolSichuan UniversityChengdu, China [email protected] Lu LiBusiness SchoolSichuan UniversityChengdu, ChinaYuzhan LiuBusiness SchoolSichuan UniversityChengdu, China Abstract Traffic signal control (TSC) requires strategies that are both effective and interpretable for real-world deployment, yet reinforcement learning produces opaque neural policies while program synthesis methods rely on restrictive domain-specific languages. We present SignalClaw , a framework that uses large language models (LLMs) as evolutionary skill generators to synthesize and iteratively improve interpretable control skills for adaptive TSC. Each evolved skill is a structured artifact comprising a strategy rationale, selection guidance, and executable code—where the LLM articulates its reasoning alongside the implementation, producing human-inspectable, self-documenting control policies. At each generation, structured evolution signals—extracted from traffic simulation metrics including queue length percentiles, delay trends, and stagnation patterns—are translated into natural-language feedback that directs the LLM toward specific skill improvements. Beyond routine traffic, SignalClaw introduces event-driven compositional skill evolution : an event detection module identifies real-time traffic events (emergency vehicles, transit priority, incidents, congestion) via TraCI, and a priority dispatcher selects the appropriate event-specialized skill. Each event skill is independently evolved in dispatcher-context mode on dedicated scenarios, and the priority chain (emergency > > incident > > transit > > congestion > > normal) composes them at runtime without retraining. We evaluate SignalClaw on six routine SUMO scenarios (4 × \times 4 arterial grid) and six event-injected scenarios against four baselines. On routine scenarios, SignalClaw achieves average delay of 7.8–9.2 s across training and validation scenarios, within 3–10% of the best method per scenario, with consistently low variance across 5 SUMO random seeds (0.4–0.8 s) compared to DQN (std up to 1.5 s). Under the event-aware detector-dispatch architecture—where SignalClaw’s event-specialized skills are compared as an end-to-end system against event-blind baselines—SignalClaw achieves the lowest emergency vehicle delay (11.2–18.5 s vs. 42.3–72.3 s for MaxPressure and 78.5–95.3 s for DQN) on all emergency scenarios, and the lowest average person-delay (9.8–11.5 s vs. 38.7–45.2 s for MaxPressure) on transit scenarios. On the mixed-event scenario, the priority dispatcher correctly composes independently evolved skills: emergency delay is 18.5 s (best among all methods) while maintaining stable overall performance (average delay 13.2 s). Analysis of the evolved skills reveals a progression from simple linear scoring rules to conditional strategies with saturation detection and multi-feature interactions—all expressed as interpretable artifacts that traffic engineers can directly inspect, understand, and modify. 1 1 footnotetext: Corresponding author. 2 2 footnotetext: Equal contribution. 1 Introduction Adaptive traffic signal control sits at the intersection of urban infrastructure and real-time optimization: millions of intersections worldwide operate under fixed-timing plans or simple actuated controllers, leaving substantial room for data-driven improvement ( Wei et al. 2018 ) . Deep reinforcement learning (RL) has made impressive strides on this problem ( Zheng et al. 2019a ; Wei et al. 2019a ) , but the resulting neural policies are opaque—a critical barrier when transportation agencies need to audit, certify, and manually override control logic during incidents or system failures. A further limitation of existing methods—both RL and programmatic—is their blindness to traffic events . Real-world intersections routinely face emergency vehicle preemption (EVP), transit signal priority (TSP), traffic incidents, and severe congestion. These events are rare yet safety-critical: a delayed ambulance costs lives. RL cannot learn reliable event responses from such sparse samples, and existing programmatic synthesis methods ( Gu et al. 2024 ) operate over DSLs whose feature sets do not include event-context variables—while such DSLs could in principle be extended, no existing work has done so, and the extension cost is non-trivial since event handling requires conditional control flow beyond the arithmetic expressions these DSLs support. Program synthesis offers an alternative path for routine traffic. PI-Light ( Gu et al. 2024 ) demonstrated that Monte Carlo Tree Search (MCTS) can discover interpretable programmatic strategies within a hand-crafted domain-specific language (DSL), matching or exceeding RL performance on standard benchmarks. However, MCTS-based search is limited to the predefined operators and expression templates in the DSL, constraining the structural diversity of discovered strategies. Recent work on LLM-guided program evolution—FunSearch ( Romera-Paredes et al. 2024 ) , AlphaEvolve ( Novikov et al. 2025 ) , and a recent ARC-AGI case study on self-improving evolutionary program synthesis ( Pourcel et al. 2025 ) —has shown that large language models can serve as flexible mutation operators that generate structurally diverse code. These systems operate on general-purpose programming tasks (mathematical optimization, algorithm design) and do not incorporate domain-specific feedback from the evaluation environment. We propose SignalClaw , a framework that combines LLM-driven skill generation with domain-aware evolutionary optimization for traffic signal control. The key idea is signal-driven evolution : at each generation, traffic simulation metrics are distilled into structured evolution signals (e.g., “queue length exceeds historical 75th percentile,” “consecutive stagnation detected”), which are translated into natural-language prompts that steer the LLM toward targeted skill improvements. Unlike prior work that treats LLM-guided evolution as pure code synthesis, SignalClaw evolves skills —structured artifacts that encompass a strategy description capturing the control rationale, selection guidance specifying the decision logic, and executable code implementing the phase scoring function. This richer representation ensures that the evolved artifacts are not opaque code fragments but self-documenting control policies that a traffic engineer can read, reason about, and modify. SignalClaw further introduces event-driven compositional skill evolution : an event detection module identifies real-time traffic events (emergency vehicles, buses, incidents, congestion) via SUMO’s TraCI interface, and a hardcoded priority dispatcher selects the appropriate event-specialized skill. Each event skill is independently evolved on dedicated event-injected scenarios, and the priority chain composes them at runtime without retraining—enabling zero-shot response to event combinations unseen during evolution. Our contributions are as follows: 1. SignalClaw framework : an LLM-guided skill evolution framework for traffic signal control with structured traffic feedback and event-aware composition. Signal-driven prompting translates quantitative traffic metrics into targeted natural-language guidance, enabling semantically meaningful skill modifications rather than blind search. 2. Self-documenting skill representation : we adopt a structured skill representation where the LLM produces a strategy rationale and selection guidance alongside executable code. While fitness is determined solely by code execution, the accompanying documentation makes each evolved artifact self-documenting—enabling traffic engineers to understand the intent behind a strategy without reverse-engineering the code. Ablation experiments show that requiring the LLM to articulate its reasoning improves search efficiency ( Section 4.9 ). 3. Event-driven compositional architecture : we introduce event detection via TraCI, a priority dispatcher with deterministic event ordering (emergency > incident > transit > congestion > normal), and independently evolved event-specialized skills via dispatcher-context evolution —where each event skill is evolved within the full dispatch pipeline. 4. Empirical evaluation on routine and event scenarios : on six routine SUMO scenarios, SignalClaw achieves 9.6% fitness improvement over 30 generations of evolution, with average delay of 7.8–9.2 s across training and validation scenarios (within 3–10% of the best method per scenario). On six event-injected scenarios, evaluated as an end-to-end system against event-blind baselines, SignalClaw achieves the lowest emergency vehicle delay (11.2–18.5 s, a 65–85% reduction over MaxPressure) and the lowest bus person-delay (9.8–11.5 s, a \sim 75% reduction), while maintaining competitive overall traffic performance. Across 30 generations of evolution, SignalClaw discovers skills that progress from simple linear

Read the complete text