LMDrive: Closed-Loop End-to-End Driving with Large Language Models
Hao Shao, Yuxuan Hu, Letian Wang, Steven L. Waslander, Yu Liu, Hongsheng Li
TL;DR
This work tackles the challenge of enabling language-guided, closed-loop end-to-end autonomous driving by integrating a frozen large language model with a multi-view vision encoder to interpret natural language instructions alongside sensor data. It introduces a CARLA-based dataset of ~64K instruction-following clips and the LangAuto benchmark to evaluate language-conditioned driving in diverse, realistic scenarios. The LMDrive architecture couples a BEV-based vision encoder with a Q-Former–assisted LLM backbone (LLaMA) using adapters, trained in a two-stage process to predict control signals and instruction completion, augmented by PID control for low-level actuation. Empirical results and ablations demonstrate the value of perception pre-training, BEV token integration, and effective token fusion for language-guided driving, and the LangAuto benchmark reveals practical benefits of including narrative instructions and safety notices for robust interaction with humans and navigation software.
Abstract
Despite significant recent progress in the field of autonomous driving, modern methods still struggle and can incur serious accidents when encountering long-tail unforeseen events and challenging urban scenarios. On the one hand, large language models (LLM) have shown impressive reasoning capabilities that approach "Artificial General Intelligence". On the other hand, previous autonomous driving methods tend to rely on limited-format inputs (e.g. sensor data and navigation waypoints), restricting the vehicle's ability to understand language information and interact with humans. To this end, this paper introduces LMDrive, a novel language-guided, end-to-end, closed-loop autonomous driving framework. LMDrive uniquely processes and integrates multi-modal sensor data with natural language instructions, enabling interaction with humans and navigation software in realistic instructional settings. To facilitate further research in language-based closed-loop autonomous driving, we also publicly release the corresponding dataset which includes approximately 64K instruction-following data clips, and the LangAuto benchmark that tests the system's ability to handle complex instructions and challenging driving scenarios. Extensive closed-loop experiments are conducted to demonstrate LMDrive's effectiveness. To the best of our knowledge, we're the very first work to leverage LLMs for closed-loop end-to-end autonomous driving. Codes, models, and datasets can be found at https://github.com/opendilab/LMDrive
