Knowledge-aware Graph Transformer for Pedestrian Trajectory Prediction

Yu Liu, Yuexin Zhang, Kunming Li, Yongliang Qiao, Stewart Worrall, Youfu Li, He Kong · DOI

TL;DR

This paper introduces a novel "knowledge-aware graph transformer" to improve pedestrian trajectory prediction. By leveraging self-attention mechanisms within a graph structure and incorporating a domain adaptation module, the model better captures diverse pedestrian interactions and generalizes across different environments, leading to more accurate and robust predictions.

What Problem Does This Paper Address?

Predicting where pedestrians will move is critical for autonomous vehicles to navigate safely and efficiently. However, human movement is inherently unpredictable, especially in crowded scenarios where interactions between individuals significantly influence their paths. Existing deep learning models often struggle to generalize well across different environments and datasets because they don't adequately account for the discrepancies and nuances present in varied training data. This limitation can lead to unstable prediction performance, making it difficult for autonomous systems to rely on these predictions in real-world, diverse situations.

Methods

The core of this work is a knowledge-aware graph transformer architecture. Here's a breakdown of the key components:

  • Graph Representation: Pedestrian trajectories are first modeled as graphs. Each pedestrian is a node, and the relationships (edges) between them are dynamically learned.
  • Self-Attention Mechanism: Inspired by the Transformer architecture, multi-head self-attention is employed in both spatial and temporal dimensions.
  • Spatial Attention: This helps the model understand how pedestrians influence each other based on their proximity and potential interactions at a given moment. It adaptively learns weighted adjacency matrices that capture these relationships.
  • Temporal Attention: This focuses on understanding the motion patterns of individual pedestrians over time, weighting past positions to better predict future movements.
  • Domain Adaptation Module: To address the issue of performance inconsistency across different datasets and scenarios, a domain adaptation module is introduced. This module utilizes a hybrid loss function that combines:
  • Negative Log-Likelihood (Lmle): This is a standard loss for predicting parameters of a distribution (in this case, a bivariate Gaussian distribution for the predicted trajectory).
  • Maximum Mean Discrepancy (MMD): This loss function helps to minimize the difference between the distribution of the predicted trajectories and the distribution of the ground truth trajectories, effectively bridging the gap between different data domains.
  • Time-Extrapolator Convolutional Neural Network (TCNN): After the graph and attention layers process the spatio-temporal information, a TCNN is used to extract temporal features and predict the parameters of a bivariate Gaussian distribution for the future trajectory.

Datasets

The proposed framework was trained and evaluated on two widely used public pedestrian trajectory datasets:

  • ETH [27]: Contains two scenes (ETH and HOTEL).
  • UCY [28]: Contains three scenes (ZARA1, ZARA2, and UNIV).

The data points in these datasets are sampled every 0.4 seconds. For training and evaluation, each time sequence is split into an observed path (first 8 frames, 3.2 seconds) and a predicted ground truth path (following 12 frames, 4.8 seconds).

Key Insights and Ideas

  • Dynamic Interaction Weighting: The use of self-attention to dynamically learn the weights of pedestrian interactions in both spatial and temporal dimensions is crucial. This allows the model to adapt to varying social dynamics, unlike fixed interaction models.
  • Bridging Domain Gaps: The domain adaptation module with MMD loss is a key innovation for improving generalization. It explicitly tackles the problem of performance drops when models encounter data from unseen environments or scenarios.
  • Beyond Average Error: Introducing a new metric, the variance of Average Displacement Error (Var(ADE)), is insightful. It highlights the model's ability to maintain consistent prediction quality across different scenarios, not just achieving low average errors. This is vital for real-world reliability.
  • Knowledge-Awareness: The "knowledge-aware" aspect comes from how the graph structure and attention mechanisms allow nodes (pedestrians) to become aware of each other's presence and influence across both space and time, effectively encoding contextual knowledge.

Key Results

  • Improved Accuracy: The proposed model consistently outperforms existing state-of-the-art methods like Social-STGCNN, Linear, Social LSTM, Social GAN, and GAT on both ETH and UCY datasets.
  • On ADE, the model shows a 7% average improvement over S-STGCNN.
  • On FDE, it achieves a 5% average improvement over S-STGCNN.
  • Reduced Variance: The model significantly reduces the variance of ADE and FDE across different datasets, demonstrating more stable and robust performance. It achieves a 17% and 6% reduction in the variance of ADE and FDE, respectively, compared to S-STGCNN.
  • Qualitative Performance: Visualizations show that the model produces socially acceptable and accurate predictions, closely matching ground truth paths even in complex scenarios with multiple interacting pedestrians.

Limitations and Future Work

  • Environmental Information: The authors acknowledge that incorporating explicit environmental information, such as street layouts and the presence of trees, could further improve prediction accuracy and mitigate unstable performance in diverse scenes. This is suggested as a direction for future work.
  • Hyperparameter Tuning: While the paper explores different values for the domain adaptation loss weight ($\alpha$), it notes that the optimal value (0.3) was found through experimentation. Further research into more automated or adaptive hyperparameter selection could be beneficial.

Summary updated

BibTeX
@misc{liu2024knowledge,
  author = {Yu Liu and Yuexin Zhang and Kunming Li and Yongliang Qiao and Stewart Worrall and Youfu Li and He Kong},
  title = {{Knowledge-aware Graph Transformer for Pedestrian Trajectory Prediction}},
  year = {2024},
  eprint = {2401.04872},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.04872},
}
Figure