About Explicit Variance Minimization: Training Neural Networks for Medical Imaging With Limited Data Annotations

Dmitrii Shubin, Danny Eytan, Sebastian D. GoodfellowarXiv 2021

Introduction

In the field of medical imaging, the availability of raw data is rarely the bottleneck. Instead, the primary challenge lies in the scarcity of high-quality annotations, which require significant time and expertise from radiologists. Training deep neural networks on these small, labeled datasets often leads to poor generalization due to the bias-variance trade-off. This paper introduces Variance-Aware Training (VAT), a novel approach that explicitly minimizes model variance to achieve state-of-the-art performance with significantly reduced computational overhead.

The Challenge: Bias vs. Variance in Medical Imaging

When training on limited data, models typically struggle with two types of error: bias (the model's inability to capture the underlying data distribution) and variance (the model's sensitivity to specific fluctuations in the training set).

The authors argue that in medical imaging, human anatomy is relatively conserved. This "morphological consistency" means that even a small sample of images often contains the necessary patterns for a task (low bias). The real enemy is variance—the model overfits to the idiosyncratic features of the small training subset rather than learning universal biological markers. While existing Self-Supervised Learning (SSL) techniques like SimCLR address this, they are computationally expensive and require complex hyperparameter tuning.

Methodology: Variance-Aware Training (VAT)

VAT addresses the variance problem directly by forcing the network's encoder to produce "subset-agnostic" features. The architecture employs a Siamese setup where the model simultaneously processes pairs of images: one from the labeled training set and one from an unlabeled or validation set.

The Variance-Aware Training (VAT) architecture.

The core of VAT is an adversarial "forgetting" mechanism. A small discriminator network (an MLP) is attached to the encoder and tasked with identifying which subset (training or validation) a given feature representation originated from. A Gradient Reversal Layer (GRL) is placed between the encoder and the discriminator. During backpropagation, the GRL flips the sign of the gradients, forcing the encoder to evolve such that the discriminator can no longer distinguish between the two subsets. By making training and validation features indistinguishable, the model explicitly minimizes the variance component of the loss.

The researchers explored two variants: Early Aggregation, which penalizes features across all layers of the encoder, and Late Aggregation, which focuses only on the final layer. Early aggregation was found to be more effective in enforcing global consistency.

Experimental Setup

The method was evaluated across three diverse medical imaging domains:

  1. ACDC (MRI): Cardiac semantic segmentation.
  2. APTOS 2019 (Fundus Photography): Diabetic retinopathy regression.
  3. PatchCamelyon (PCam): Histopathologic classification of metastatic tissue.

These datasets represent a range of tasks (segmentation, regression, classification) and modalities (MRI, RGB photography, histopathology), testing the robustness of the VAT approach.

Key Results and Efficiency

VAT demonstrated remarkable efficiency and performance gains. It consistently matched or outperformed established SSL methods like SimCLR, Context Prediction (CP), and Rotation-based tasks, providing a 4-11% improvement over standard supervised baselines on limited data.

Comparison of training times between VAT and other self-supervised methods.

As shown in the figure above, VAT achieves an order of magnitude reduction in GPU training time. While SSL methods often required 10-14 hours of training, VAT reached comparable performance in just 0.5 to 2 hours. This efficiency stems from VAT's multi-task objective, which avoids the multi-stage "pre-train and fine-tune" workflow typical of SSL.

Conclusion and Future Work

Variance-Aware Training offers a "surgical" alternative to the "brute force" of traditional self-supervised learning. By explicitly targeting variance through adversarial feature alignment, it enables high-performance medical AI training on small datasets with a fraction of the compute.

However, the method relies on the assumption of morphological similarity between subsets. In scenarios with high environmental variability (e.g., varying lighting or camera hardware), bias may become a more significant factor, potentially limiting VAT's effectiveness. Future research will explore the limits of this assumption and the performance of VAT on out-of-distribution data.

Summary updated

Abstract

Self-supervised learning methods for computer vision have demonstrated the effectiveness of pre-training feature representations, resulting in well-generalizing Deep Neural Networks, even if the annotated data are limited. However, representation learning techniques require a significant amount of time for model training, with most of the time spent on precise hyper-parameter optimization and selection of augmentation techniques. We hypothesized that if the annotated dataset has enough morphological diversity to capture the diversity of the general population, as is common in medical imaging due to conserved similarities of tissue morphology, the variance error of the trained model is the dominant component of the Bias-Variance Trade-off. Therefore, we proposed the Variance Aware Training (VAT) method that exploits this data property by introducing the variance error into the model loss function, thereby, explicitly regularizing the model. Additionally, we provided a theoretical formulation and proof of the proposed method to aid interpreting the approach. Our method requires selecting only one hyper-parameter and matching or improving the performance of state-of-the-art self-supervised methods while achieving an order of magnitude reduction in the GPU training time. We validated VAT on three medical imaging datasets from diverse domains and for various learning objectives. These included a Magnetic Resonance Imaging (MRI) dataset for the heart semantic segmentation (MICCAI 2017 ACDC challenge), fundus photography dataset for ordinary regression of diabetic retinopathy progression (Kaggle 2019 APTOS Blindness Detection challenge), and classification of histopathologic scans of lymph node sections (PatchCamelyon dataset). Our code is available at https://github.com/DmitriiShubin/Variance-Aware-Training.
BibTeX
@misc{shubin2021about,
  author = {Dmitrii Shubin and Danny Eytan and Sebastian D. Goodfellow},
  title = {{About Explicit Variance Minimization: Training Neural Networks for Medical Imaging With Limited Data Annotations}},
  year = {2021},
  eprint = {2105.14117},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.14117},
}
Figure