LMDepth: Lightweight Mamba-based Monocular Depth Estimation for Real-World Deployment
Jiahuan Long, Xin Zhou
TL;DR
LMDepth addresses the need for accurate monocular depth estimation on resource-constrained devices by introducing a lightweight Mamba-based architecture that captures global context with a Modified Pyramid Spatial Pooling head and decodes depth via Depth Mamba Blocks. The approach combines an efficient image encoder, semantic scene guidance, and linear-complexity feature fusion to produce depth distributions over learned bins, enabling end-to-end depth maps with low FLOPs. It delivers state-of-the-art performance among lightweight methods on NYUDv2 and KITTI, while supporting real-world embedded deployment through ONNX export and INT8 quantization, achieving substantial model size reductions and speedups with minimal accuracy loss. Overall, LMDepth demonstrates that Mamba-based State Space Models can rival Transformer-based methods in accuracy while markedly improving efficiency, offering practical deployment benefits for autonomous systems and edge devices.
Abstract
Monocular depth estimation provides an additional depth dimension to RGB images, making it widely applicable in various fields such as virtual reality, autonomous driving and robotic navigation. However, existing depth estimation algorithms often struggle to effectively balance performance and computational efficiency, which poses challenges for deployment on resource-constrained devices. To address this, we propose LMDepth, a lightweight Mamba-based monocular depth estimation network, designed to reconstruct high-precision depth information while maintaining low computational overhead. Specifically, we propose a modified pyramid spatial pooling module that serves as a multi-scale feature aggregator and context extractor, ensuring global spatial information for accurate depth estimation. Moreover, we integrate multiple depth Mamba blocks into the decoder. Designed with linear computations, the Mamba Blocks enable LMDepth to efficiently decode depth information from global features, providing a lightweight alternative to Transformer-based architectures that depend on complex attention mechanisms. Extensive experiments on the NYUDv2 and KITTI datasets demonstrate the effectiveness of our proposed LMDepth. Compared to previous lightweight depth estimation methods, LMDepth achieves higher performance with fewer parameters and lower computational complexity (measured by GFLOPs). We further deploy LMDepth on an embedded platform with INT8 quantization, validating its practicality for real-world edge applications.
