Advancing Autonomous Driving Safety Through LLM Enhanced Trajectory Prediction

Qian Cheng, Xinyu Jiao, Mengmeng Yang, Mingliang Yang, Kun Jiang, Diange YangLecture Notes in Mechanical Engineering 2024 · DOI · OpenAlex

Abstract

In recent years, there has been remarkable progress in autonomous driving technology. To improve the safety of autonomous driving comprehensively, accurate predictions for all traffic agents are crucial. Typically, the graph neural network is widely employed for the trajectory prediction. To enhance the prediction accuracy rate, this paper utilizes a finetuned vision-to-language large model to extract driving intentions. With the well-designed prompt and the supervision of the specific dataset, the LLM (large language model) can analyze the current traffic condition and give the corresponding driving intention. This paper also combines the result of the LLM and the output of the traditional prediction model, and the future trajectory is modified with the driving intention, which can improve the final prediction accuracy. Finally, in the decision-making part, both the driving intention from the LLM and the trajectory from the traditional prediction model are considered in the boundary-based drivable area, and a safe planning path is then generated. According to the validation in the public motion forecasting dataset, this method has greatly improved the accuracy of the prediction and the safety of route planning.

Introduction

Predicting the future trajectories of surrounding traffic agents is a cornerstone of safe autonomous driving. Current state-of-the-art systems primarily rely on Graph Neural Networks (GNNs), such as VectorNet, to process environmental features like lane geometries and vehicle positions as mathematical vectors. While these models offer high numerical precision and computational efficiency, they often lack the high-level semantic reasoning or "common sense" required to interpret complex driving intentions. For instance, a traditional model might fail to recognize a vehicle's intent to turn left at a busy intersection despite visual cues, leading to potentially hazardous planning. This research addresses this gap by integrating Large Language Models (LLMs) to provide semantic "sanity checks" and intention recognition.

Methodology

The proposed framework integrates a Vision-Language Model (VLM) into the standard autonomous driving stack through a three-stage pipeline.

Overview of the proposed hybrid trajectory prediction and decision-making framework.

1. LLM Fine-tuning

The researchers utilized MiniGPT-4, a 13B parameter model, fine-tuned on bird's-eye-view (BEV) images. These images represent traffic data, including past trajectories, velocities, and lane centerlines. The LLM is trained to output linguistic driving intentions such as "left turn," "braking," or "accelerating" based on these visual inputs.

2. Trajectory Merging

The system does not replace traditional models but rather uses the LLM to refine their outputs. A merging logic was developed to adjust VectorNet's predicted trajectories based on the LLM's identified intent. For example, if the LLM identifies a turning intention that aligns better with road centerlines than the GNN's prediction, the trajectory is shifted accordingly.

3. Safe Decision-Making

The refined trajectories are incorporated into a "Boundary-Based Drivable Area Model." This model establishes safety buffers around predicted paths, which are then used by a Werling planner to generate a safe ego-vehicle route.

Results and Discussion

The hybrid approach was validated using the Argoverse motion forecasting dataset. The integration of LLM-based semantic reasoning led to a significant quantitative improvement in prediction accuracy.

Comparison of trajectory predictions: The modified model (green) aligns more closely with the ground truth (red) than the baseline VectorNet (yellow).

Key Performance Metrics

  • Accuracy Boost: The Average Distance Error (ADE) was reduced by 31.9%, falling from 4.67 meters (VectorNet baseline) to 3.18 meters with the hybrid model.
  • Qualitative Safety: Qualitative analysis shows that the LLM-enhanced model correctly identifies turning intentions in scenarios where traditional models predict straight-line movement, allowing the ego-vehicle to proactively avoid collisions.

Interpretability and Robustness

Unlike traditional "black-box" networks, the LLM provides explicit linguistic justifications for its predictions. This transparency allows engineers to understand the system's reasoning (e.g., "the vehicle is intending to change lanes"), facilitating easier debugging and safety validation.

Conclusion

This research demonstrates that LLMs can serve as effective high-level supervisors in autonomous driving, catching "out-of-distribution" errors that purely numerical models might miss. While the results are promising, future work must address the high computational cost of 13B parameter models to enable real-time deployment. Additionally, scaling the fine-tuning dataset to include diverse weather conditions and multi-agent interactions remains a critical next step for production-ready systems.

Summary updated

Abstract

Abstract In recent years, there has been remarkable progress in autonomous driving technology. To improve the safety of autonomous driving comprehensively, accurate predictions for all traffic agents are crucial. Typically, the graph neural network is widely employed for the trajectory prediction. To enhance the prediction accuracy rate, this paper utilizes a finetuned vision-to-language large model to extract driving intentions. With the well-designed prompt and the supervision of the specific dataset, the LLM (large language model) can analyze the current traffic condition and give the corresponding driving intention. This paper also combines the result of the LLM and the output of the traditional prediction model, and the future trajectory is modified with the driving intention, which can improve the final prediction accuracy. Finally, in the decision-making part, both the driving intention from the LLM and the trajectory from the traditional prediction model are considered in the boundary-based drivable area, and a safe planning path is then generated. According to the validation in the public motion forecasting dataset, this method has greatly improved the accuracy of the prediction and the safety of route planning.
BibTeX
@inproceedings{cheng2024advancing,
  author = {Qian Cheng and Xinyu Jiao and Mengmeng Yang and Mingliang Yang and Kun Jiang and Diange Yang},
  title = {{Advancing Autonomous Driving Safety Through LLM Enhanced Trajectory Prediction}},
  booktitle = {Lecture Notes in Mechanical Engineering},
  year = {2024},
  doi = {10.1007/978-3-031-70392-8\_71},
}

Loading related content...

Figure