Dual-branch Spatial-Temporal Self-supervised Representation for Enhanced Road Network Learning

Qinghong Guo, Yu Wang, Ji Cao, Tongya Zheng, Junshu Dai, Bingde Hu, Shunyu Liu, Canghong Jin · DOI

Introduction

Road Network Representation Learning (RNRL) is a critical foundation for modern intelligent transportation systems, powering applications such as travel time estimation, speed inference, and route optimization. While Graph Neural Networks (GNNs) have become the standard for modeling road segments, they often struggle to capture the full complexity of urban environments. Researchers have introduced DST, a dual-branch self-supervised framework designed to address these limitations by simultaneously modeling intricate spatial structures and dynamic traffic patterns.

The Challenge of Road Network Learning

Standard GNN approaches face two primary hurdles in urban modeling: spatial heterogeneity and temporal dynamics.

  1. Spatial Heterogeneity: Nearby roads are not always functionally similar, while distant roads (e.g., residential streets in different districts) may share identical roles. Traditional GNNs tend to "smooth" these differences, leading to indistinguishable representations for neighboring nodes.
  2. Temporal Dynamics: A road's identity is intrinsically linked to how traffic moves on it over time. A highway's characteristics during a Monday morning rush hour differ vastly from its state on a Sunday afternoon.
Spatial heterogeneity (a) and temporal dynamics (b) illustrate the complexity of road network modeling.

The DST Framework Architecture

To overcome these challenges, the DST framework employs a dual-branch architecture that decouples spatial and temporal learning before fusing them into a comprehensive road embedding.

1. The Spatial Branch

Instead of relying solely on physical proximity, the spatial branch utilizes Mix-hop Transition Matrices derived from actual vehicle trajectories. This captures functional connectivity across multiple "hops" in the network. Furthermore, the model constructs Semantic Hypergraphs based on three criteria: functional regions, road types, and one-way connectivity. A contrastive learning objective between a Graph Attention Network (GAT) and a Hypergraph Neural Network (HGNN+) ensures the embeddings capture both local topology and high-order functional relationships.

2. The Temporal Branch

To capture the "pulse" of the city, this branch treats traffic volume as a sequence. It utilizes a Causal Transformer to perform next-token prediction on traffic dynamics. The branch is trained on a dual-task objective: predicting future traffic volume (regression) and distinguishing between weekday and weekend patterns (classification). This ensures the resulting embeddings are deeply aware of time-sensitive traffic behavior.

The DST framework architecture, featuring hyperedge construction, spatial semantic graphs, and temporal dynamics branches.

Key Results and Insights

The framework was evaluated on large-scale datasets from Beijing, Porto, and Xi’an, consistently outperforming high-profile baselines like Node2Vec, GCN, and TrajRNE.

  • Performance Gains: DST significantly reduced Mean Absolute Error (MAE) in speed inference tasks. In destination prediction for the Beijing dataset, it achieved an ACC@1 of 0.7288, a substantial improvement over the next best baseline (0.6728).
  • Zero-Shot Transferability: A model trained on Beijing data performed remarkably well on Porto without retraining. This suggests that DST learns universal "laws" of road networks and traffic behavior rather than just memorizing local map geometry.
  • Efficiency: Despite its dual-branch complexity, DST’s training time remains lower than many joint-learning models because it leverages self-supervised pre-training more effectively.

Conclusion

By treating trajectories as the "connective tissue" of the city and using hypergraphs to defeat over-smoothing, DST provides a robust framework for urban representation. Future work aims to extend this model to emergency forecasting, testing how these representations adapt to extreme events like storms where normal traffic patterns are disrupted.

Summary updated

BibTeX
@inproceedings{guo2026dual,
  author = {Qinghong Guo and Yu Wang and Ji Cao and Tongya Zheng and Junshu Dai and Bingde Hu and Shunyu Liu and Canghong Jin},
  title = {{Dual-branch Spatial-Temporal Self-supervised Representation for Enhanced Road Network Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  url = {https://openreview.net/forum?id=YTvToVeoxW},
}
Figure