3DET-Mamba: Causal Sequence Modelling for End-to-End 3D Object Detection

Mingsheng Li, Jiakang Yuan, Sijin Chen, Lin Zhang, Anyu Zhu, Xin Chen, Tao Chen

TL;DR

3DET-Mamba is the first end-to-end 3D object detector to successfully leverage Mamba State Space Models (SSMs). By replacing the computationally expensive attention mechanism of Transformers with linear-complexity SSMs, the model achieves state-of-the-art performance on indoor 3D benchmarks while scaling far more efficiently to high-resolution point clouds.

The Problem: The Computational Wall of 3D Transformers

Detecting objects in 3D point clouds is a fundamental challenge in computer vision, complicated by the fact that point clouds are irregular, sparse, and unordered. While Transformer-based models like 3DETR have shown great promise, they inevitably hit a "computational wall."

The self-attention mechanism at the heart of Transformers has quadratic complexity ($O(N^2)$). This means that as you increase the resolution of the point cloud to capture finer details, the memory and processing requirements explode.

Recently, Mamba (a type of State Space Model) has emerged as a powerful alternative in language modeling due to its linear complexity ($O(N)$) and its ability to handle very long sequences. However, Mamba is inherently "causal"—it expects data in a specific 1D order (like words in a sentence). Point clouds have no natural order, and they require a deep understanding of both local geometry and global context. This makes a direct "plug-and-play" application of Mamba ineffective for 3D detection.

Methods: Bridging 1D Causal Modeling and 3D Space

The authors introduce 3DET-Mamba, an encoder-decoder architecture specifically designed to translate unordered 3D spatial data into structured sequences that Mamba can process effectively.

Overall architecture of 3DET-Mamba

The architecture relies on three specialized modules:

  1. Inner Mamba (Local Geometry): The model first divides the point cloud into patches. Within each patch, points are sorted by their distance from the center. This "serialized" sequence is fed into a lightweight Inner Mamba block to capture fine-grained local geometric features.
  2. Dual Mamba (Global Context): To understand the whole scene, the model uses a Dual Mamba module that processes patch embeddings in two distinct orders:
  3. Farthest Point Sampling (FPS) order: Maximizes distances between adjacent points in the sequence to help the model perceive the overall spatial distribution.
  4. Nearest Neighbor (NPS) order: Ensures adjacent points in the sequence are spatial neighbors, maintaining local continuity.
  5. Query-aware Mamba (Decoder): Instead of standard cross-attention, the decoder uses a specialized Mamba block. It takes learnable "box queries" and decodes them against the scene features to generate the final 3D bounding boxes and object categories.

Key Insights

  • Ordering is the Secret Sauce: The most significant insight is that you can use a causal 1D model for 3D data if you are clever about how you sequence it. By using distance-based sorting for local patches and FPS/NPS for global context, the authors effectively "tricked" Mamba into understanding 3D space.
  • Efficiency Enables Resolution: Because Mamba scales linearly, 3DET-Mamba can handle much longer sequences (more points and more queries) than its Transformer predecessors. The "Mamba†" version of the model uses 4,096 points and 512 queries, leading to a massive performance boost that would be computationally prohibitive for a standard Transformer.
  • Local-to-Global Scanning: The hierarchy of Inner-to-Dual Mamba mimics human perception—focusing on the specific details of an object while simultaneously understanding its place within the larger room layout.

Key Results

The model was evaluated on two gold-standard indoor 3D object detection benchmarks: ScanNet V2 (rich indoor scenes with axis-aligned bounding boxes) and SUN RGB-D (single-view RGB-D scans with rotated bounding boxes).

Performance comparison on ScanNet and SUN RGB-D

3DET-Mamba significantly outperforms the previous baseline, 3DETR, across the board:

Ablation studies further proved the necessity of these custom modules. Replacing the Inner Mamba with a standard PointNet++ layer or the Dual Mamba with a Transformer resulted in lower accuracy, confirming that the Mamba-based "scanning" approach is superior for this task.

Limitations and Future Work

While 3DET-Mamba is a breakthrough for point cloud processing, the authors note a few areas for growth:

  • Data Types: The current model is optimized for point clouds; its effectiveness on other 3D representations, such as meshes or voxels, remains unexplored.
  • Foundation Models: The authors suggest that this architecture could serve as a backbone for a "3D Foundation Model," capable of handling more complex tasks like 3D dense captioning, visual grounding, and 3D Question Answering (QA).
  • Causality Constraints: While the dual-ordering helps, Mamba is still fundamentally a directional model. Exploring even more complex multi-directional scanning patterns might yield further gains.

Summary updated

BibTeX
@inproceedings{li2024det,
  author = {Mingsheng Li and Jiakang Yuan and Sijin Chen and Lin Zhang and Anyu Zhu and Xin Chen and Tao Chen},
  title = {{3DET-Mamba: Causal Sequence Modelling for End-to-End 3D Object Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=iOleSlC80F},
}
Figure