UniTraj: A Unified Framework for Scalable Vehicle Trajectory Prediction
Lan Feng, Mohammadhossein Bahari, Kaouther Messaoud Ben Amor, Éloi Zablocki, Matthieu Cord, Alexandre Alahi
TL;DR
UniTraj addresses the challenge of cross-domain generalization in vehicle trajectory forecasting by unifying datasets, models, and evaluation. The framework standardizes data formats via ScenarioNet, harmonizes features across diverse datasets, and provides a common evaluation suite, enabling rigorous cross-dataset and cross-city experiments. Empirical results show significant generalization gaps across datasets, but data scaling and increased diversity yield substantial performance gains, achieving state-of-the-art results on nuScenes when trained on all included data. By delivering an open-source platform with comprehensive dataset analyses and support for multiple models, UniTraj facilitates robust, cross-domain trajectory prediction research and practical deployment in heterogeneous driving environments.
Abstract
Vehicle trajectory prediction has increasingly relied on data-driven solutions, but their ability to scale to different data domains and the impact of larger dataset sizes on their generalization remain under-explored. While these questions can be studied by employing multiple datasets, it is challenging due to several discrepancies, e.g., in data formats, map resolution, and semantic annotation types. To address these challenges, we introduce UniTraj, a comprehensive framework that unifies various datasets, models, and evaluation criteria, presenting new opportunities for the vehicle trajectory prediction field. In particular, using UniTraj, we conduct extensive experiments and find that model performance significantly drops when transferred to other datasets. However, enlarging data size and diversity can substantially improve performance, leading to a new state-of-the-art result for the nuScenes dataset. We provide insights into dataset characteristics to explain these findings. The code can be found here: https://github.com/vita-epfl/UniTraj
