Adaptively Weighted Data Augmentation Consistency Regularization for Robust Optimization under Concept Shift

Yijun Dong, Yuege Xie, Rachel Ward

TL;DR

Medical image segmentation often suffers from "information imbalance," where some scan slices are packed with labeled organs while others are almost entirely background. This paper introduces AdaWAC, an algorithm that dynamically weights training samples so that label-dense images drive supervised learning, while label-sparse images are automatically repurposed for unsupervised representation learning. This approach significantly boosts segmentation accuracy, sample efficiency, and robustness to data shifts compared to standard methods that simply discard sparse data.

The Challenge: Information Imbalance

In medical imaging tasks like CT or MRI segmentation, datasets rarely have a uniform distribution of information. A slice through the center of the abdomen might contain many complex organ boundaries (label-dense), while a slice near the edge might be almost entirely background (label-sparse).

This creates a "concept shift" or "information imbalance" across the dataset. Standard training methods, such as Empirical Risk Minimization, treat all images equally. However, when a model sees a label-sparse image, it quickly learns to just guess "background" everywhere. This drives its supervised loss to zero and halts useful learning for those samples.

Previous solutions to this problem relied on "hard-thresholding"—essentially identifying these "easy" sparse samples and throwing them out of the training batch. However, discarding images means throwing away valuable underlying visual features. The core challenge is extracting useful feature representations from these mostly-background images without letting their lack of labels compromise the supervised training process.

The Solution: AdaWAC

The authors propose AdaWAC (Adaptively Weighted Augmentation Consistency), an online optimization algorithm designed for encoder-decoder architectures like UNet.

Instead of throwing away label-sparse samples, AdaWAC introduces a trainable weight parameter ($\beta$) for each individual sample in the dataset. This weight balances two different loss functions:

  1. Supervised Cross-Entropy Loss: The standard method of learning from pixel-level labels.
  2. Unsupervised Consistency Regularization: A technique that forces the network's encoder to produce similar mathematical representations for two differently augmented (e.g., rotated or mirrored) versions of the same image, completely ignoring the labels.

AdaWAC frames this as a minimax optimization problem, solved via online mirror descent. The beauty of this mathematical setup is that it naturally and automatically pushes the weights to extremes during training: it assigns the supervised loss to label-dense samples and the unsupervised consistency loss to label-sparse samples.

Key Insights

  • Supervised loss is a bad metric for sparse data: Cross-entropy loss drops rapidly for label-sparse images because predicting "all background" yields a near-perfect score, making them useless for standard supervised learning after the first few epochs.
  • Unsupervised learning is uniform: Unlike supervised loss, unsupervised consistency regularization on the encoder is agnostic to the labels. It forces the model to learn good visual features regardless of whether the image is mostly background or full of organs.
  • Automatic sorting via Minimax: You don't need to manually tell the algorithm which images are sparse and which are dense. By allowing the model to dynamically adjust the weight between supervised and unsupervised loss for each sample, the optimization naturally routes dense samples to teach the decoder (segmentation) and sparse samples to teach the encoder (feature extraction).
  • Soft weighting beats hard thresholding: Repurposing sparse samples for unsupervised learning is vastly superior to simply trimming them from the dataset, as it squeezes every drop of feature data out of the available scans.

Experimental Results

The authors evaluated AdaWAC on two standard medical image segmentation benchmarks: the Synapse multi-organ segmentation dataset (abdominal CT scans) and the ACDC dataset (Cine-MRI scans).

Qualitative comparison of segmentation results between the baseline and AdaWAC.
  • Improved Accuracy: On the Synapse dataset (using a TransUNet backbone), AdaWAC improved the average Dice-similarity coefficient (DSC) from 76.66% (baseline) to 79.04%. On the ACDC dataset, DSC improved from 89.40% to 90.67%.
  • High Sample Efficiency: AdaWAC trained on only half of the Synapse dataset slices achieved a better DSC (77.37%) than the baseline model trained on the entire dataset (76.66%).
  • Robustness to Concept Shift: To stress-test the models, the authors created a heavily skewed "half-sparse" dataset. Under these conditions, the baseline model's performance collapsed to a 31.74% DSC. AdaWAC proved much more robust, maintaining a 41.03% DSC.
Quantitative results demonstrating AdaWAC's performance across full, half-slice, half-volume, and half-sparse training regimes.

Limitations and Future Work

Because AdaWAC specifically applies consistency regularization to the encoder output, it is currently tailored for encoder-decoder architectures. It cannot be seamlessly dropped into networks that lack this specific bottleneck structure.

Future work will focus on generalizing the algorithm to other network architectures by identifying different representation layers that are robust to concept shifts. The authors also plan to explore applying AdaWAC to other dense prediction tasks beyond medical imaging, such as general object detection in natural images.

Summary updated

BibTeX
@inproceedings{dong2023adaptively,
  author = {Yijun Dong and Yuege Xie and Rachel Ward},
  title = {{Adaptively Weighted Data Augmentation Consistency Regularization for Robust Optimization under Concept Shift}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=5KX2NKgFjD},
}
Figure