Cross-Domain Transfer Learning Using Attention Latent Features for Multi-Agent Trajectory Prediction

Jia Quan Loh, Xuewen Luo, Fan Ding, Hwa Hui Tew, Junn Yong Loo, Ze Yang Ding, Susilawati, Chee Pin Tan

TL;DR

This paper introduces the Graph Embedded Transformer, a novel framework that combines Graph Convolutional Networks (GCNs) with Transformers to predict vehicle trajectories. By incorporating a domain adversarial training strategy, the model successfully generalizes across different cities and time periods, outperforming state-of-the-art models by minimizing the statistical discrepancy between different traffic environments.

What Problem Does This Paper Address?

Predicting where a vehicle will be in the next five seconds is critical for autonomous driving and traffic management. While deep learning models have become quite good at this, they suffer from domain shift.

A model trained on a highway in Los Angeles during a clear afternoon might perform poorly on a congested road in New York or even on the same highway during a different time of day. This is because traffic patterns, driver behaviors, and road geometries vary significantly across locations and times. Most existing models are "overfit" to their specific training environment. The authors aim to create a model that can take knowledge from a "source" domain (where data is plentiful) and apply it effectively to a "target" domain (where data might be scarce).

Methods

The authors propose a two-part architecture designed to capture the "where" and "when" of traffic:

  1. Spatial Modeling (The GCN): Instead of treating vehicles as isolated points, the model uses a Graph Convolutional Network (GCN) to construct dynamic embeddings. This captures the non-Euclidean interactions between neighboring vehicles—essentially modeling how one car's movement influences another's.
  2. Temporal Modeling (The Transformer): These spatial embeddings are fed into a Transformer encoder-decoder. Unlike traditional Recurrent Neural Networks (RNNs), the Transformer uses an attention mechanism to look at the entire trajectory history simultaneously, better capturing long-term dependencies.
  3. Domain Adaptation (The Adversarial Twist): To handle domain shift, they add a Domain Classifier (MLP). During training, the Transformer encoder tries to generate features that are useful for prediction but indistinguishable to the classifier. This "adversarial" setup forces the model to learn latent features that are domain-agnostic, effectively aligning the distributions of different cities or time periods.

Datasets

The framework was validated using two gold-standard datasets in the field:

  • NGSIM-I80: Trajectory data from the Interstate 80 freeway in Emeryville, California.
  • NGSIM-US101: Trajectory data from the US Highway 101 in Los Angeles, California.

Both datasets include 45 minutes of footage segmented into mild, moderate, and congested traffic conditions, sampled at 10 Hz (and downsampled to 5 Hz for the study). The task involves using 3 seconds of history to predict 5 seconds into the future.

Key Insights and Ideas

  • Attention is the Bridge: The core "aha moment" is that domain adaptation is most effective when performed on the attention latent features. By forcing the encoder's latent space to be similar across domains, the model learns universal "traffic physics" rather than site-specific quirks.
  • GCNs as Feature Extractors: Rather than using standard coordinate embeddings, using a GCN to "pre-process" the spatial relationships provides the Transformer with a much richer starting point for temporal analysis.
  • Performance Scales with Time: The proposed model's advantage over baselines (like LSTMs) actually increases as the prediction horizon grows. This highlights the Transformer's superior ability to maintain context over longer sequences compared to recurrent architectures.

Key Results

The researchers tested two scenarios: Cross-City (training on I-80, testing on US-101) and Cross-Period (training on afternoon data, testing on evening data).

  • Cross-City Success: The Domain Adapted (DA) version of their model showed an RMSE (Root Mean Squared Error) improvement of 20.81% to 21.58% over the non-adapted baseline.
  • Cross-Period Success: In temporal shifts, the model achieved an improvement of 17.94% to 19.64% in RMSE.
  • Superiority over SOTA: The Graph Embedded Transformer consistently outperformed established models like GRIP (which uses GCN+GRU) and vanilla Transformers, particularly in the later seconds of the prediction window.

Limitations and Future Work

While the results are promising, the authors note a few areas for growth:

  • Highway Focus: The study relies on highway datasets (NGSIM). Urban environments with intersections, traffic lights, and pedestrians present much more complex topological challenges that may require more sophisticated graph structures.
  • Data Scarcity: The domain adaptation assumes some (albeit limited) data from the target domain is available. Exploring "zero-shot" transfer where no target data is available remains a difficult frontier.
  • Multi-modality: Currently, the model predicts a single most-likely path. Future iterations could benefit from predicting multiple possible trajectories (e.g., a car might turn left or go straight) to better account for human uncertainty.

Summary updated

BibTeX
@inproceedings{loh2024cross,
  author = {Jia Quan Loh and Xuewen Luo and Fan Ding and Hwa Hui Tew and Junn Yong Loo and Ze Yang Ding and Susilawati and Chee Pin Tan},
  title = {{Cross-Domain Transfer Learning Using Attention Latent Features for Multi-Agent Trajectory Prediction}},
  booktitle = {SMC},
  year = {2024},
  doi = {10.1109/smc54092.2024.10831990},
}
Figure