DriveMamba: Task-Centric Scalable State Space Model for Efficient End-to-End Autonomous Driving

Haisheng Su, Wei Wu, Feixiang Song, Junjie Zhang, Zhenjie Yang, Junchi Yan

TL;DR

DriveMamba is a novel end-to-end autonomous driving framework that replaces traditional, memory-heavy Transformers with a unified Mamba (State Space Model) decoder. By utilizing linear-complexity operators and a "trajectory-guided" scanning method, it achieves superior planning performance with significantly higher efficiency—running up to 10x faster and using 68.8% less memory than Transformer-based counterparts when scaling.

Introduction & Problem Statement

Most current end-to-end autonomous driving (E2E-AD) systems follow a strict sequential pipeline: Perception $\rightarrow$ Prediction $\rightarrow$ Planning. While logical, this "manual ordering" has three major flaws:

  1. Information Loss & Cumulative Errors: Errors in the perception stage (like a missed car) propagate and amplify through the prediction and planning stages.
  2. The "Attention" Tax: Most systems rely on Transformers. The self-attention mechanism has quadratic complexity ($O(N^2)$), meaning that as you increase image resolution or the length of the driving history, the computational and memory costs explode.
  3. Rigid Modeling: These systems often rely on expensive, dense Bird’s-Eye-View (BEV) feature maps, which are difficult to scale and lack the flexibility to model complex, dynamic relationships between different sensors and tasks.
Comparison of E2E-AD paradigms

The DriveMamba Approach

The authors introduce DriveMamba, which shifts the paradigm from module-centric to task-centric modeling using a unified Mamba decoder.

DriveMamba architecture and Hybrid Spatiotemporal Scan

1. Unified Mamba Decoder

Instead of separate decoders for each task, DriveMamba uses a single-stage decoder based on State Space Models (SSMs). Unlike Transformers, Mamba has linear complexity ($O(L)$), allowing it to process massive amounts of spatiotemporal data (high-res images + long history) much more efficiently.

2. Sparse Tokenization

DriveMamba avoids dense BEV maps. Instead, it converts everything—image features, agent queries (other cars), map queries (lanes), and the ego-query (the self-driving car)—into sparse tokens. These tokens are initialized with 3D positional embeddings derived from a depth-prediction branch.

3. Hybrid Spatiotemporal Scanning

Mamba is inherently a 1D sequence model. To make it work for 3D driving scenes, the authors designed a Trajectory-Centric "Local-to-Global" scan.

  • The "Aha" Moment: Instead of scanning tokens in a simple grid, DriveMamba sorts tokens based on their proximity to the ego-vehicle’s predicted future path. This ensures the model "attends" to the most relevant objects (e.g., the car in your lane) before distant, irrelevant ones.

4. Long-Term Temporal Fusion

Because Mamba is so efficient, the model can maintain a long "FIFO" (First-In-First-Out) memory queue of past task queries, allowing the car to "remember" previous frames without the massive memory overhead of storing old BEV maps.

Key Insights

  • Linear Scaling is the Future: The most significant insight is that the "memory wall" of Transformers is a bottleneck for AD. DriveMamba proves that SSMs can handle the spatiotemporal complexity of driving with a fraction of the hardware requirements.
  • Spatial Locality via Trajectory: In driving, not all pixels are equal. By ordering the Mamba scan based on the vehicle's intended trajectory, the model naturally prioritizes the "ego-perspective," which is much more intuitive for planning than a standard computer vision raster scan.
  • Unified > Sequential: By letting detection, mapping, and planning interact simultaneously in one decoder, the model can learn "synergies"—for example, the planning task can "tell" the perception task to focus more on a specific intersection.

Results & Performance

The model was evaluated on two primary benchmarks: nuScenes (open-loop evaluation) and Bench2Drive (closed-loop CARLA simulator benchmark).

  • Speed & Efficiency: DriveMamba-Tiny runs at 17.9 FPS, which is roughly 10x faster than UniAD and 4x faster than VAD.
  • Memory Savings: When scaling up input resolution, DriveMamba consumes 68.8% less GPU memory than Transformer-based models.
  • Superior Planning: On the Bench2Drive closed-loop benchmark, DriveMamba-Tiny achieved a 53.54 Driving Score, significantly outperforming previous state-of-the-art models like UniAD (45.81) and VAD (42.35).
  • Robustness: The model showed high stability even when depth prediction or camera calibration was slightly noisy, thanks to its direct interaction with raw sensor features rather than relying on a fragile BEV transformation.

Limitations and Future Work

  • Entanglement: The authors note that the "excessive entanglement" of the unified framework can make it harder to debug. If the car makes a mistake, it’s harder to pinpoint if it was a "perception failure" or a "planning failure" because the tasks are so deeply integrated.
  • Hybrid Modeling: Future work could explore a better balance between "joint" (unified) and "divided" (modular) modeling to improve interpretability without sacrificing the performance gains of the unified approach.
  • Real-World Deployment: While the results in simulation (CARLA) are impressive, the next step is testing how these linear-complexity models handle the unpredictable edge cases of real-world urban driving.

Summary updated

BibTeX
@inproceedings{su2026drivemamba,
  author = {Haisheng Su and Wei Wu and Feixiang Song and Junjie Zhang and Zhenjie Yang and Junchi Yan},
  title = {{DriveMamba: Task-Centric Scalable State Space Model for Efficient End-to-End Autonomous Driving}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=MY0NHvqzi2},
}
Figure