FitLight: Federated Imitation Learning for Plug-and-Play Autonomous Traffic Signal Control

Yutong Ye, Yingbo Zhou, Xiao Du, Zhusen Liu, Hao Zhou, Li Sun, Xiang Lian, Mingsong Chen · Submission to ICLR 2026 · Withdrawn

TL;DR

FitLight is a federated imitation learning framework that lets multi-intersection traffic signal controllers "plug-and-play" without expensive trial-and-error exploration or offline pre-training. By combining real-time imitation of an online heuristic expert with reinforcement learning, FitLight achieves high-quality traffic policies in the very first episode and converges within just two episodes, all while fitting on microcontrollers with under 16 KB of memory.

What Problem Does This Paper Address?

Reinforcement Learning (RL) has shown great promise for Traffic Signal Control (TSC), but deploying it in the physical world faces three major hurdles:

  1. High training cost & the "cold start" problem: RL agents rely on trial-and-error exploration. Starting from random initialization, early training policies cause catastrophic traffic jams.
  2. Poor generalizability: Agents overfit to specific intersections and traffic distributions, meaning a model trained on one road network rarely transfers cleanly to another. While imitation learning can bootstrap agents, existing approaches depend on offline pre-collected datasets or heavy pre-training phases.
  3. Severe hardware constraints: Traffic intersection controllers often run on low-power microcontrollers with tiny memory footprints (e.g., 16 KB RAM / 32 KB ROM), which cannot support typical deep RL architectures.

FitLight tackles these challenges by introducing a federated imitation learning framework that enables immediate, robust deployment across heterogeneous intersection controllers without any offline pre-training.

Methods

FitLight adopts a cloud-edge architecture where edge nodes (intersections) control local signals, and a cloud server coordinates collaborative learning:

                  +---------------------------+
                  |       Cloud Server        |
                  | Heterogeneous Aggregation |
                  +-------------+-------------+
                                |  Grads / Pruned Masks
          +---------------------+---------------------+
          |                                           |
   [Edge Node 1]                               [Edge Node n]
  +---------------+                           +---------------+
  | PPO Actor/    |                           | PPO Actor/    |
  | Critic Agents |                           | Critic Agents |
  |       ^       |                           |       ^       |
  | (RL + Imit.)  |                           | (RL + Imit.)  |
  +-------+-------+                           +-------+-------+
          | Labels                                    | Labels
   [MaxHP Heuristic]                           [MaxHP Heuristic]
  • Hybrid Pressure (HP): Rather than only counting queue lengths (standard MaxPressure), FitLight defines a vehicle-level hybrid pressure metric: $$\text{hp}_{\text{veh}} = \log\left(1 + \frac{l_{\text{max}} - d}{l_{\text{max}}} + \frac{v_{\text{max}} - v}{v_{\text{max}}} + \frac{\text{wt}_{\text{veh}}}{\text{dt}_{\text{veh}}}\right)$$ This considers distance to intersection ($d$), current velocity ($v$), and the ratio of cumulative waiting time to travel time ($\text{wt}_{\text{veh}} / \text{dt}_{\text{veh}}$). Directed road and intersection pressures are calculated from upstream and downstream pressure differences.

  • Real-Time Imitation to RL Hand-off: Each intersection runs a PPO agent alongside MaxHP, an online heuristic expert that greedily serves the phase with the highest hybrid pressure. The agent minimizes a blended loss: $$\mathcal{L} = \alpha(\mathcal{L}_C + \mathcal{L}_A) + (1 - \alpha)\mathcal{L}_I$$ where $\mathcal{L}_I$ is cross-entropy imitation loss supervised by MaxHP decisions, and $\alpha$ increases linearly over training episodes to seamlessly shift the agent from imitation to reinforcement learning.

  • Structured Pruning & Heterogeneous Federated Aggregation: Edge networks are pruned at initialization using layer-wise sparsity masks ($M \in \{0, 1\}^{|\theta|}$). The cloud aggregates gradients from subnetworks of varying sizes via a mask-weighted average: $$\nabla \mathcal{L} = \frac{\sum_{i=1}^{N} \nabla \mathcal{L}_i}{\sum_{i=1}^{N} M_i}$$

Datasets

