TL;DR
This paper introduces CoT-Drive, a novel motion forecasting system for autonomous driving that leverages Large Language Models (LLMs) and Chain-of-Thought (CoT) prompting. By distilling LLM scene understanding into lightweight models and using CoT for richer semantic annotations, CoT-Drive achieves state-of-the-art accuracy while operating efficiently on edge devices, making LLMs practical for real-time AD applications.
What Problem Does This Paper Address?
Accurate motion forecasting is a cornerstone of safe autonomous driving (AD). Existing deep learning models often struggle with generalization to unseen or complex scenarios, failing to capture the nuanced interactions and contextual understanding required in real-world traffic. Deploying powerful LLMs directly in vehicles is also problematic due to latency, privacy concerns, and high computational demands. This paper aims to bridge this gap by developing an efficient, accurate, and robust motion forecasting system that can leverage the advanced reasoning capabilities of LLMs on edge devices.
Methods
CoT-Drive employs a multi-pronged approach:
- Chain-of-Thought (CoT) Prompting: LLMs (specifically GPT-4 Turbo) are guided using CoT prompting to generate detailed, step-by-step semantic annotations of traffic scenes. This process mimics human-like reasoning, breaking down scene analysis into background, interaction analysis, risk assessment, and prediction.
- Teacher-Student Knowledge Distillation: The advanced scene understanding capabilities of the large "teacher" LLM are transferred to a smaller, lightweight "student" language model (edge LM). This allows the edge LM to inherit rich contextual knowledge while remaining computationally efficient for real-time inference on edge devices.
- Encoder-Decoder Architecture: CoT-Drive utilizes a novel encoder-decoder architecture comprising:
- Language-Instructed Encoder: Processes semantic annotations from the edge LM and historical agent states to generate multimodal features.
- Interaction-aware Encoder: Captures spatial interactions between agents using a transformer-based structure.
- Cross-modal Encoder: Integrates features from the language and interaction encoders.
- Decoder: Predicts future trajectories, handling aleatoric and epistemic uncertainties using a deep ensemble of models and Gaussian Mixture Models.
Datasets
The paper introduces two novel scene description datasets:
- Highway-Text: Contains scene descriptions derived from the NGSIM and HighD datasets.
- Urban-Text: Features multi-agent scene descriptions from the MoCAD and ApolloScape datasets, covering diverse urban environments.
These datasets are designed for fine-tuning lightweight LMs to generate context-specific semantic annotations, leveraging CoT prompting with GPT-4 Turbo.
The model is evaluated on five real-world datasets: NGSIM, HighD, MoCAD, ApolloScape, and nuScenes.
Key Insights and Ideas
- LLMs as Scene Interpreters: LLMs, when guided by CoT prompting, can provide remarkably rich and nuanced semantic annotations of traffic scenes, going beyond simple object detection or trajectory prediction.
- Knowledge Distillation is Crucial: Effectively transferring LLM reasoning capabilities to lightweight models is essential for real-time AD applications. The teacher-student approach significantly boosts the performance of edge LMs.
- CoT Prompting Enhances Reasoning: CoT prompting is not just for generating text; it actively improves the LLM's ability to understand complex interactions and risks, leading to more accurate and reliable scene descriptions without additional fine-tuning.
- Efficiency vs. Accuracy Trade-off: While larger LLMs offer superior accuracy, their computational cost is prohibitive for edge deployment. CoT-Drive strikes a balance by using a distilled lightweight LM for inference.
- Multimodal Fusion is Key: Combining semantic information from LLMs with spatio-temporal features from traditional encoders is vital for comprehensive scene understanding.
Key Results
- State-of-the-Art Performance: CoT-Drive outperforms existing state-of-the-art (SOTA) baselines across multiple datasets, including ApolloScape (e.g., 5.1% improvement in WSADE over AI-TP) and NGSIM/HighD/MoCAD (achieving the best RMSE).
- Efficiency: The distilled lightweight LM enables real-time operation on edge devices, with inference times significantly lower than larger LLMs. For example, CoT-Drive (Qwen-1.5) is 12x faster than CoT-Drive (Llama2-7B) on nuScenes.
- Robustness: CoT-Drive demonstrates strong performance in complex urban and highway scenarios, handling interactions and risks effectively.
- Ablation Studies: Knowledge distillation was shown to be critical, with a performance drop of up to 22.34% when omitted. The Interaction-aware Encoder and Cross-modal Attention also contributed significantly.
Limitations and Future Work
- Rare and Challenging Scenarios: CoT-Drive, like other models, still struggles with highly unusual "corner-case" scenarios (e.g., sudden stops, complex U-turns, unexpected reverse maneuvers) where established trends are broken.
- Data Dependency: The performance of LLM-based methods is tied to the quality and comprehensiveness of training data. Obtaining such data for rare events or adverse conditions is challenging.
- Future Directions:
- Developing methods for generating synthetic data and using domain adaptation techniques to improve robustness in rare scenarios.
- Exploring unsupervised and semi-supervised learning approaches for scene description generation to reduce data demands.
- Integrating LLM-based methods with unsupervised/semi-supervised techniques to balance scalability and semantic depth.
- Further research into reinforcement learning and evolutionary learning approaches for motion forecasting, while addressing their limitations in generalization and semantic understanding.
Summary updated