SpaceDrive: Infusing Spatial Awareness into VLM-based Autonomous Driving

Peizheng Li, Zhenghao Zhang, David Holtz, Hang Yu, Yutong Yang, Yuzhi Lai, Rui Song, Andreas Geiger, Andreas Zell

TL;DR

SpaceDrive infuses explicit 3D spatial awareness into Vision-Language Models (VLMs) for autonomous driving by replacing text-based coordinate tokens with a unified 3D positional encoding. This allows the model to seamlessly link visual semantics with metric geometry and directly regress precise driving trajectories, achieving state-of-the-art open-loop and robust closed-loop performance.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) excel at high-level scene understanding and counterfactual reasoning, making them highly attractive for end-to-end autonomous driving. However, they suffer from a critical flaw: they are fundamentally bad at fine-grained 3D geometry.

This limitation stems from two main factors:

  1. Lack of 3D Grounding: VLMs are primarily pre-trained on 2D web data, meaning they struggle to associate 3D coordinates with corresponding objects and 2D perspective semantics.
  2. The Tokenization Flaw: Language models treat numbers textually—processing them digit-by-digit as discrete classification targets. This means a VLM doesn't inherently understand that 1.99 is spatially close to 2.00, leading to rough guesses, jittery trajectory predictions, and catastrophic failures in closed-loop control.
Figure 1. Spatial awareness in VLM-based end-to-end autonomous driving. (a) Constrained by insufficient 3D pre-training and discrete token-wise encoding, existing end-to-end planners based on the VLM struggle to precisely ground, associate, and predict 3D spatial positions, limiting their planning capabilities. (b) Our proposed SpaceDrive planner introduces a unified 3D coordinate encoding to replace the original VLM’s textual digit tokens and augment visual features, achieving explicit association with 2D perspective semantics to enhance joint spatial reasoning for E2E planning. Compared to current VLM-based methods, it achieves state-of-the-art driving capability in the nuScenes open-loop evaluation and the second-best driving performance in the Bench2Drive closed-loop simulation.

Methods

The authors introduce SpaceDrive, a framework that abandons textual digit tokens for spatial coordinates, treating them instead as explicit, continuous positional encodings (PEs).

The architecture consists of three main pillars:

  • Spatial Token Injection (Perception): A frozen depth estimator (UniDepthv2) extracts metric depth from multi-view camera inputs. Patch centers from the images are projected into explicit 3D coordinates $(x, y, z)$ and encoded using a 3D sine-cosine positional encoding. These 3D PEs are added directly to the visual tokens with a learnable normalization factor ($\alpha_{PE}$) to prevent disrupting the pre-trained VLM's embedding space.
  • Coordinate Tokenization (Reasoning): When text prompts or historical ego-states contain spatial coordinates, SpaceDrive bypasses the standard text tokenizer. Instead, it extracts the raw numeric values and encodes them using the exact same 3D PE encoder, creating a unified geometric language across vision, text, and history. A special indicator token (<IND>) is placed before these encodings to prevent semantic confusion.
  • Continuous Regression (Planning): At the output stage, when the VLM emits the <IND> token, the subsequent embedding is routed away from the standard language head and into a dedicated PE Decoder (a learnable MLP). This decoder directly regresses continuous 3D coordinates optimized via Huber loss, bypassing the flawed digit-by-digit text generation.
Figure 2. SpaceDrive framework. Beyond the base VLM, a frozen depth estimator predicts dense metric depths from surround-view images, which are projected into 3D coordinates and encoded by a universal PE encoder to augment visual tokens with spatial cues. BEV coordinates in text prompts are encoded by the same PE encoder, replacing the original coordinate tokens and preceded by the PE indicator ⟨IND⟩. At the output stage, the recognized PE is passed through a PE decoder to obtain the final coordinates for trajectory planning.

Datasets

The framework was evaluated on two major benchmarks:

  • nuScenes: Used for open-loop planning evaluation. The model predicts 6 waypoints over a 3-second horizon, evaluated using L2 displacement error, collision rate, and map intersection rate.
  • Bench2Drive: A challenging closed-loop benchmark executed within the CARLA V2 simulator. It features 220 short routes across 44 interactive scenarios (e.g., overtaking, merging, emergency braking), measuring Driving Score and Success Rate.

Key Insights and Ideas

  • A Shared Geometric Language: By using the identical 3D sine-cosine encoder for image patches, textual prompts, and ego-history, the VLM can directly index and attend to spatially grounded visual features.
  • Regression Over Classification: Swapping out the token classification head for a continuous MLP regression decoder fixes the "digit-by-digit" generation flaw of standard language models, providing the precision required for actual vehicle control.
  • BEV is Not Mandatory: Unlike many modern end-to-end driving pipelines that rely on computationally heavy Bird's-Eye-View (BEV) grid transformations, SpaceDrive demonstrates that injecting explicit 3D positional context directly onto 2D image patches is sufficient for accurate spatial reasoning.

Key Results

  • Open-Loop (nuScenes): SpaceDrive+ achieved state-of-the-art performance among VLM-based methods, yielding an average L2 waypoint error of 0.32m, a collision rate of 0.23%, and an intersection rate of 1.27%.
  • Closed-Loop (Bench2Drive): SpaceDrive+ achieved a 78.02 Driving Score and a 55.11% Success Rate, ranking as the second-best VLM-based planner. Crucially, it completely revitalized its baseline codebase (OmniDrive), which previously failed drastically in closed-loop simulations (under 10% success rate) due to text-based trajectory collapse.

Limitations and Future Work

Despite its strong planning performance, the authors note two primary limitations:

  1. Uncertainty Handling: The framework currently lacks explicit mechanisms to model or output spatial uncertainty, which is vital for safety-critical deployment.
  2. Temporal Memory: SpaceDrive operates without multi-frame temporal memory, relying instead on historical ego-waypoints. Integrating long-horizon video or memory states remains an open direction for handling highly dynamic or occluded environments.

Summary updated

BibTeX
@inproceedings{li2026spacedrive,
  author = {Peizheng Li and Zhenghao Zhang and David Holtz and Hang Yu and Yutong Yang and Yuzhi Lai and Rui Song and Andreas Geiger and Andreas Zell},
  title = {{SpaceDrive: Infusing Spatial Awareness into VLM-based Autonomous Driving}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=Co0yZX5vFL},
}
Figure