Semi-Supervised Deep Regression with Uncertainty Consistency and Variational Model Ensembling via Bayesian Neural Networks

Weihang Dai, Xiaomeng Li, Kwang-Ting Cheng

Abstract

Training deep regression models typically requires large-scale labeled datasets, which are often prohibitively expensive or time-consuming to acquire in domains such as medical imaging. While semi-supervised learning (SSL) has flourished in classification tasks, regression presents unique challenges due to the lack of discrete confidence thresholds. This paper introduces UCVME (Uncertainty-Consistent Variational Model Ensembling), a framework that leverages Bayesian Neural Networks (BNNs) to generate high-quality pseudo-labels for unlabeled data. By enforcing consistency in aleatoric uncertainty and utilizing variational ensembling to stabilize predictions, UCVME achieves performance with only 20% of labels that is comparable to fully supervised methods.

Introduction

Deep learning's success is largely predicated on the availability of massive, high-quality labeled datasets. In fields like cardiology or facial analysis, obtaining these labels requires expert intervention, making the scaling of such models difficult. Semi-supervised learning (SSL) offers a solution by utilizing a small set of labeled data alongside a much larger pool of unlabeled data.

However, a significant gap exists between SSL for classification and SSL for regression. In classification, models can use "pseudo-labeling" by applying a threshold to class probabilities (e.g., only labeling an image if the model is >99% confident). Regression, which involves predicting continuous values, lacks this natural threshold. Without a mechanism to filter or stabilize predictions, regression models are highly susceptible to noise, often leading to a "garbage in, garbage out" cycle where poor pseudo-labels degrade model performance.

The UCVME Framework

To address the instability of semi-supervised regression, the UCVME framework introduces two primary innovations: Uncertainty Consistency and Variational Model Ensembling.

1. Uncertainty Consistency Loss

UCVME utilizes Bayesian Neural Networks (BNNs) that are designed to predict both a target value ($\hat{y}$) and an aleatoric uncertainty ($\sigma^2$). Aleatoric uncertainty captures the noise inherent in the input data itself—such as blurriness or low resolution—rather than the model's lack of knowledge.

The core insight is that since aleatoric uncertainty is a property of the input, two different models trained on the same data should perceive the same level of noise. The authors introduce a consistency loss that penalizes co-trained models if they disagree on the uncertainty of unlabeled samples. This forces the models to learn more robust feature representations by aligning their understanding of data quality.

2. Variational Model Ensembling

To generate reliable pseudo-labels, UCVME moves beyond deterministic single-pass predictions. The framework employs Monte Carlo (MC) dropout to sample multiple predictions from two separate models. By averaging these stochastic samples, the researchers create a "variational ensemble."

Mathematically, this ensembling process reduces the variance of the pseudo-labels without introducing additional bias. This stability is critical in regression, where even minor errors in a pseudo-label can propagate through the loss function and destabilize the training process. The combination of ensembling and uncertainty estimation allows the model to identify which pseudo-labels are trustworthy enough to guide the learning process.

Experimental Evaluation

The effectiveness of UCVME was tested on two diverse and challenging regression tasks:

  • Age Estimation (UTKFace): A benchmark task involving 13,144 images with labels ranging from ages 21 to 60.
  • Cardiac Function Estimation (EchoNet-Dynamic): A medical task involving over 10,000 echocardiogram videos. The goal is to estimate the Left Ventricular Ejection Fraction (LVEF), a vital metric for heart health typically requiring expert cardiological assessment.

Key Results

The results demonstrate remarkable label efficiency across both domains:

  • Label Efficiency in Age Estimation: On the UTKFace dataset, UCVME using only 20% of the available labels achieved a Mean Absolute Error (MAE) of 4.85. This performance is nearly indistinguishable from the state-of-the-art supervised method (RNDB), which achieved an MAE of 4.83 using 100% of the labels.
  • Performance in Medical Imaging: On the EchoNet dataset, UCVME outperformed all competing semi-supervised methods. With only 25% of the labels, it reached an MAE of 4.37, significantly closing the gap to the fully supervised baseline of 4.13.
  • Ablation Studies: The researchers confirmed that both the consistency loss and the ensembling components are vital. Removing either element resulted in a measurable decrease in accuracy and a loss of stability in the model's uncertainty predictions.

Discussion and Limitations

While UCVME sets a new standard for semi-supervised regression, it does come with increased computational demands. The use of Variational Model Ensembling requires multiple forward passes per image, and the co-training of two separate models results in approximately 2.3x more GigaFLOPS compared to simpler SSL approaches. Additionally, the weighting of unlabeled data ($w_{ulb}$) currently requires empirical tuning, suggesting a need for more automated hyperparameter optimization in future iterations.

Conclusion

UCVME demonstrates that by treating uncertainty as a primary training signal and stabilizing pseudo-labels through variational ensembling, deep regression models can achieve high performance with a fraction of the required labels. This framework provides a promising path forward for applying deep learning to specialized fields where labeled data is scarce but unlabeled data is abundant.

Summary updated

BibTeX
@inproceedings{dai2023semi,
  author = {Weihang Dai and Xiaomeng Li and Kwang-Ting Cheng},
  title = {{Semi-Supervised Deep Regression with Uncertainty Consistency and Variational Model Ensembling via Bayesian Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25890},
}
Figure