MPDrive: Improving Spatial Understanding with Marker-Based Prompt Learning for Autonomous Driving

Zhiyuan Zhang, Xiaofan Li, Zhihao Xu, Wenjie Peng, Zijian Zhou, Miaojing Shi, Shuangping Huang

Introduction

Autonomous driving systems are increasingly leveraging Multi-modal Large Language Models (MLLMs) to perform complex tasks like Autonomous Driving Visual Question Answering (AD-VQA). These models aim to answer critical questions regarding scene perception, object identification, and planning decisions. However, a significant hurdle remains: spatial understanding.

The Spatial Gap in AD-VQA

Current MLLMs typically represent object locations using raw text coordinates (e.g., <x, y>). This approach suffers from two main drawbacks. First, there is a semantic gap; numerical coordinates lack inherent linguistic meaning for a language model, making it difficult to associate "1018.5" with "the car on the left." Second, there is an expressive burden, as asking a language-centric model to predict precise floating-point values often leads to hallucinations or inaccuracies.

The MPDrive Framework

To address these issues, MPDrive introduces a marker-based approach that transforms coordinate-based regression into a simpler text-based indexing task.

1. Visual Marker System

MPDrive utilizes a pre-trained detection expert to identify key traffic elements. Instead of raw coordinates, it overlays the image with numerical IDs and semi-transparent masks. This converts the difficult task of spatial regression into a straightforward indexing problem for the LLM.

The Visual Marker System overlays numerical IDs on detected objects to simplify spatial reasoning.

2. Marker ControlNet (MCNet) and PSPL

The framework consists of several key components designed to preserve visual detail while enhancing spatial awareness.

The MPDrive architecture, featuring Marker ControlNet and Perception-Enhanced Spatial Prompt Learning.
  • Marker ControlNet (MCNet): Inspired by ControlNet architectures, this module uses a dual-encoder setup. A frozen encoder processes the original image to maintain fine-grained details (like blinkers or vehicle color), while a trainable control block processes the marked image. These features are fused to provide the model with a spatially-aware yet detailed view.
  • Perception-Enhanced Spatial Prompt Learning (PSPL): This dual-layered strategy uses scene-level prompts for overall layout and instance-level prompts (via Mask Average Pooling) to extract specific features for each marked object, ensuring the LLM understands exactly what each ID refers to.

Evaluation and Key Results

MPDrive was evaluated on the DriveLM (multi-view) and CODA-LM (corner-case) benchmarks, achieving state-of-the-art (SOTA) results across the board.

  • Spatial Accuracy: On DriveLM, MPDrive's "match" score reached 13.43, nearly doubling the InternVL-2 baseline (7.59).
  • General Reasoning: On CODA-LM, it achieved a General Text-Score of 41.80, significantly outperforming competitive models like Qwen-VL-Max (34.60).
  • Decision Making: The model's driving suggestions scored 58.20 on CODA-LM, demonstrating that improved spatial awareness directly translates to better planning and safety recommendations.

Conclusion and Future Work

MPDrive demonstrates that "indexing" objects via visual markers is far more effective for LLMs than coordinate regression. While the system currently depends on external detectors and lacks long-horizon temporal perception (understanding movement over time), it sets a new standard for spatial reasoning in autonomous driving AI. Future research will likely focus on mitigating error propagation from detection experts and incorporating temporal video data.

Summary updated

BibTeX
@inproceedings{zhang2025mpdrive,
  author = {Zhiyuan Zhang and Xiaofan Li and Zhihao Xu and Wenjie Peng and Zijian Zhou and Miaojing Shi and Shuangping Huang},
  title = {{MPDrive: Improving Spatial Understanding with Marker-Based Prompt Learning for Autonomous Driving}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01129},
}
Figure