Delayed Propagation Transformer: A Universal Computation Engine towards Practical Control in Cyber-Physical Systems

Wenqing Zheng, Qiangqiang Guo, Hao Yang, Peihao Wang, Zhangyang Wang

TL;DR

Controlling multi-agent Cyber-Physical Systems (CPS), like city-wide traffic lights, is notoriously difficult due to the physical delays in information propagation and the sheer scale of the systems. This paper introduces the Delayed Propagation Transformer (DePT), a novel architecture that bakes a "light-cone" spatial-temporal prior into its attention mechanism to respect physical speed limits. By explicitly modeling these physical constraints, DePT achieves state-of-the-art performance and faster convergence in complex, real-world traffic signal control tasks.

What Problem Does This Paper Address?

In Cyber-Physical Systems (CPS) like intelligent transportation networks or power grids, multiple agents (e.g., traffic lights) must cooperate. Historically, there are two ways to control them:

  1. Decentralized control: Each agent only looks at its local environment. Because it cannot see the whole system, it suffers from "non-Markovian" states—meaning it gets blindsided by delayed effects propagating from distant agents.
  2. Centralized control: A single controller looks at the whole system. While this solves the visibility issue, traditional centralized models struggle to converge because the state and action spaces grow exponentially with the number of agents.

Transformers are a natural fit for centralized control because they can process global information without the state-space explosion. However, standard transformers lack an understanding of physics. They do not inherently know that a traffic jam three miles away takes time to physically propagate to the current intersection. Furthermore, transformers are notoriously data-hungry and hard to train from scratch in noisy Reinforcement Learning (RL) environments.

Methods

The authors propose the Delayed Propagation Transformer (DePT), which modifies the standard transformer self-attention mechanism to include physical inductive biases.

Instead of letting the transformer attend to any node at any time freely, DePT introduces a cone-shaped spatial-temporal prior. Inspired by the "light cone" in relativity, this prior enforces the idea that information travels at a limited physical speed.

Event propagation cone shape illustrating the spatial-temporal prior

The attention mechanism is calculated as a combination of several physically grounded components:

  • ConeDecay: A function that penalizes attention between two nodes if the time difference is too short for information to have physically traveled between them at a given speed $v$.
  • TimeDecay: A function that reduces attention to events in the distant past.
  • Look-Up-Table (LUT): A learned embedding to capture static, location-associated patterns between specific pairs of nodes.
  • Traditional Attention: The standard query-key transformer attention, acting as a residual component.
DePT architecture detailing the integration of physical constraints into the attention mechanism

To overcome the notoriously slow convergence of transformers in RL, the authors pre-fit these physical priors using simple heuristics and system statistics before training. They also use Imitation Learning (IL)—having the transformer mimic a simpler decentralized controller—to warm up the model before letting it learn independently via Q-learning.

Datasets

The model is evaluated on network-wide urban traffic signal control (TSC) using the Cityflow simulator. The datasets include:

  • Synthetic Grids: $6 \times 6$ grid networks with both bi-directional (Grid-Bi) and uni-directional (Grid-Uni) traffic flows.
  • Real-World Network: A $28 \times 7$ intersection grid of the Upper East Side of Manhattan, New York, with traffic flows extracted from real open-source taxi data.

Key Insights and Ideas

  • Physics as an Inductive Bias: Standard transformers are too flexible for their own good in physical simulations. Constraining attention to a physical "cone of influence" prevents the model from hallucinating non-causal relationships and drastically speeds up learning.
  • Asymmetric Attention Emerges Naturally: Visualizing DePT's learned attention reveals an asymmetry: the model learns that the "relative future" (outwards direction of the cone) decays faster than the "relative past." This perfectly aligns with the underlying Poisson distribution of arriving traffic flows, proving the model learns interpretable, physically grounded patterns.
  • Pre-fitting is a Cheat Code for RL Transformers: Initializing a transformer from scratch in a multi-agent RL setting often fails. Pre-fitting the physical priors using basic CPU-computed statistics acts as a massive shortcut, allowing the heavy transformer architecture to achieve stable and rapid convergence.

Key Results

DePT was compared against traditional traffic methods (Fixed-time, Max-pressure) and state-of-the-art graph neural network RL methods (GTN, Co-light).

  • Superior Performance: DePT consistently achieved the lowest Average Travel Time (AvgTT) and Average Queue Length across all datasets.
  • Real-World Scale: On the complex New York dataset, DePT achieved an AvgTT of 1555.47 seconds, significantly beating the SOTA Co-light baseline (1605.56 seconds).
  • Ablation Importance: Removing the ConeDecay prior caused the model to fail to converge properly (AvgTT ballooned from 184.9 to 269.3 on the Grid-Bi dataset). A traditional transformer without any of these physical priors failed entirely.

Limitations and Future Work

Limitations: The authors acknowledge that DePT relies heavily on Imitation Learning to warm up. They note that without this initial imitation phase, the convergence rate of the transformer in this RL setting is "prohibitively slow."

Future Work: Because DePT is designed around the universal constraint of limited physical propagation speed, the authors suggest it is ready to be plugged into a wide variety of other Cyber-Physical Systems. Promising future applications include electrical power grids, industrial control systems, and e-commerce delivery networks, particularly in scenarios where sensor coverage is limited and a global view is required.

Summary updated

BibTeX
@inproceedings{zheng2021delayed,
  author = {Wenqing Zheng and Qiangqiang Guo and Hao Yang and Peihao Wang and Zhangyang Wang},
  title = {{Delayed Propagation Transformer: A Universal Computation Engine towards Practical Control in Cyber-Physical Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=OphCbinp1iQ},
}
Figure