T2SG: Traffic Topology Scene Graph for Topology Reasoning in Autonomous Driving

Changsheng Lv, Mengshi Qi, Liang Liu, Huadong Ma

Introduction

Autonomous vehicles must do more than just detect objects; they must understand the underlying logic of the road. This involves deciphering the topology of the environment—knowing which lanes connect to others and which traffic signs or signals govern specific paths. Traditional methods often detect road elements in isolation, failing to capture the complex web of relationships necessary for safe navigation in intricate scenarios like multi-way intersections.

The researchers introduce T²SG (Traffic Topology Scene Graph), a unified representation that explicitly models these relationships. By treating the road network as an explainable scene graph, the system can better interpret the "control and guide" logic inherent in traffic rules.

Overview of the T2SG concept, illustrating the transition from raw camera views to a structured traffic topology scene graph.

Methodology: The TopoFormer Framework

To generate the T²SG, the authors developed TopoFormer, a one-stage transformer-based architecture. TopoFormer processes multi-view camera images to detect lane centerlines and subsequently weaves them into a comprehensive scene graph using two innovative components:

1. Lane Aggregation Layer (LAL)

Standard self-attention mechanisms often struggle to prioritize relevant spatial features. The LAL introduces Geometry-guided Self-Attention (GSA), which utilizes a Spatial Proximity Matrix (SPM). By calculating the L1 distance between lane endpoints, the model gains a geometric prior: lanes that are physically adjacent are more likely to be topologically connected.

2. Counterfactual Intervention Layer (CIL)

Drawing from causal inference, the CIL helps the model learn robust road structures. It calculates the Total Indirect Effect (TIE) by comparing standard predictions against a "counterfactual" scenario where certain attention weights are zeroed out. This process encourages the model to focus on critical structural features, enhancing both the accuracy and explainability of the predicted topology.

The TopoFormer architecture, detailing the integration of multi-view image processing with specialized Lane Aggregation and Counterfactual Intervention layers.

Experimental Results

The framework was rigorously evaluated on the OpenLane-V2 benchmark, a leading dataset for scene structure and topology reasoning. TopoFormer achieved a new state-of-the-art OpenLane-V2 Score (OLS) of 46.3 on Subset A, significantly outperforming previous models like TopoNet (39.8).

Key performance highlights include:

  • Topology Reasoning: In lane-to-lane connectivity tasks ($TOP_{ll}$), TopoFormer scored 24.1, more than doubling the performance of the previous state-of-the-art (10.9).
  • Ablation Insights: The inclusion of the Spatial Proximity Matrix (SPM) provided a substantial boost, confirming that geometric priors are essential for learning road connectivity.
  • Causal Logic: The "CIL-Zero" variant proved highly effective at forcing the model to learn the underlying logic of road structures rather than just memorizing visual patterns.

Conclusion and Future Directions

T²SG and the TopoFormer architecture represent a significant advancement in autonomous driving perception. By unifying lane detection and relationship modeling into a single, causally-aware graph, the system achieves superior reasoning in complex environments.

Future work will focus on reducing the dependency on initial lane detection accuracy and optimizing the transformer architecture for real-time deployment on edge hardware. Additionally, the researchers aim to integrate dynamic objects—such as vehicles and pedestrians—into the unified scene graph to support full-stack autonomous navigation.

Summary updated

BibTeX
@inproceedings{lv2025t,
  author = {Changsheng Lv and Mengshi Qi and Liang Liu and Huadong Ma},
  title = {{T2SG: Traffic Topology Scene Graph for Topology Reasoning in Autonomous Driving}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01603},
}
Figure