Robust Depth Completion with Uncertainty-Driven Loss Functions

Yufan Zhu, Weisheng Dong, Leida Li, Jinjian Wu, Xin Li, Guangming Shi

Abstract

Depth completion is a critical task for autonomous systems, transforming sparse LiDAR data into dense depth maps. However, existing methods often struggle with noisy ground truth and blurred object boundaries. This paper proposes a robust framework that explicitly models aleatoric uncertainty using a novel loss function based on Jeffrey’s prior. By integrating a multiscale joint prediction model with an uncertainty-attention residual learning network, the approach achieves state-of-the-art performance on the KITTI benchmark, particularly in preserving fine structural details and handling noisy sensor data.

Introduction

Autonomous vehicles and robotic systems rely heavily on LiDAR sensors to perceive their environment in 3D. While LiDAR provides accurate distance measurements, the resulting point clouds are inherently sparse. Converting these sparse points into dense depth images is essential for many computer vision tasks, yet current methods face significant hurdles. These include the uneven distribution of points (denser near the sensor), noisy ground truth generated from accumulated scans, and the blurring of object boundaries where depth discontinuities occur.

Visualizing the relationship between sparse input (top), the predicted uncertainty map (middle), and the final dense depth output (bottom).

To address these issues, this research treats depth completion as a probabilistic estimation problem, leveraging uncertainty not just as an output, but as a core mechanism for guiding the learning process.

Methodology

The proposed framework consists of two primary stages designed to capture both global structure and local refinements.

1. Uncertainty-Driven Loss with Jeffrey’s Prior

Unlike standard Mean Squared Error (MSE) loss, which treats all pixels with equal importance, the authors derive a loss function that incorporates aleatoric uncertainty (inherent data noise). By applying Jeffrey’s prior to model the distribution of this uncertainty, they create a "self-attenuating" loss. This allows the network to automatically assign high uncertainty to noisy or ambiguous pixels, reducing their influence during training and preventing them from degrading the model's accuracy.

2. Two-Stage Architecture

The architecture utilizes a U-Net-style backbone for multiscale joint prediction, followed by a refinement stage:

  • Multi-scale Joint Prediction Model: This stage predicts both a dense depth map and an uncertainty map across multiple scales (coarse-to-fine). This ensures the model captures broad environmental structures while preparing for detail refinement.
  • Uncertainty Attention Residual Learning: The initial prediction is refined by a second network that uses the predicted uncertainty map as a spatial attention mechanism. This focuses computational resources on areas where the first stage expressed the least confidence, such as object edges and distant surfaces.
The proposed two-stage framework consisting of a Multi-scale Joint Prediction Model and an Uncertainty Attention Residual Learning Network.

Results and Discussion

The model was rigorously evaluated on the KITTI Depth Completion Benchmark, comprising over 86,000 training frames.

Quantitative Performance: The method achieved top-tier results on the KITTI leaderboard, outperforming established models like NLSPN and GuideNet. Key metrics included a Mean Absolute Error (MAE) of 190.88 and an Inverse Root Mean Squared Error (IRMSE) of 1.98. To balance the trade-off between different error metrics, the authors employed an epoch-dependent balanced loss that alternates between L1 and L2 optimization.

Qualitative Improvements: Visual analysis demonstrates a superior ability to recover thin structures, such as vertical poles and vehicle mirrors, which are typically lost in standard completion methods. Furthermore, the model maintains high efficiency, processing frames in approximately 0.07 seconds, making it viable for real-time robotics applications.

Conclusion

By explicitly modeling uncertainty through Jeffrey’s prior and a two-stage attention-based architecture, this approach significantly improves the robustness of depth completion. While the current work focuses on RGB and LiDAR fusion, future research may explore multi-modal integration with Radar to enhance performance in adverse weather conditions. Additionally, the predicted uncertainty maps offer valuable data for downstream tasks like path planning and obstacle avoidance.

Summary updated

BibTeX
@inproceedings{zhu2022robust,
  author = {Yufan Zhu and Weisheng Dong and Leida Li and Jinjian Wu and Xin Li and Guangming Shi},
  title = {{Robust Depth Completion with Uncertainty-Driven Loss Functions}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i3.20275},
}
Figure