LMDepth: Lightweight Mamba-based Monocular Depth Estimation for Real-World Deployment

Jiahuan Long, Xin ZhouarXiv 2025 · DOI

Abstract

Monocular depth estimation (MDE) is a critical task for providing depth information from single RGB images, with applications ranging from autonomous driving to robotic navigation. However, balancing high-precision performance with computational efficiency remains a significant challenge for deployment on resource-constrained edge devices. We propose LMDepth, a lightweight Mamba-based network designed to reconstruct accurate depth maps with minimal overhead. LMDepth utilizes a modified pyramid spatial pooling (MPSP) module for multi-scale feature aggregation and context extraction. Furthermore, we integrate multiple Depth Mamba Blocks (DMB) into the decoder, leveraging the linear computational complexity of State Space Models (SSMs) to achieve global receptive fields without the quadratic costs of Transformers. Extensive evaluations on NYUDv2 and KITTI datasets show that LMDepth outperforms existing lightweight methods in both accuracy and efficiency. Real-world deployment on an embedded platform confirms its practicality, achieving 122 FPS with INT8 quantization.

Introduction

Predicting a 3D depth map from a single 2D RGB image is essential for autonomous systems like drones and self-driving cars. Deploying these models on edge devices is difficult due to the inherent trade-offs in current architectures. CNN-based models are efficient but often lack the global context necessary for accurate depth estimation in complex scenes. Conversely, Transformer-based models capture global context effectively via attention mechanisms but suffer from quadratic computational complexity, making them unsuitable for real-time edge applications.

LMDepth addresses this gap by utilizing Mamba, a recent breakthrough in State Space Models (SSMs). Mamba offers the global receptive field of Transformers but maintains the linear computational scaling of CNNs, providing a powerful yet efficient alternative for dense vision tasks.

LMDepth Architecture

The LMDepth architecture is designed for maximum efficiency while preserving global spatial awareness. It consists of three primary components:

  1. MobileNetV2 Encoder: A lightweight CNN backbone extracts multi-scale visual features from the input image.
  2. Modified Pyramid Spatial Pooling (MPSP): This module serves as a multi-scale feature aggregator. It processes encoder features to generate global spatial context, depth distribution bins, and an auxiliary scene classification to improve context awareness.
  3. Depth Mamba Block (DMB): The core innovation of LMDepth. Multiple DMBs are integrated into the decoder to fuse image and depth features. By reshaping features into 1D tokens and processing them through VisionMamba (Vmamba) modules, the network achieves a global receptive field with linear time complexity.
Overview of the LMDepth architecture, highlighting the MPSP and DMB modules.

The final depth prediction is computed by multiplying the probability maps from the DMBs with the depth bins generated by the MPSP module, ensuring a stable and accurate output.

Experimental Results

LMDepth was evaluated on the NYUDv2 (indoor) and KITTI (outdoor) benchmarks, consistently outperforming both lightweight CNNs and heavier Transformer-based models.

  • Indoor Performance (NYUDv2): LMDepth achieved a $\delta_1$ accuracy of 0.833 using only 0.72 GFLOPs and 2.9M parameters. In comparison, GuideDepth required 2.63 GFLOPs for a lower accuracy of 0.823.
  • Outdoor Performance (KITTI): On high-resolution driving data, LMDepth reached a $\delta_1$ accuracy of 0.926 with just 4.05 GFLOPs, whereas competing models like GuideDepth required over 16 GFLOPs for inferior results.
Accuracy vs. Parameters on the NYU Depth V2 dataset. LMDepth (Ours) demonstrates superior accuracy with significantly fewer parameters than most competitors.

Real-World Deployment

To validate its readiness for edge AI, the authors deployed LMDepth on an NVIDIA Jetson AGX Xavier. After INT8 quantization, the model size was reduced to 2.63 MB (a 90% reduction) and achieved a real-time throughput of 122 FPS. This demonstrates that LMDepth can provide high-fidelity depth information in real-time on hardware with limited power budgets.

Conclusion

LMDepth demonstrates that Mamba-based architectures are a highly viable alternative to Transformers for dense prediction tasks like monocular depth estimation. By combining the efficiency of SSMs with a novel multi-scale pooling strategy, LMDepth sets a new benchmark for lightweight MDE. Future work will explore the application of Mamba-based blocks to other resource-constrained computer vision challenges, further bridging the gap between high-performance research and real-world edge deployment.

Summary updated

BibTeX
@misc{long2025lmdepth,
  author = {Jiahuan Long and Xin Zhou},
  title = {{LMDepth: Lightweight Mamba-based Monocular Depth Estimation for Real-World Deployment}},
  year = {2025},
  eprint = {2505.00980},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.00980},
  howpublished = {arXiv},
}
Figure