Monocular Depth Distribution Alignment with Low Computation

Fei Sheng, Feng Xue, Yicong Chang, Wenteng Liang, Anlong Ming

Abstract

Monocular Depth Estimation (MDE) is a critical task for spatial awareness in robotics and autonomous systems. However, a significant performance gap persists between high-accuracy "heavyweight" models and resource-efficient "lightweight" models. This paper introduces the Distribution Alignment Network (DANet), a lightweight architecture designed to mitigate "distribution drift"—a phenomenon where small models fail to capture the global depth range of a scene. By integrating a Pyramid Scene Transformer (PST) and a novel Local-Global Optimization (LGO) strategy, DANet achieves accuracy comparable to state-of-the-art heavy models while utilizing only 1% of the computational power (FLOPs).

Introduction

Predicting 3D depth from a single 2D image is essential for applications ranging from augmented reality to autonomous driving. While large-scale models have achieved impressive results, their deployment on edge devices is limited by high computational costs. Conversely, existing lightweight models often struggle with accuracy due to a limited receptive field.

The core challenge identified in this research is Distribution Drift. While lightweight models can often reconstruct local shapes and textures, they frequently fail to estimate the global context. This results in systematic errors where the entire depth map is shifted—for instance, predicting a wall to be significantly further away than its true position, even if the wall's internal geometry is correctly rendered. DANet is designed to solve this by aligning the predicted depth distribution with the actual physical bounds of the scene.

Methodology

1. Pyramid Scene Transformer (PST)

To address the limited receptive field of standard lightweight Convolutional Neural Networks (CNNs), the authors developed the Pyramid Scene Transformer. Instead of replacing the entire backbone with a costly Vision Transformer (ViT), the PST is strategically placed at the "bottleneck" of a lightweight EfficientNet-B0 encoder.

The PST processes features at three distinct scales, using transformer layers to capture long-range dependencies. This allows the model to understand global scene structure—such as the relationship between a foreground floor and a distant wall—providing the necessary context to prevent distribution drift without the computational overhead of a full-scale transformer architecture.

2. Local-Global Optimization (LGO)

Standard training regimes rely heavily on pixel-wise loss functions, which compare individual pixels to ground truth but ignore the overall statistical distribution of the scene. DANet introduces a two-pronged global optimization strategy:

  • Min-Max Loss: This function explicitly supervises the minimum and maximum depth values within a scene. By "squeezing" the predicted range into correct physical bounds, the model is forced to respect the global depth limits of the environment.
  • Depth-Related Weighting: This strategy prioritizes the supervision of very near and very far pixels. These regions are typically the most difficult to estimate and are the primary contributors to distribution alignment errors.

Experimental Results

Computational Efficiency

DANet demonstrates remarkable efficiency, requiring only 1.5G FLOPs. In comparison to heavyweight state-of-the-art models that often exceed 100G FLOPs, DANet provides a 100x reduction in computational requirements while maintaining competitive performance.

Accuracy and Generalization

The model was evaluated on two primary benchmarks:

  • NYUDv2: On this standard indoor dataset, DANet achieved an RMS error of 0.488. This outperforms several significantly larger models, such as ResNet-50-based architectures (RMS 0.505), proving that global alignment can compensate for reduced parameter counts.
  • iBims-1: To test robustness, the researchers evaluated DANet on the iBims-1 dataset without fine-tuning. The model showed strong "zero-shot" generalization, indicating that the distribution alignment approach is effective across diverse camera setups and room layouts.

Conclusion

DANet demonstrates that the performance gap in lightweight monocular depth estimation is not solely a matter of model size, but of global context. By focusing on distribution alignment through the Pyramid Scene Transformer and Local-Global Optimization, the authors have created a model that is both highly accurate and computationally lean. Future work will focus on optimizing DANet for specific embedded hardware, such as mobile processors and drone controllers, to enable real-time, low-latency 3D perception in the field.

Summary updated

BibTeX
@inproceedings{sheng2022monocular,
  author = {Fei Sheng and Feng Xue and Yicong Chang and Wenteng Liang and Anlong Ming},
  title = {{Monocular Depth Distribution Alignment with Low Computation}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2022},
  doi = {10.1109/icra46639.2022.9811937},
}
Figure