Efficient Ensemble Model Generation for Uncertainty Estimation with Bayesian Approximation in Segmentation

Hong Joo Lee, Seong Tae Kim, Hakmin Lee, Nassir Navab, Yong Man RoarXiv 2020

Abstract

Reliable uncertainty estimation is critical for safety-sensitive semantic segmentation tasks, such as autonomous driving and medical imaging. However, traditional ensemble methods incur a high "ensemble tax" in terms of memory and computational overhead. This paper presents a novel framework that leverages stochastic layer selection to generate a massive ensemble of model combinations with minimal parameter growth. By introducing a two-stage training process and a pixel-wise uncertainty loss, the proposed method achieves superior segmentation accuracy and more reliable uncertainty estimates compared to standard Bayesian approximations and traditional ensembles.

Introduction

Deep learning models often exhibit overconfidence, leading to potentially catastrophic errors in domains like autonomous driving or medical diagnosis. For instance, a segmentation model might misclassify a pedestrian with near-certainty. While ensembles and Bayesian approximations (e.g., MC-dropout) are common solutions for uncertainty estimation, they are often limited by high computational costs or lower-quality estimates. This research addresses the "ensemble tax" by proposing an efficient method to generate diverse model ensembles through combinatorial layer selection.

Methodology

The core of the proposed framework is a two-stage training process designed to maximize ensemble diversity while maintaining parameter efficiency.

Stochastic Layer Selection

The authors introduce a "model set" architecture consisting of $M$ submodels, each with $L$ layers. During both training and inference, a specific path is formed by stochastically selecting one version of each layer from the $M$ available options. This combinatorial approach allows for $M^L$ unique model combinations. For a standard U-Net architecture ($L=18, M=2$), this results in over 262,000 possible ensemble members, despite only doubling the total parameters compared to a single model.

Two-Stage Training and Uncertainty Loss

The training is divided into two distinct phases:

  1. Learning for Bayesian Approximation: The model is trained using standard cross-entropy loss to establish baseline segmentation performance.
  2. Pixel-wise Uncertainty Aware Training: The model generates multiple samples to estimate pixel-wise uncertainty. A novel Pixel-wise Uncertainty Loss is then applied, which re-weights the training signal to focus on regions of high disagreement among ensemble members. This forces the network to refine its predictions in its most uncertain areas.
Overview of the two-step training framework: Stochastic Layer Selection and Pixel-wise Uncertainty Aware Training.

Experimental Evaluation

The framework was evaluated on two high-stakes datasets: CamVid (road scene understanding) and TVUS (transvaginal ultrasound for endometrium segmentation).

Performance and Efficiency

On the CamVid dataset, the proposed "DenseNet-2" configuration achieved a 68.2% mIoU, significantly outperforming standard DenseNet (66.9%) and Bayesian SegNet (63.1%). In the medical domain (TVUS), the method reached an 83.51% Dice Coefficient, surpassing the standard U-Net (82.30%). Notably, the method achieved these gains while using approximately 60% fewer parameters than a traditional 5-model ensemble.

Robustness and Reliability

Beyond accuracy, the method demonstrates improved reliability. By implementing a "rejection" strategy—where the model flags highly uncertain pixels rather than making a prediction—the accuracy on the remaining pixels increases substantially. Furthermore, the stochastic nature of the layer selection provides inherent resistance to adversarial attacks, as the gradient becomes harder for an attacker to estimate.

Discussion and Conclusion

This research demonstrates that ensemble benefits can be achieved without the prohibitive memory costs typically associated with multi-model systems. By treating uncertainty as a training signal rather than just an output, the model learns to improve its own weak points.

While the method is highly parameter-efficient, it does introduce trade-offs in training and inference time due to the need for multiple forward passes to generate uncertainty maps. Future work may focus on optimizing these latencies for real-time applications. Overall, the stochastic layer selection framework offers a scalable and effective path toward safer, more reliable AI in critical segmentation tasks.

Summary updated

BibTeX
@misc{lee2020efficient,
  author = {Hong Joo Lee and Seong Tae Kim and Hakmin Lee and Nassir Navab and Yong Man Ro},
  title = {{Efficient Ensemble Model Generation for Uncertainty Estimation with Bayesian Approximation in Segmentation}},
  year = {2020},
  eprint = {2005.10754},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.10754},
}
Figure