In autonomous driving, understanding a traffic scene isn’t just about detecting lanes—it’s about grasping how lanes connect, why they are structured the way they are, and how traffic signals govern their use. Can current HD mapping methods build a coherent, structured representation that captures this logic? Or do they merely trace geometry without reasoning? We investigate these questions by introducing T2SG (Traffic Topology Scene Graph), a unified scene graph that explicitly models lane topology and signal-guided relationships,and propose TopoFormer, a one-stage transformer that generates such graphs through geometric aggregation and counterfactual structural reasoning. By evaluating on OpenLane-V2, we show not only that T²SG enables more accurate and explainable HD maps, but also that it significantly enhances downstream spatial reasoning for autonomous systems.
2025-03-11: Our paperT2SGis accepted by CVPR 2025 as Poster! See u in Nashville!
Evaluation Setups: We report comparative results between our model and the baselines on two tasks: traffic topology scene graph generation and OpenLaneV2.
Our experiments are conducted on OpenLane-V2. Please download the dataset from the official OpenLane-V2 release, create a data/ folder under the project root, and place the dataset inside it (e.g., data/OpenLane-V2/).
- Linux
- Python 3.8.20
- NVIDIA GPU + CUDA 11.1
- PyTorch 1.9.1+cu111
- torchvision 0.10.1+cu111
- mmcv-full 1.5.2, mmdet 2.26.0, mmdet3d 1.0.0rc6
- openlanev2 1.1.0
Set the environment variables before running the command.
export TORCH_HOME=work_dirs/
export PYTHONPATH=$PYTHONPATH:"./"Stage 1
./tools/dist_train.sh <WORK_DIR> 8Stage 2(finetune)
./tools/dist_train_finetune.sh <WORK_DIR> 8./tools/dist_test.sh <WORK_DIR> 8Note: <WORK_DIR>: path to save logs and checkpoints (e.g., work_dirs/exp_01)
Our code is build upon TopoNet. We acknowledge their team for open-sourcing their implementation.
If you find T2SG is useful in your research or applications, please consider citing it by the following BibTeX entry.
@InProceedings{Lv_2025_CVPR,
author = {Lv, Changsheng and Qi, Mengshi and Liu, Liang and Ma, Huadong},
title = {T2SG: Traffic Topology Scene Graph for Topology Reasoning in Autonomous Driving},
booktitle = {Proceedings of the Computer Vision and Pattern Recognition Conference (CVPR)},
month = {June},
year = {2025},
pages = {17197-17206}
}

