Parameter-efficient Bayesian Neural Networks for Uncertainty-aware Depth Estimation

Richard D. Paul, Alessio Quercia, Vincent Fortuin, Katharina Nöh, Hanno ScharrarXiv 2024 · DOI

Introduction

In safety-critical domains such as autonomous driving and medical imaging, a model's ability to quantify its own uncertainty is as vital as its predictive accuracy. Monocular Depth Estimation (MDE)—predicting distance from a single image—is a key task where reliable uncertainty estimates are crucial. While Bayesian Neural Networks (BNNs) provide a robust framework for uncertainty quantification, their application to modern, large-scale vision models like Vision Transformers is often computationally prohibitive due to the millions or billions of parameters involved.

This research explores whether high-quality, uncertainty-aware predictions can be achieved by performing Bayesian inference on a tiny fraction of a model's parameters using Parameter-Efficient Fine-Tuning (PEFT) techniques.

Methodology

The authors propose a framework that combines PEFT strategies with post-hoc Bayesian inference:

  1. PEFT Subspaces: The study evaluates several PEFT methods, including LoRA (Low-Rank Adaptation), BitFit (tuning only biases), and DiffFit (tuning scalar factors and layer norms).
  2. CoLoRA (Convolutional LoRA): A novel architectural contribution designed to address the convolutional "heads" common in vision model decoders. CoLoRA applies a low-rank perturbation to convolutional kernels via Tucker-2 decomposition, extending LoRA-style efficiency to CNN components.
  3. Bayesian Inference: Instead of training BNNs from scratch, the researchers employ SWAG (Stochastic Weight Averaging Gaussians) and Checkpoint Ensembles. By starting from pre-trained, fine-tuned checkpoints ("warm start"), the models can efficiently explore high-density regions of the parameter space.

Experimental Setup

The models were evaluated using a frozen DINOv2 backbone with a DPT (Dense Prediction Transformer) decoder on two benchmark datasets: NYU Depth V2 (indoor) and KITTI (outdoor autonomous driving).

Key Results and Discussion

Accuracy vs. Efficiency

The experiments demonstrate that Bayesian PEFT combinations consistently outperform deterministic baselines in terms of Negative Log-Likelihood (NLL). This indicates that probabilistic models are not only more accurate on average but also provide more reliable confidence measures.

Figure 1: NLL vs. Fraction of active parameters across different Bayesian methods. CoLoRA shows strong performance with minimal parameter overhead.

As shown in Figure 1, CoLoRA (green) achieves competitive NLL while using only a small fraction of active parameters. The "rank" parameter in CoLoRA acts as a tunable knob, allowing practitioners to balance computational cost against predictive accuracy.

Improved Calibration

Calibration is a measure of how well a model's predicted uncertainty aligns with its actual error. The Bayesian methods showed significantly lower test loss on pixels where the model expressed high certainty.

Figure 2: Test Loss vs. Quantile. Bayesian PEFT methods generally improve calibration compared to the baseline, especially in high-certainty regions (lower quantiles).

Figure 2 illustrates that when these models are "certain" (lower quantiles), they are indeed more likely to be correct than the baseline model. This improved calibration is essential for downstream decision-making in autonomous systems.

Conclusion

This work demonstrates that parameter-efficient Bayesian inference is a viable path toward deploying uncertainty-aware large-scale vision models. By focusing on tiny parameter subspaces and introducing CoLoRA for convolutional components, the authors achieve better depth estimation and calibration without the massive compute requirements of full BNNs. Future work will address numerical stability issues in methods like SWAG-LR and investigate the non-linear relationship between rank and calibration quality on larger datasets.

Summary updated

BibTeX
@misc{paul2024parameter,
  author = {Richard D. Paul and Alessio Quercia and Vincent Fortuin and Katharina Nöh and Hanno Scharr},
  title = {{Parameter-efficient Bayesian Neural Networks for Uncertainty-aware Depth Estimation}},
  year = {2024},
  eprint = {2409.17085},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.17085},
}
Figure