Skip to main content
QUICK REVIEW

[Paper Review] S2TNet: Spatio-Temporal Transformer Networks for Trajectory Prediction in Autonomous Driving

Weihuang Chen, Fangfang Wang|arXiv (Cornell University)|Jun 22, 2022
Autonomous Vehicle Technology and SafetyEngineering13 citations
TL;DR

S2TNet proposes a spatio-temporal Transformer network for trajectory prediction in autonomous driving, modeling long-range spatial interactions across all traffic agents and temporal dependencies via self-attention mechanisms. It achieves state-of-the-art performance on the ApolloScape dataset, outperforming prior methods by 7.2% on WSFDE and 7.7% on WSFDE by incorporating category, shape, and heading features to handle heterogeneous traffic agents.

ABSTRACT

To safely and rationally participate in dense and heterogeneous traffic, autonomous vehicles require to sufficiently analyze the motion patterns of surrounding traffic-agents and accurately predict their future trajectories. This is challenging because the trajectories of traffic-agents are not only influenced by the traffic-agents themselves but also by spatial interaction with each other. Previous methods usually rely on the sequential step-by-step processing of Long Short-Term Memory networks (LSTMs) and merely extract the interactions between spatial neighbors for single type traffic-agents. We propose the Spatio-Temporal Transformer Networks (S2TNet), which models the spatio-temporal interactions by spatio-temporal Transformer and deals with the temporel sequences by temporal Transformer. We input additional category, shape and heading information into our networks to handle the heterogeneity of traffic-agents. The proposed methods outperforms state-of-the-art methods on ApolloScape Trajectory dataset by more than 7\% on both the weighted sum of Average and Final Displacement Error. Our code is available at https://github.com/chenghuang66/s2tnet.

Motivation & Objective

  • To address the limitations of LSTM-based methods in modeling complex spatio-temporal interactions among heterogeneous traffic agents.
  • To overcome the restriction of spatial neighbor-only interaction modeling in prior methods by capturing long-range spatial dependencies across all agents.
  • To improve long-term trajectory prediction accuracy in dense, dynamic urban environments with mixed traffic agents.
  • To integrate multi-modal features (category, shape, heading) to better represent the heterogeneity of traffic agents.
  • To achieve state-of-the-art performance on the ApolloScape Trajectory dataset through a novel Transformer-based architecture.

Proposed method

  • Spatio-temporal Transformer uses spatial self-attention to model interactions between all traffic agents, not limited to spatial neighbors, enabling long-range spatial dependency capture.
  • Temporal convolutional networks (TCN) extract temporal features from sequential trajectories before fusion with spatial features in the spatio-temporal Transformer.
  • Temporal self-attention in the Transformer decoder refines temporal representations and generates future trajectories auto-regressively.
  • The model incorporates additional features—category, shape, heading, and global coordinates—to represent heterogeneous traffic agents effectively.
  • A masked self-attention mechanism is used to evaluate the impact of spatial limits, showing that full-scene attention improves performance.
  • Separable convolution is used in the feed-forward network of the temporal Transformer, outperforming fully connected layers in ablation studies.

Experimental results

Research questions

  • RQ1Can a Transformer-based architecture effectively model long-range spatial interactions among heterogeneous traffic agents beyond immediate neighbors?
  • RQ2How does the integration of temporal self-attention improve long-term trajectory prediction compared to recurrent or convolutional models?
  • RQ3To what extent do additional agent-specific features (category, shape, heading) enhance prediction accuracy in heterogeneous traffic scenarios?
  • RQ4Does modeling the entire scene in spatial attention yield better results than restricting attention to a local spatial window (e.g., 15m)?
  • RQ5How does the proposed spatio-temporal Transformer architecture compare to existing SOTA methods on real-world dense urban trajectory prediction benchmarks?

Key findings

  • S2TNet achieves a 7.2% relative improvement on the weighted sum of Final Displacement Error (WSFDE) compared to the previous SOTA method, GRIP++.
  • The model reduces the weighted sum of Average Displacement Error (WSADE) by 7.7% on the ApolloScape Trajectory dataset, demonstrating superior generalization.
  • Ablation studies confirm that the full spatio-temporal Transformer with both spatial and temporal self-attention sub-layers yields the best performance.
  • Removing the temporal Transformer encoder leads to a significant performance drop, indicating its critical role in capturing long-term temporal dependencies.
  • Using separable convolution instead of a fully connected feed-forward network in the temporal Transformer improves performance by 0.025 on WSADE.
  • Including full agent features (category, shape, heading) instead of only coordinates improves prediction accuracy, highlighting the importance of heterogeneity modeling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.