Abstract
Deep neural networks can be roughly divided into deterministic neural networks and stochastic neural networks. The former is usually trained to achieve a mapping from input space to output space via maximum likelihood estimation for the weights, which leads to deterministic predictions during testing. In this way, a specific weights set is estimated while ignoring any uncertainty that may occur in the proper weight space. The latter introduces randomness into the framework, either by assuming a prior distribution over model parameters (i.e. Bayesian Neural Networks) or including latent variables (i.e. generative models) to explore the contribution of latent variables for model predictions, leading to stochastic predictions during testing. Different from the former that achieves point estimation, the latter aims to estimate the prediction distribution, making it possible to estimate uncertainty, representing model ignorance about its predictions. We claim that conventional deterministic neural network based dense prediction tasks are prone to overfitting, leading to over-confident predictions, which is undesirable for decision making. In this paper, we investigate stochastic neural networks and uncertainty estimation techniques to achieve both accurate deterministic prediction and reliable uncertainty estimation. Specifically, we work on two types of uncertainty estimations solutions, namely ensemble based methods and generative model based methods, and explain their pros and cons while using them in fully/semi/weakly-supervised framework. Due to the close connection between uncertainty estimation and model calibration, we also introduce how uncertainty estimation can be used for deep model calibration to achieve well-calibrated models, namely dense model calibration.
Introduction
Standard deep neural networks are deterministic: they take an input and produce a single output. While powerful, these models are notoriously overconfident and provide no built-in mechanism to signal when they are guessing or when input data is noisy. In "dense prediction" tasks—where every pixel requires a prediction—this lack of self-awareness is a major hurdle for safety-critical applications like autonomous driving. This paper addresses the challenge of decomposing uncertainty into two distinct types: Aleatoric Uncertainty (inherent noise in the data) and Epistemic Uncertainty (uncertainty in the model itself due to lack of training data).
Methods for Stochastic Prediction
The authors categorize and evaluate several strategies for moving beyond point predictions:
- Ensemble-based Methods: These approximate the posterior distribution of model weights using techniques like MC-dropout, Deep Ensembles, and Snapshot ensembles.
- Generative Models: Latent variables ($z$) are used to model the distribution of possible outputs via Conditional Variational Autoencoders (CVAE), Generative Adversarial Networks (GAN), and Energy-based Models (EBM).
- Bayesian Latent Variable Model (BLVM): A unified framework combining Bayesian Neural Networks (for epistemic uncertainty) with generative models (for aleatoric uncertainty).
Uncertainty Consistency Loss
A key technical contribution is the Uncertainty Consistency Loss. This loss function regularizes "dual-head" networks that predict both a mean and a variance, preventing the model from falling into "trivial solutions" where it simply ignores the uncertainty estimation to minimize standard loss.
Experimental Setup
The study evaluates these methods across four distinct dense prediction tasks and their respective datasets:
- Salient Object Detection: DUTS, DUT, HKU-IS, and PASCAL-S.
- Camouflaged Object Detection: COD10K, CAMO, CHAMELEMON, and NC4K.
- Monocular Depth Estimation: NYUv2 and KITTI.
- Image Deblurring: GoPro, HIDE, and RealBlur-J.
Key Insights and Results
Aleatoric uncertainty maps tend to highlight object boundaries and regions with labeling noise. In contrast, epistemic uncertainty highlights "hard" regions—like a camouflaged animal—that the model hasn't seen enough of during training.
- Accuracy vs. Uncertainty: MC-dropout was found to be highly stable, maintaining deterministic accuracy while providing useful uncertainty maps. In camouflaged object detection, EBM-based generative models actually improved deterministic accuracy (F-measure of .777 vs .757 for the base model), suggesting that modeling the distribution helps the model learn more robust features.
- Efficiency: While sampling (running the model many times) is the gold standard for uncertainty, it is computationally expensive. The proposed Uncertainty Consistency Loss allows a dual-head network to mimic sampling-based uncertainty in a single, efficient forward pass.
Conclusion and Future Directions
While effective, stochastic methods face challenges: Deep Ensembles require significantly more training time, and generative models like GANs and EBMs are sensitive to hyper-parameters. Moving forward, the authors suggest focusing on Dense Model Calibration, using pixel-level uncertainty maps to automatically "soften" predictions in high-risk areas without sacrificing overall precision, leading to more reliable decision-making systems.
Summary updated