Large Language Models Powered Context-aware Motion Prediction in Autonomous Driving
Xiaoji Zheng, Lixiu Wu, Zhijie Yan, Yuanrong Tang, Hao Zhao, Chen Zhong, Bokui Chen, Jiangtao Gong
TL;DR
This work addresses the gap in motion prediction by enriching traffic-context understanding with large language models. It introduces Transportation Context Map prompts and structured outputs (intention, affordance, scenario) from GPT4-V, then fuses this context into a Motion Transformer via cross-attention. The approach improves prediction accuracy on the Waymo Open Motion Dataset and demonstrates a scalable, cost-efficient deployment using partial LLM augmentation. The results suggest that BEV-like context prompts enable LLMs to capture global traffic semantics that augment traditional trajectory forecasting, with potential for broader adoption in autonomous driving pipelines.
Abstract
Motion prediction is among the most fundamental tasks in autonomous driving. Traditional methods of motion forecasting primarily encode vector information of maps and historical trajectory data of traffic participants, lacking a comprehensive understanding of overall traffic semantics, which in turn affects the performance of prediction tasks. In this paper, we utilized Large Language Models (LLMs) to enhance the global traffic context understanding for motion prediction tasks. We first conducted systematic prompt engineering, visualizing complex traffic environments and historical trajectory information of traffic participants into image prompts -- Transportation Context Map (TC-Map), accompanied by corresponding text prompts. Through this approach, we obtained rich traffic context information from the LLM. By integrating this information into the motion prediction model, we demonstrate that such context can enhance the accuracy of motion predictions. Furthermore, considering the cost associated with LLMs, we propose a cost-effective deployment strategy: enhancing the accuracy of motion prediction tasks at scale with 0.7\% LLM-augmented datasets. Our research offers valuable insights into enhancing the understanding of traffic scenes of LLMs and the motion prediction performance of autonomous driving. The source code is available at \url{https://github.com/AIR-DISCOVER/LLM-Augmented-MTR} and \url{https://aistudio.baidu.com/projectdetail/7809548}.
