Knowledge-aware Graph Transformer for Pedestrian Trajectory Prediction

Yu Liu, Yuexin Zhang, Kunming Li, Yongliang Qiao, Stewart Worrall, You-Fu Li, He Kong

TL;DR

This paper introduces a Knowledge-aware Graph Transformer that improves pedestrian trajectory prediction by dynamically modeling both social interactions and individual motion patterns. By combining dual-dimension self-attention with a domain adaptation loss (Maximum Mean Discrepancy), the model achieves superior generalization and robustness across diverse urban environments compared to previous state-of-the-art methods.

What Problem Does This Paper Address?

Predicting where a pedestrian will walk is a cornerstone of safe autonomous driving. However, human motion is notoriously difficult to forecast because it is influenced by complex social etiquette (avoiding collisions, walking in groups) and varying environmental contexts.

The authors identify a major gap in current deep learning approaches: data heterogeneity. Most models are trained on specific datasets (like ETH or UCY) but struggle to generalize when moved to a new "site" or scenario. Discrepancies between training datasets—such as different walking speeds or crowd densities—often lead to inconsistent performance. Furthermore, standard loss functions often fail to capture the full complexity of human motion distributions when data is relatively sparse.

Methods

The proposed framework, illustrated in Figure 1, moves away from static graph representations toward a dynamic, transformer-inspired architecture.

The structure of the proposed method, featuring spatial and temporal graph encoders followed by a Time-extrapolator CNN (TCNN) decoder.

Key components include:

  • Dual-Dimension Self-Attention: Instead of using fixed adjacency matrices to represent pedestrian relationships, the model uses self-attention.
  • Spatial Dimension: Dynamically weights the importance of surrounding pedestrians to capture social interactions.
  • Temporal Dimension: Weights a single pedestrian's past trajectory points to identify underlying motion patterns.
  • Time-extrapolator Convolutional Neural Network (TCNN): A decoder that maps the learned spatio-temporal features from the observation period (8 frames) to the prediction period (12 frames).
  • Hybrid Loss Function: The authors combine standard Negative Log-Likelihood (NLL) with Maximum Mean Discrepancy (MMD). MMD acts as a domain adaptation tool, minimizing the distance between the predicted distribution and the ground truth distribution, which helps the model generalize better across different datasets.

Datasets

The model was evaluated on two classic public benchmarks for pedestrian trajectory prediction:

  1. ETH: Includes the 'ETH' and 'HOTEL' scenes.
  2. UCY: Includes the 'ZARA1', 'ZARA2', and 'UNIV' scenes.

Data points are sampled every 0.4 seconds. The standard protocol of observing 3.2 seconds (8 frames) to predict the next 4.8 seconds (12 frames) was followed to ensure a fair comparison with existing literature.

Key Insights and Ideas

  • Robustness is a Metric: The authors argue that Average Displacement Error (ADE) isn't enough. They introduce the Variance of ADE across datasets as a key metric. A model that is highly accurate in one scene but fails in another is dangerous for autonomous vehicles; low variance indicates a "knowledge-aware" model that maintains performance across different sites.
  • MMD for Data Scarcity: While bivariate Gaussian distributions are standard for trajectory prediction, they can be too simple for complex traffic. The addition of MMD loss helps "shape" the entire sample space, compensating for the fact that existing datasets often don't have enough points to fully satisfy maximum likelihood estimation.
  • Ablation of $\alpha$: The paper finds that the balance between MMD loss and NLL loss (controlled by hyperparameter $\alpha$) is critical. Their ablation study (Table III) shows that $\alpha = 0.3$ provides the optimal balance for prediction accuracy.

Key Results

The proposed model consistently outperformed established baselines like Social-LSTM, Social-GAN, and Social-STGCNN.

  • Accuracy: On the ADE metric, the model improved upon Social-STGCNN by 7% on average. For FDE (Final Displacement Error), it showed a 5% improvement.
  • Consistency: Most impressively, the variance of ADE across the five test sets was reduced by 17% compared to Social-STGCNN. This suggests the model is significantly more reliable when encountering new environments.
  • Qualitative Success: As shown in Figure 2, the model successfully predicts socially acceptable paths in complex scenarios, such as four people walking in parallel or pedestrians approaching each other from opposite directions.
Visual comparison of predicted trajectory distributions. The "Ours" row shows tighter, more accurate alignment with ground truth compared to STGCNN.

Limitations and Future Work

While the model excels at capturing social and motion patterns, it currently treats the environment as an open space. The authors acknowledge that environmental information—such as the location of streets, sidewalks, and obstacles like trees—is not yet incorporated.

Future work will focus on integrating these environmental constraints into the prediction process to further mitigate performance instability in highly structured urban scenes.

Summary updated

BibTeX
@misc{liu2024knowledge,
  author = {Yu Liu and Yuexin Zhang and Kunming Li and Yongliang Qiao and Stewart Worrall and You-Fu 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