The authors evaluated FitLight using the open-source CityFlow simulator across nine multi-intersection benchmark networks:

  • 4 Synthetic Datasets: Syn1 ($1\times3$), Syn2 ($2\times2$), Syn3 ($3\times3$), and Syn4 ($4\times4$) grids, with traffic arrivals sampled from Gaussian distributions at 500 vehicles/hour per lane.
  • 5 Real-World Datasets: Real vehicle surveillance data from China:
  • Hangzhou1 & Hangzhou2: 16 intersections in a $4\times4$ grid (Gudang sub-district).
  • Jinan1, Jinan2, & Jinan3: 12 intersections in a $3\times4$ grid (Dongfeng sub-district).

Key Insights and Ideas

  • No pre-collected expert data needed: Prior imitation learning methods require human or simulated demonstrations gathered in advance. FitLight runs its expert heuristic (MaxHP) online concurrently with the agent, acting as an on-the-fly teacher.
  • The power of comprehensive pressure modeling: Traditional MaxPressure assumes vehicle count is an adequate proxy for congestion. Incorporating individual vehicle kinematics and waiting-to-driving ratios produces a heuristic strong enough to jumpstart training with near-optimal initial policies.
  • Mask-aware federated averaging: By tracking which neurons are pruned at each intersection, the server pools updates only across active parameters, allowing intersections with different compute limits to collaboratively improve a shared base model.

Key Results

  • Instant Convergence (Jumpstart Performance): Across all 9 datasets, FitLight reached convergence within 1 to 2 episodes, compared to 30–160+ episodes required by baseline RL methods (e.g., PressLight, FedLight, A2C).
  • Superior Travel Times: FitLight outperformed all constant-duration baselines (reducing average travel time by up to tens of seconds over standard PPO and FedLight). It even came within 3.51% of advanced dynamic-duration methods (FairLight, IPDALight) despite operating with fixed 10-second phase cycles.
  • Edge Feasibility:
  • Model size: Pruned to 14.83 KB (compatible with 16 KB RAM / 32 KB ROM devices).
  • Latency: Action inference took 0.05 ms; a 5-sample training batch update took 51.67 ms on a Raspberry Pi 4B.
  • Bandwidth: Parameter exchange required only 2.09 MB/hour per intersection.

Limitations and Future Work

  • Fixed Phase Durations: FitLight was evaluated using fixed 10-second phase durations. Dynamic-duration approaches still achieved slightly lower travel times on certain networks. Integrating variable phase lengths into the FIL architecture remains an open step.
  • Grid Regularity: Experiments assumed standard 4-way intersections with uniform lane movement layouts (left, straight, right). Evaluating performance on complex, irregular real-world topologies with non-standard lane turn assignments was not detailed.
  • Heuristic Ceiling: The agent's initial trajectory relies on the quality of the MaxHP heuristic. In edge-case traffic scenarios where MaxHP might make suboptimal decisions, the imitation phase could temporarily bias the policy.

Summary updated

Abstract

Although Reinforcement Learning (RL)-based Traffic Signal Control (TSC) methods have been extensively studied, their practical applications still raise some serious issues such as high learning cost and poor generalizability. This is because the ``trial-and-error'' training style makes RL agents extremely dependent on the specific traffic environment, which also requires a long convergence time. To address these issues, we propose a novel Federated Imitation Learning (FIL)-based framework for multi-intersection TSC, named FitLight, which allows RL agents to plug-and-play for any traffic environment without additional pre-training cost. Unlike existing imitation learning approaches that rely on pre-training RL agents with demonstrations, FitLight allows real-time imitation learning and seamless transition to reinforcement learning. Due to our proposed knowledge-sharing mechanism and novel hybrid pressure-based agent design, RL agents can quickly find a best control policy with only a few episodes. Moreover, for resource-constrained TSC scenarios, FitLight supports model pruning and heterogeneous model aggregation, such that RL agents can work on a micro-controller with merely 16{\it KB} RAM and 32{\it KB} ROM. Extensive experiments demonstrate that, compared to state-of-the-art methods, FitLight not only provides a superior starting point but also converges to a better final solution on both real-world and synthetic datasets, even under extreme resource limitations.
BibTeX
@misc{ye2025fitlight,
  author = {Yutong Ye and Yingbo Zhou and Xiao Du and Zhusen Liu and Hao Zhou and Li Sun and Xiang Lian and Mingsong Chen},
  title = {{FitLight: Federated Imitation Learning for Plug-and-Play Autonomous Traffic Signal Control}},
  year = {2025},
  eprint = {2502.11937},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.11937},
}
Figure