NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TraverseNet: Unifying Space and Time in Message Passing

Zonghan Wu, Da Zheng, Shirui Pan, Quan Gan, Guodong Long, George Karypis

Traffic forecasting is a notoriously difficult problem because it lives at the intersection of two complex domains: graph theory (spatial road networks) and time-series analysis. Most existing models treat these as separate challenges, stacking spatial layers on top of temporal ones. However, a new paper, "TraverseNet: Unifying Space and Time in Message Passing," argues that this separation is a fundamental flaw.

TL;DR

TraverseNet is a novel spatial-temporal graph neural network (STGNN) that treats space and time as an inseparable whole. By introducing a "message traverse layer," it allows nodes to directly attend to the historical states of their neighbors, capturing the delayed propagation of traffic patterns more effectively than traditional decoupled models.

What Problem Does This Paper Address?

The core challenge in traffic forecasting is "spatial-temporal integrity." Imagine a traffic jam on a highway. That congestion doesn't affect the next exit immediately; it takes time for vehicles to travel. Therefore, the current state of a road segment is often most influenced by what happened on an adjacent segment several minutes ago.

Existing models—whether based on RNNs, CNNs, or standard Attention mechanisms—typically process spatial and temporal dependencies separately or locally. As shown in the comparison below, these methods often only allow a node to see its neighbor's current state or a very limited window of the past through indirect stacking. This leads to information loss and fails to capture the dynamic, delayed nature of traffic flow.

Message Passing Diagrams of Different STGNNs. (a-c) show traditional decoupled approaches, while (d) illustrates the TraverseNet approach.

Methods

The authors propose TraverseNet, which is built around a specialized Message Traverse (MT) Layer. Unlike standard graph convolutions that only pass messages across space, the MT layer allows messages to "traverse" both space and time simultaneously.

The Message Traverse Layer

The MT layer uses an attention mechanism to assess the importance of a neighbor’s past states. For a node $v$ at time $t$, the layer looks at a window of past states ($Q$) for both itself and its neighbors ($u$).

Fig. 2: A demonstration of message traverse layer. The node v has two neighbors u1 and u2. Each node has four consecutive states at t1, t2, t3, t4. The message traverse layer allows the node v at a certain time step to receive information from its own previous time steps as well as its neighbors’ previous time steps.

Key features include:

  • Direct Connections: It builds explicit links from a neighbor's past to the central node's present.
  • Dynamic Weighting: It uses attention to determine which specific past time steps from which neighbors are most relevant to the current prediction.
  • Unified Architecture: The model consists of a simple stack: a pre-processing MLP, multiple MT layers (with residual connections and batch normalization), and a post-processing MLP.
Fig. 3: The model framework of TraverseNet. The TraverseNet mainly consists of three parts, the pre-processing layer, the message traverse layer, and the post-processing layer. The input is a sequence of node feature matrix Xt1, Xt2, · · · , Xtp. The pre-processing MLP layer projects the input feature matrices to a latent feature space. The message traverse layer propagates information across space and time. The post-processing layer projects the nodes’ hidden states to the output space.

Datasets

The model was evaluated on three large-scale real-world traffic datasets from the Caltrans Performance Measurement System (PeMS) in California:

  • PEMS-03: 358 sensors, focusing on traffic flow.
  • PEMS-04: 307 sensors, including flow, speed, and occupancy.
  • PEMS-08: 170 sensors, including flow, speed, and occupancy.

These datasets are standard benchmarks in the field, representing complex road networks with five-minute sampling rates.

Key Insights and Ideas

  • Spatial-Temporal Integrity: The authors demonstrate that a node's current state is often more correlated with a neighbor's state from several steps ago than its current state. Decoupling these dimensions in a model ignores this physical reality.
  • Shortening the Message Path: By allowing direct "traversal" across time steps, the model reduces the number of layers needed to capture long-range dependencies.
  • Heterogeneous Graph Representation: To implement this efficiently, the authors treat each node at each time step as a unique node in a large, sparse heterogeneous graph. This allows them to leverage efficient graph libraries like DGL.

Key Results

TraverseNet consistently outperformed or matched state-of-the-art baselines like DCRNN, STGCN, and Graph WaveNet.

  • Accuracy: On PEMS-03 and PEMS-04, TraverseNet achieved the lowest Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) for traffic flow prediction.
  • Ablation Success: The ablation studies confirmed that "spatial-temporal traversing" is significantly more effective than interleaving spatial and temporal attention separately.
  • Case Study Validation: A heatmap of attention scores revealed that the model correctly identified a 6-step (30-minute) latency between two neighboring nodes in the PEMS-08 dataset, proving it learns the physical propagation of traffic.

Limitations and Future Work

While TraverseNet is powerful, the authors note that its performance is somewhat dependent on the strength of the spatial signal in the data. On the PEMS-08 dataset, where spatial signals are weaker, Graph WaveNet (which has a very strong temporal component) performed slightly better.

For future work, the authors plan to:

  1. Improve Efficiency: Refine how explicit edge relationships are handled to further speed up the message-traversing process.
  2. Dynamic Graphs: Explore how the model handles road networks that change over time (e.g., due to construction or accidents).

Summary updated

BibTeX
@article{wu2024traversenet,
  author = {Zonghan Wu and Da Zheng and Shirui Pan and Quan Gan and Guodong Long and George Karypis},
  title = {{TraverseNet: Unifying Space and Time in Message Passing}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2024},
  doi = {10.1109/tnnls.2022.3186103},
}
Figure