Papers › SemanticFormer: Holistic and Semantic Traffic Scene Representation for Trajectory...

SemanticFormer: Holistic and Semantic Traffic Scene Representation for Trajectory Prediction using Knowledge Graphs

30 Apr 2024arXiv:2404.19379archive 2025-07-28

Zhigang Sun, Zixu Wang, Lavdim Halilaj, Juergen Luettin

Trajectory prediction in autonomous driving relies on accurate representation of all relevant contexts of the driving scene, including traffic participants, road topology, traffic signs, as well as their semantic relations to each other. Despite increased attention to this issue, most approaches in trajectory prediction do not consider all of these factors sufficiently. We present SemanticFormer, an approach for predicting multimodal trajectories by reasoning over a semantic traffic scene graph using a hybrid approach. It utilizes high-level information in the form of meta-paths, i.e. trajectories on which an agent is allowed to drive from a knowledge graph which is then processed by a novel pipeline based on multiple attention mechanisms to predict accurate trajectories. SemanticFormer comprises a hierarchical heterogeneous graph encoder to capture spatio-temporal and relational information across agents as well as between agents and road elements. Further, it includes a predictor to fuse different encodings and decode trajectories with probabilities. Finally, a refinement module assesses permitted meta-paths of trajectories and speed profiles to obtain final predicted trajectories. Evaluation of the nuScenes benchmark demonstrates improved performance compared to several SOTA methods. In addition, we demonstrate that our knowledge graph can be easily added to two graph-based existing SOTA methods, namely VectorNet and Laformer, replacing their original homogeneous graphs. The evaluation results suggest that by adding our knowledge graph the performance of the original methods is enhanced by 5% and 4%, respectively.

PaperPDFCode

Code

boschresearch/nuscenes_knowledge_graph officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Autonomous DrivingGraph LearningKnowledge GraphsTrajectory Prediction

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Trajectory Prediction nuScenes SemanticFormer MinADE_10 1.14 #2 of 34 Archive leaderboard report
Trajectory Prediction nuScenes SemanticFormer MinADE_5 1.14 #2 of 34 Archive leaderboard report
Trajectory Prediction nuScenes SemanticFormer MinFDE_1 6.27 #2 of 34 Archive leaderboard report
Trajectory Prediction nuScenes SemanticFormer MissRateTopK_2_10 0.50 #2 of 34 Archive leaderboard report
Trajectory Prediction nuScenes SemanticFormer MissRateTopK_2_5 0.50 #2 of 34 Archive leaderboard report
Trajectory Prediction nuScenes SemanticFormer OffRoadRate 0.03 #2 of 34 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

CGNN

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections