AdaWAC: Adaptively Weighted Augmentation Consistency Regularization for Volumetric Medical Image Segmentation

Yijun Dong, Yuege Xie, Rachel Ward

Abstract

Concept shift is a prevailing problem in natural tasks like medical image segmentation where samples usually come from different subpopulations with variant correlations between features and labels. One common type of concept shift in medical image segmentation is the "information imbalance" between label-sparse samples with few (if any) segmentation labels and label-dense samples with plentiful labeled pixels. Existing distributionally robust algorithms have focused on adaptively truncating/down-weighting the "less informative" (i.e., label-sparse in our context) samples. To exploit data features of label-sparse samples more efficiently, we propose an adaptively weighted online optimization algorithm -- AdaWAC -- to incorporate data augmentation consistency regularization in sample reweighting. Our method introduces a set of trainable weights to balance the supervised loss and unsupervised consistency regularization of each sample separately. At the saddle point of the underlying objective, the weights assign label-dense samples to the supervised loss and label-sparse samples to the unsupervised consistency regularization. We provide a convergence guarantee by recasting the optimization as online mirror descent on a saddle point problem. Our empirical results demonstrate that AdaWAC not only enhances the segmentation performance and sample efficiency but also improves the robustness to concept shift on various medical image segmentation tasks with different UNet-style backbones.

Introduction

In medical imaging modalities like CT or MRI, a 3D volume is composed of numerous 2D slices. Due to human anatomy, these slices exhibit a significant "information imbalance": some are label-dense, containing large portions of target organs, while others are label-sparse, consisting mostly of background. Standard Empirical Risk Minimization (ERM) approaches treat all samples as equally informative, which often leads the model to "solve" label-sparse samples by simply predicting background. This provides little useful signal and can even degrade performance.

Traditional methods for handling such concept shifts often involve "hard-thresholding," where less informative samples are down-weighted or discarded. However, even a slice without labels contains valuable structural information. AdaWAC (Adaptively Weighted Augmentation Consistency) addresses this by leveraging the features of label-sparse samples through unsupervised consistency regularization rather than discarding them.

Methodology: The AdaWAC Algorithm

The core of AdaWAC is Weighted Data Augmentation Consistency (WAC) regularization. The algorithm balances two distinct loss types for each sample $i$:

  1. Supervised Loss (Cross-Entropy): Direct learning from provided segmentation labels.
  2. Unsupervised Consistency Regularization: Ensuring model representations at the encoder level remain stable under input perturbations (e.g., rotation or mirroring).

AdaWAC treats training as a minimax (saddle point) problem solved via online mirror descent. It introduces trainable weights ($\beta$) that automatically adjust for each sample: for label-dense samples, the focus shifts toward supervised loss ($\beta \to 1$), while for label-sparse samples, the focus shifts toward unsupervised consistency ($\beta \to 0$). Unlike standard semi-supervised learning, AdaWAC applies this logic to the entire supervised dataset, treating the lack of labels as a feature to be managed.

Results and Discussion

Comparison of cross-entropy and consistency loss across CT slices. While cross-entropy varies significantly based on label density, consistency loss remains relatively uniform, serving as a stable reference for adaptive weighting.

Consistency as a Stable Reference

A key insight of this work is that while supervised cross-entropy loss varies wildly across slices depending on their label density, unsupervised consistency loss is remarkably uniform across the dataset. This uniformity makes consistency a "natural reference" that helps the model distinguish between subpopulations and maintain robust feature learning even in the absence of dense labels.

Performance and Robustness

The researchers evaluated AdaWAC on the Synapse Multi-organ Segmentation (CT) and ACDC (MRI) benchmarks. Key findings include:

  • Superior Accuracy: On Synapse with a TransUNet backbone, AdaWAC achieved a Dice Similarity Coefficient (DSC) of 79.04%, compared to 76.66% for the ERM baseline.
  • Extreme Robustness: In a "half-sparse" scenario where labels were intentionally made scarce, AdaWAC maintained a DSC of 41.03%, while the baseline collapsed to 31.74%.
  • Sample Efficiency: Models trained with AdaWAC on only half the available slices performed as well as or better than baseline models trained on the full dataset.

Conclusion

AdaWAC offers a robust solution to the information imbalance inherent in volumetric medical imaging. By adaptively weighting supervised and unsupervised signals, it extracts maximum value from every slice in a dataset. While currently optimized for UNet-style backbones, future work may extend this adaptive weighting framework to other architectures and diverse dense prediction tasks beyond medical imaging.

Summary updated

BibTeX
@inproceedings{dong2023adawac,
  author = {Yijun Dong and Yuege Xie and Rachel Ward},
  title = {{AdaWAC: Adaptively Weighted Augmentation Consistency Regularization for Volumetric Medical Image Segmentation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=5KX2NKgFjD},
}
Figure