Semi-Supervised Semantic Segmentation via Adaptive Equalization Learning

Hanzhe Hu, Fangyun Wei, Qiwei Ye, Jinshi Cui, Liwei Wang

TL;DR

Adaptive Equalization Learning (AEL) is a new framework that fixes a major blind spot in semi-supervised semantic segmentation: class imbalance. By dynamically tracking which categories the model struggles with and "tilting" training—through smart data augmentation and re-weighting—AEL significantly boosts accuracy for rare "tail" classes without sacrificing performance on common ones.

What Problem Does This Paper Address?

Semantic segmentation (assigning a category to every pixel in an image) is notoriously expensive because it requires meticulous, pixel-level human labels. Semi-supervised learning (SSL) offers a way out by training on a small amount of labeled data and a large pool of unlabeled data.

However, the authors identify a critical flaw in existing SSL methods: they treat all categories as equal. In reality, datasets like Cityscapes are "long-tailed"—common classes like "road" or "building" have millions of pixels, while rare classes like "rider" or "bicycle" have very few. Standard SSL techniques like pseudo-labeling (where the model predicts labels for unlabeled images to train itself) actually make this worse. If a model is already bad at identifying a "rider," it will generate incorrect pseudo-labels for riders, creating a feedback loop of errors that hurts performance on rare classes.

Methods

The authors propose Adaptive Equalization Learning (AEL), which uses a "teacher-student" architecture. The core innovation is making the training process aware of category-wise performance in real-time.

AEL Framework Architecture
  1. The Confidence Bank: This is a dynamic registry that tracks how well the model is performing on each category during training. It uses a "Confidence indicator" (the average prediction probability for pixels of a certain class) to identify which categories are "under-performing."
  2. Adaptive Data Augmentation:
    • Adaptive Copy-Paste: For labeled data, the system identifies under-performing classes and "pastes" them from one image into another more frequently, giving the model more chances to see rare objects.
  3. Adaptive CutMix: For unlabeled data, it uses the Confidence Bank to decide which regions to "cut and mix" between images, prioritizing the classes the model is currently struggling to learn.
  4. Adaptive Equalization Sampling (AES): Instead of calculating loss on every pixel equally, AES samples pixels from under-performing categories more heavily. This prevents the "head" classes (like sky or road) from overwhelming the gradient updates.
  5. Dynamic Re-weighting: To handle the noise in pseudo-labels, the authors introduced a modulating factor. This gives more weight to "convincing" samples (where the model is confident) while still allowing the model to learn from a wider variety of pixels than traditional hard-thresholding methods.

Datasets

The researchers evaluated AEL on three major benchmarks:

  • Cityscapes: A dataset of urban street scenes (highly imbalanced).
  • PASCAL VOC 2012: A standard object-centric segmentation dataset.
  • ADE20K: A large-scale scene parsing benchmark with 150 different categories.

They tested these under various "partition protocols," such as using only 1/32 or 1/16 of the available labels to simulate data-scarce environments.

Key Insights and Ideas

  • Performance $\neq$ Frequency: A key "aha" moment is that a class's difficulty isn't just about how many pixels it has. Some classes have very distinct features and are easy to learn with few samples, while others are inherently ambiguous. The Confidence Bank is superior to simple pixel-counting because it measures actual model mastery.
  • Balanced SSL is a "Free Lunch": By simply re-balancing how the model perceives existing data, AEL achieves massive gains without requiring more complex architectures or extra labeled data.
  • Mitigating the Feedback Loop: The combination of AES and Dynamic Re-weighting allows the model to "ignore" the noise of bad pseudo-labels for rare classes while still being forced to focus on those classes more often.

Key Results

AEL outperformed state-of-the-art methods across the board, with the most dramatic gains seen when labeled data was most scarce:

Performance comparison on Cityscapes dataset
  • Cityscapes (1/32 labels): As shown in the table above, AEL achieved 74.28% mIoU, a massive +16.39% improvement over the supervised baseline and +5.17% over the previous best method (Cutmix-Seg).
  • PASCAL VOC (1/32 labels): AEL reached 76.97% mIoU, outperforming the baseline by +6.83%.
  • Full Data Improvement: Even when using the full Cityscapes training set, AEL improved the model by +1.03% by effectively leveraging 5,000 additional "coarse" unlabeled images.

Limitations and Future Work

While AEL is highly effective, the paper notes a few areas for further exploration:

  • Hyper-parameter Sensitivity: The framework introduces several new parameters (like $\beta$ for sampling and $\gamma$ for re-weighting). While the authors found them relatively stable, tuning them for entirely new datasets might require effort.
  • Initial Teacher Quality: Like most teacher-student frameworks, AEL's success depends on the teacher model reaching a basic level of competence early on. If the initial labeled set is too small to even identify rare classes, the Confidence Bank might struggle to initialize.
  • Computational Cost: While not discussed in depth, maintaining a dynamic bank and performing adaptive augmentation adds a slight computational overhead to the training loop compared to vanilla SSL.

Summary updated

BibTeX
@inproceedings{hu2021semi,
  author = {Hanzhe Hu and Fangyun Wei and Han Hu and Qiwei Ye and Jinshi Cui and Liwei Wang},
  title = {{Semi-Supervised Semantic Segmentation via Adaptive Equalization Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=5CGPY2VeEGb},
}
Figure