Bayesian Deep Basis Fitting for Depth Completion with Uncertainty

Chao Qu, Wenxin Liu, Camillo J. TaylorICCV 2021 · DOI

Abstract

Depth completion is a critical task for autonomous systems, requiring the fusion of sparse LiDAR data with dense RGB imagery. However, standard deep learning approaches often lack reliable uncertainty estimates, which are vital for safety-critical decision-making. This paper presents Bayesian Deep Basis Fitting (BDBF), a novel framework that treats depth completion as a Bayesian linear regression over learned basis functions. By incorporating a learned shared prior and an analytical posterior, BDBF provides well-calibrated, per-pixel uncertainty estimates in a single forward pass. Our method demonstrates state-of-the-art performance in uncertainty quantification and maintains robustness across varying levels of input sparsity, including the challenging monocular-only case.

Introduction

In the realms of autonomous driving and robotics, the ability to quantify the confidence of a sensor's prediction is as paramount as the prediction itself. Depth completion—the process of generating a dense depth map from sparse LiDAR points and a corresponding RGB image—serves as a foundational component for navigation and obstacle avoidance. While Deep Convolutional Neural Networks (CNNs) have significantly advanced the state-of-the-art in depth completion, they typically produce deterministic "point estimates." These single-value-per-pixel outputs offer no measure of confidence, making it difficult for downstream systems to handle potential errors or sensor noise.

Existing probabilistic approaches to depth completion often face significant hurdles. Sampling-based methods, such as Monte Carlo Dropout or Deep Ensembles, are computationally intensive, requiring multiple forward passes that hinder real-time deployment. Predictive methods that output mean and variance frequently suffer from poor calibration, where the predicted uncertainty does not accurately reflect the actual error. Furthermore, many models are sensitive to the density of the input sparse data, failing to generalize across different sensor configurations.

Methods

BDBF builds upon the Deep Basis Fitting (DBF) architecture. In a standard DBF setup, the network's final layer is replaced with a differentiable least-squares module. The network learns to generate a set of $M$ "depth bases"—spatial templates representing the scene's structure—and calculates the weights for these bases by fitting them to the available sparse depth measurements.

The BDBF architecture: A network extracts basis functions $\Phi$ from input $\mathbf{x}$, which are then combined with weights $\mathbf{w}$ sampled from a Bayesian posterior to produce the dense depth $D$.

The Bayesian extension (BDBF) introduces a probabilistic framework for these basis weights. By treating the weights as random variables within a Bayesian evidence framework, the model gains several advantages:

  1. Shared Prior: A global prior distribution for the weights is learned across the training dataset. This acts as a "monocular prior," allowing the model to provide reasonable depth estimates even in regions devoid of sparse LiDAR points.
  2. Analytical Posterior: Due to the linear nature of the final layer, the posterior distribution of the weights can be computed analytically via Bayes' rule. This enables the simultaneous output of mean depth and per-pixel variance in a single, efficient forward pass.
  3. Calibration via NEES: To ensure the uncertainty estimates are reliable, the authors utilize Normalized Estimation Error Squared (NEES). While the model is trained with a robust L1 loss for stability, NEES is used post-training to scale the predicted variance, aligning the uncertainty with the observed error distribution.

Experiments and Datasets

The BDBF framework was rigorously evaluated on three prominent benchmarks:

  • Virtual KITTI 2 (VKITTI2): A synthetic outdoor dataset providing diverse environmental conditions.
  • NYU Depth V2: A standard indoor RGB-D dataset.
  • KITTI Depth Completion: A large-scale real-world outdoor benchmark for autonomous driving.

Results and Discussion

BDBF achieves superior uncertainty quantification compared to baselines like Snapshot Ensembles and Predictive Log models. This is evidenced by lower scores in Area Under the Sparsification Error curve (AUSE) and Area Under the Calibration Error curve (AUCE), indicating that BDBF's uncertainty estimates are better at both ranking pixel reliability and providing accurate absolute error bounds.

Qualitative results on KITTI (left) and NYU-V2 (right). BDBF produces dense depth maps and corresponding uncertainty maps that closely align with the actual prediction errors.

In terms of accuracy, BDBF remains highly competitive. On the KITTI test set, it achieved a Mean Absolute Error (MAE) of 216.44mm, performing similarly to state-of-the-art methods that often rely on more complex, iterative refinement processes. A key strength of BDBF is its sparsity invariance; the mathematical formulation allows it to handle varying LiDAR densities—from 5% down to 0% (pure monocular depth)—without specialized tuning.

Efficiency is another hallmark of the BDBF approach. By avoiding the multiple forward passes required by ensemble methods, BDBF maintains a high throughput. It runs at approximately 24ms for a 320x240 image, making it suitable for the real-time constraints of autonomous systems.

Conclusion

Bayesian Deep Basis Fitting offers a robust and efficient solution for image-guided depth completion with reliable uncertainty. By framing the problem as a Bayesian linear regression over learned bases, the model provides well-calibrated confidence estimates and handles varying data sparsity gracefully. Future work may involve integrating BDBF into full SLAM pipelines and exploring internal depth/uncertainty estimation to further reduce dependency on external pre-processing steps.

Summary updated

BibTeX
@inproceedings{qu2021bayesian,
  author = {Chao Qu and Wenxin Liu and Camillo J. Taylor},
  title = {{Bayesian Deep Basis Fitting for Depth Completion with Uncertainty}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01584},
}
Figure