Exploring Transformer-Augmented LSTM for Temporal and Spatial Feature Learning in Trajectory Prediction
Chandra Raskoti, Weizi Li
TL;DR
The paper tackles autonomous vehicle trajectory prediction by proposing a Transformer-augmented LSTM framework that learns temporal and spatial features in a unified pipeline. It processes target and neighbor trajectories with LSTM encoders, applies Transformer attention for both temporal and spatial contexts, and uses a masked-scatter grid to fuse neighbor information, followed by an LSTM-based decoder to predict $5$ future steps. Despite rigorous benchmarking against STA-LSTM, SA-LSTM, CS-LSTM, and NaiveLSTM on a $3 \times 13$ grid with history $T=15$ and horizon $T'=5$, the Transformer-enhanced model does not outperform STA-LSTM, though the study demonstrates feasibility and identifies directions for architectural improvements. The work highlights a promising direction toward more interpretable and robust trajectory prediction systems, proposing future integration with planning/control pipelines and larger-scale traffic simulations to harness Transformer-based attention more effectively.
Abstract
Accurate vehicle trajectory prediction is crucial for ensuring safe and efficient autonomous driving. This work explores the integration of Transformer based model with Long Short-Term Memory (LSTM) based technique to enhance spatial and temporal feature learning in vehicle trajectory prediction. Here, a hybrid model that combines LSTMs for temporal encoding with a Transformer encoder for capturing complex interactions between vehicles is proposed. Spatial trajectory features of the neighboring vehicles are processed and goes through a masked scatter mechanism in a grid based environment, which is then combined with temporal trajectory of the vehicles. This combined trajectory data are learned by sequential LSTM encoding and Transformer based attention layers. The proposed model is benchmarked against predecessor LSTM based methods, including STA-LSTM, SA-LSTM, CS-LSTM, and NaiveLSTM. Our results, while not outperforming it's predecessor, demonstrate the potential of integrating Transformers with LSTM based technique to build interpretable trajectory prediction model. Future work will explore alternative architectures using Transformer applications to further enhance performance. This study provides a promising direction for improving trajectory prediction models by leveraging transformer based architectures, paving the way for more robust and interpretable vehicle trajectory prediction system.
