DSDrive: Distilling Large Language Model for Lightweight End-to-End Autonomous Driving with Unified Reasoning and Planning

Wenru Liu, Pei Liu, Jun MaarXiv 2025 · DOI

Abstract

We present DSDrive, a streamlined end-to-end paradigm tailored for integrating the reasoning and planning of autonomous vehicles into a unified framework. DSDrive leverages a compact LLM that employs a distillation method to preserve the enhanced reasoning capabilities of a larger-sized vision language model (VLM). To effectively align the reasoning and planning tasks, a waypoint-driven dual-head coordination module is further developed, which synchronizes dataset structures, optimization objectives, and the learning process. By integrating these tasks into a unified framework, DSDrive anchors on the planning results while incorporating detailed reasoning insights, thereby enhancing the interpretability and reliability of the end-to-end pipeline. DSDrive has been thoroughly tested in closed-loop simulations, where it performs on par with benchmark models and even outperforms in many key metrics, all while being more compact in size. Additionally, the computational efficiency of DSDrive (as reflected in its time and memory requirements during inference) has been significantly enhanced. Evidently thus, this work brings promising aspects and underscores the potential of lightweight systems in delivering interpretable and efficient solutions for AD.

Introduction

Current end-to-end (E2E) autonomous driving (AD) systems often operate as "black boxes," translating sensor data directly into control commands without providing interpretable reasoning. While Large Language Models (LLMs) offer a potential solution by introducing a reasoning layer, they face significant deployment challenges. Massive LLMs are computationally prohibitive for real-time automotive applications, and there exists a persistent "reasoning-planning gap" where abstract textual logic fails to translate into precise numerical waypoints. DSDrive addresses these challenges by distilling the reasoning capabilities of a large Vision-Language Model (VLM) into a compact LLM, creating a unified framework for interpretable and efficient AD.

Methodology

DSDrive employs a "Teacher-Student" architecture designed to balance high-level reasoning with low-level planning efficiency. The framework utilizes a massive state-of-the-art model, Qwen2.5-VL-max, as a teacher to generate structured reasoning datasets. This knowledge is then distilled into a significantly smaller student model, LLaMA-1B.

Overview of the DSDrive architecture, featuring the Teacher-Student distillation framework and the unified reasoning-planning pipeline.

The architecture integrates a Bird's-Eye View (BEV) perception module and a Q-Former to align multi-view camera inputs with textual tokens. Central to the system is a waypoint-driven dual-head coordination module. This module synchronizes two primary tasks:

  1. Reasoning Head: Generates Chain-of-Thought (CoT) explanations detailing weather, road conditions, key objects, and recommended actions.
  2. Planning Head: Predicts precise numerical waypoints for vehicle trajectory.

Unified Reasoning and Planning

To bridge the gap between text and action, DSDrive embeds ground-truth waypoints directly into the reasoning text during the training phase. This alignment ensures that the model's logical deductions directly inform its physical trajectory planning.

Illustration of the system prompt and the generated Chain-of-Thought (CoT) reasoning aligned with numerical waypoints.

Experimental Results

The model was evaluated in the CARLA simulator using the LangAuto benchmark, which tests performance across various route lengths and environmental conditions.

Performance and Efficiency

DSDrive demonstrates that model size is not the sole determinant of performance. Despite having only 1 billion parameters, DSDrive achieved a Driving Score (DS) of 62.05 on "Short" routes, significantly outperforming the 7-billion parameter LMDrive baseline (DS 45.03).

Furthermore, DSDrive offers substantial efficiency gains. It maintains a rapid inference time of 0.05 seconds per frame and requires only 8GB of VRAM. This makes the system viable for deployment on automotive-grade edge hardware, such as the NVIDIA Orin platform, rather than requiring server-grade GPUs.

Conclusion and Future Work

DSDrive successfully demonstrates the potential of lightweight, distilled LLMs for interpretable autonomous driving. By providing CoT explanations, the system enhances safety through transparency, allowing developers to diagnose failure modes effectively.

However, limitations remain, particularly regarding lateral control logic, as evidenced by higher lane deviation scores compared to some baselines. Future research will explore the integration of Reinforcement Learning (RL) to further refine the distilled model and improve driving smoothness in complex, real-world scenarios.

Summary updated

Abstract

We present DSDrive, a streamlined end-to-end paradigm tailored for integrating the reasoning and planning of autonomous vehicles into a unified framework. DSDrive leverages a compact LLM that employs a distillation method to preserve the enhanced reasoning capabilities of a larger-sized vision language model (VLM). To effectively align the reasoning and planning tasks, a waypoint-driven dual-head coordination module is further developed, which synchronizes dataset structures, optimization objectives, and the learning process. By integrating these tasks into a unified framework, DSDrive anchors on the planning results while incorporating detailed reasoning insights, thereby enhancing the interpretability and reliability of the end-to-end pipeline. DSDrive has been thoroughly tested in closed-loop simulations, where it performs on par with benchmark models and even outperforms in many key metrics, all while being more compact in size. Additionally, the computational efficiency of DSDrive (as reflected in its time and memory requirements during inference) has been significantly enhanced. Evidently thus, this work brings promising aspects and underscores the potential of lightweight systems in delivering interpretable and efficient solutions for AD.
BibTeX
@misc{liu2025dsdrive,
  author = {Wenru Liu and Pei Liu and Jun Ma},
  title = {{DSDrive: Distilling Large Language Model for Lightweight End-to-End Autonomous Driving with Unified Reasoning and Planning}},
  year = {2025},
  eprint = {2505.05360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.05360},
  howpublished = {arXiv},
}
Figure