Unleashing the Potential of Mamba: Boosting a LiDAR 3D Sparse Detector by Using Cross-Model Knowledge Distillation

Rui Yu, Runkai Zhao, Jiagen Li, Qingsong Zhao, Songhao Zhu, HuaiCheng Yan, Meng WangarXiv 2024 · DOI

TL;DR

The FASD (Faster LiDAR 3D object detection) framework bridges the gap between high-accuracy Transformers and high-efficiency Mamba models for 3D point cloud detection. By distilling the global contextual knowledge of a Transformer-based "Teacher" into a Mamba-based "Student," the authors achieve a 4x reduction in resource consumption and a 2x speedup while improving detection accuracy by 1-2% over current state-of-the-art methods.

Introduction: The Accuracy-Efficiency Trade-off

LiDAR-based 3D object detection is a cornerstone of autonomous driving, but it faces a classic trade-off: accuracy vs. efficiency.

  1. Transformers are the current gold standard for accuracy because their attention mechanisms capture global context. However, their computational cost grows quadratically ($O(N^2)$) with the number of points, making them resource-intensive for real-time systems.
  2. Mamba (State Space Models) offers a promising alternative with linear complexity ($O(N)$). While Mamba is fast, it struggles with 3D spatial data because it processes information recursively, often "forgetting" global spatial relationships and positional cues that Transformers handle naturally.

The FASD framework tackles the challenge of making Mamba "smarter" at spatial reasoning without losing its inherent speed advantages.

Methodology: The FASD Framework

The researchers propose a Teacher-Student distillation strategy to imbue the Mamba student with the teacher's global perspective.

Architecture and Distillation

  • The Teacher (Transformer-based): Enhanced with Dynamic Voxel Grouping and Adaptive Attention to capture multi-scale global context and local spatial details.
  • The Student (Mamba-based): Replaces heavy Transformer layers with efficient Mamba blocks.
  • Cross-Model Knowledge Distillation: To align these heterogeneous architectures, FASD uses a Voxel Adapter to identify common non-empty voxels for "apples-to-apples" feature alignment. Furthermore, Span-Head Distillation maps features into a uniform logit space, using KL divergence to ensure the student's probability distributions match the teacher's.
The FASD framework architecture, illustrating the distillation process from a Transformer-based Teacher to a Mamba-based Student.

Evaluation and Results

The model was evaluated on the Waymo Open Dataset and nuScenes benchmarks, demonstrating superior performance across the board.

Key Performance Metrics

  • Superior Accuracy: On the Waymo dataset, the Mamba-based student achieved 81.43% mAP (L1), outperforming the Transformer-based DSVT (~79%) and other sparse detectors like SAFDNet (~80%).
  • Massive Speedup: FASD achieved 18.46 FPS, nearly double the speed of DSVT (9.58 FPS).
  • Memory Efficiency: The framework reduced memory consumption to just 596 MiB, compared to nearly 4,000 MiB for DSVT—a roughly 4x reduction.
Comparison of FASD-student against state-of-the-art models across Waymo and nuScenes metrics.

Key Insights and Discussion

  • Distillation as a Bridge: The "aha moment" is that the heavy Transformer is only needed during training to "teach" the Mamba model how to weigh global context.
  • The Alignment Problem: In sparse 3D detection, different models generate different voxel indices. The Voxel Adapter is critical for precise knowledge transfer between fundamentally heterogeneous architectures.
  • Efficiency is Non-Linear: While Mamba’s FLOPs grow linearly with sequence length, the Transformer’s grow exponentially. This makes the Mamba student significantly more scalable for high-resolution LiDAR sensors.

Limitations and Future Work

Despite closing the performance gap, a feature distribution gap remains between the student and teacher. Future work will focus on refining multi-scale feature fusion for Mamba and extending this approach to temporal (multi-frame) sequences for even more robust autonomous perception.

Summary updated

BibTeX
@misc{yu2024unleashing,
  author = {Rui Yu and Runkai Zhao and Jiagen Li and Qingsong Zhao and Songhao Zhu and HuaiCheng Yan and Meng Wang},
  title = {{Unleashing the Potential of Mamba: Boosting a LiDAR 3D Sparse Detector by Using Cross-Model Knowledge Distillation}},
  year = {2024},
  eprint = {2409.11018},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.11018},
}
Figure