DriveCoT: Integrating Chain-of-Thought Reasoning with End-to-End Driving

Tianqi Wang, Enze Xie, Ruihang Chu, Zhenguo Li, Ping LuoarXiv 2024 · DOI

TL;DR

This paper introduces DriveCoT, a novel dataset and benchmark for end-to-end autonomous driving that incorporates "chain-of-thought" (CoT) reasoning labels. By providing a detailed breakdown of the decision-making process, DriveCoT aims to improve the interpretability and controllability of autonomous driving systems, addressing a key limitation of current black-box approaches.

What Problem Does This Paper Address?

End-to-end autonomous driving systems, which directly map sensor inputs to control outputs, offer simplicity and strong performance. However, their "black-box" nature makes it difficult to understand why a decision was made, hindering real-world deployment due to safety and debugging concerns. Existing datasets often lack detailed reasoning or focus on simpler driving scenarios. This paper tackles the challenge of making end-to-end driving more interpretable and controllable by introducing a dataset that captures the step-by-step reasoning process, akin to human "chain-of-thought."

Methods

The core of this work lies in the creation of the DriveCoT dataset and a corresponding baseline model, the DriveCoT-Agent.

  • DriveCoT Dataset Creation: The authors leverage the CARLA simulator to generate challenging driving scenarios, including high-speed driving and lane changes, inspired by the CARLA leaderboard 2.0. A rule-based expert policy, designed to handle these complex situations, is used to control the ego vehicle and generate ground-truth labels for the reasoning process. These labels are in a "chain-of-thought" format, detailing intermediate decisions and their justifications.
  • DriveCoT-Agent Model: This baseline model takes multi-view camera video as input and is trained to predict CoT aspects (e.g., collision prediction, traffic light status, relation to ahead vehicle) and ultimately the final driving decision (target speed and waypoints). It uses a Video Swin Transformer for feature extraction and a transformer encoder-decoder architecture for processing and generating predictions.

Datasets

  • DriveCoT: A newly introduced dataset specifically designed for end-to-end driving with chain-of-thought reasoning. It comprises 1058 challenging scenarios, 36K labeled samples, and includes sensor data, control decisions, and detailed CoT labels. It aims to be an open-loop benchmark for evaluating CoT aspects and final decisions.
  • CARLA Simulator: Used for data collection and closed-loop evaluation.
  • nuScenes: Mentioned as a source for real-world data for zero-shot testing of the DriveCoT-Agent.

Key Insights and Ideas

  • Chain-of-Thought for Driving: The paper demonstrates that applying CoT reasoning, inspired by LLMs, can significantly improve the interpretability of end-to-end driving models. By breaking down complex decisions into smaller, logical steps, the system's reasoning becomes more transparent.
  • Challenging Scenarios are Crucial: The DriveCoT dataset focuses on high-speed and complex driving scenarios, which are more representative of real-world challenges and are often missing in existing datasets.
  • Interpretable Decisions Lead to Better Performance: The DriveCoT-Agent, trained on the CoT dataset, shows improved performance in both open-loop and closed-loop evaluations, suggesting that explicit reasoning can lead to more robust and safer driving.
  • Multi-view Video Input is Beneficial: The DriveCoT-Agent utilizes multi-view camera input, which captures object motion and context better than single-frame images, leading to improved hazard prediction and driving decisions.

Key Results

  • Open-Loop Evaluation: The DriveCoT-Agent outperforms previous methods on the DriveCoT validation set, achieving higher F1 scores for speed decisions and better accuracy for path prediction. For instance, it achieves an F1 score of 0.82 for brake decisions and 87.2% accuracy for straight path prediction.
  • Closed-Loop Evaluation: On the Town05Long benchmark, DriveCoT-Agent achieved a driving score of 73.6 and a route completion of 96.8, surpassing existing methods. On the more challenging CARLA leaderboard 2.0, it achieved a driving score of 51.9 and route completion of 77.5.
  • Qualitative Results: The paper presents visualizations showing the DriveCoT-Agent correctly identifying hazards (red lights, pedestrians, merging vehicles) and making appropriate braking or speed adjustments, demonstrating its reasoning capabilities.

Limitations and Future Work

  • Expert Policy Limitations: The paper acknowledges that the rule-based expert policy used for data generation has limitations, particularly in handling overly complicated scenarios or requiring memory for past decisions. Future work aims to extend this.
  • Model Design for Video Features: While multi-view video input is beneficial, the paper suggests that the simple design for video feature extraction might be a bottleneck, indicating a direction for future research.
  • Real-world Data Generalization: While the DriveCoT-Agent shows promising zero-shot performance on real-world data (nuScenes), further validation and fine-tuning on real-world datasets would be beneficial.
  • LLM Integration: The paper mentions the potential of LLMs for CoT reasoning but notes that their inference time can be prohibitive. Future work could explore more efficient ways to integrate LLMs or develop models that achieve similar reasoning capabilities with faster inference.

Summary updated

BibTeX
@misc{wang2024drivecot,
  author = {Tianqi Wang and Enze Xie and Ruihang Chu and Zhenguo Li and Ping Luo},
  title = {{DriveCoT: Integrating Chain-of-Thought Reasoning with End-to-End Driving}},
  year = {2024},
  eprint = {2403.16996},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.16996},
}
Figure