GuidedMix-Net: Semi-supervised Semantic Segmentation by Using Labeled Images as Reference

Peng Tu, Yawen Huang, Feng Zheng, Zhenyu He, Liujuan Cao, Ling Shao

Abstract

Semantic segmentation typically requires extensive pixel-level annotations, making it a costly and time-consuming endeavor. Semi-supervised learning (SSL) offers a solution by leveraging unlabeled data, but traditional consistency-based methods often fail to fully exploit the knowledge within the labeled set. This paper presents GuidedMix-Net, a novel framework that uses labeled images as explicit references to guide the learning of unlabeled data. By intelligently pairing similar images and transferring high-quality features via mutual information transfer, GuidedMix-Net achieves significant performance gains, improving mIoU by over 7% compared to previous state-of-the-art methods on standard benchmarks like PASCAL VOC 2012 and Cityscapes.

Introduction

The primary challenge in semi-supervised semantic segmentation is effectively utilizing the vast pool of unlabeled data. Most existing approaches rely on consistency regularization, which enforces similar predictions on perturbed versions of the same unlabeled image. However, the authors argue that this treats labeled and unlabeled data as separate silos, neglecting the potential for labeled data to act as a direct teacher.

GuidedMix-Net bridges this gap by introducing a reference-based learning paradigm. Instead of simple consistency checks, it allows labeled data to "guide" the model's understanding of unlabeled instances, mimicking human cognition where we recognize unfamiliar objects by comparing them to known examples.

The GuidedMix-Net Framework

The architecture is built around three core operations designed to facilitate knowledge transfer from labeled to unlabeled domains:

  1. Similar Image Pair Selection: Rather than mixing images at random, the model employs a pre-trained encoder to identify the most semantically similar labeled image for each unlabeled image in a mini-batch. This ensures contextual relevance—for example, a labeled bus helping the model identify an unlabeled bus.
  2. Labeled-Unlabeled Image Pair Interpolation (LUPI): Based on the "MixUp" augmentation strategy, LUPI creates hybrid inputs by linearly interpolating the selected labeled-unlabeled pairs.
  3. Mutual Information Transfer (MITrans): This is the core innovation. Using non-local (NL) blocks, the model identifies similar feature patches within the mixed image. It allows the model to transfer high-confidence information from the labeled source regions to refine the features in the unlabeled regions.
  4. Pseudo Mask Generation (PMG) with Soft Decoupling: To generate training targets for unlabeled data, the model "decouples" the mixed image's prediction by subtracting the known labeled component. Soft Decoupling uses the interpolation ratio to handle object overlaps and preserve fine details at boundaries more effectively than simple subtraction.

Experiments and Results

The model was rigorously evaluated on three primary benchmarks: PASCAL VOC 2012 (21 object categories), Cityscapes (urban street scenes), and PASCAL-Context.

Performance Comparison

GuidedMix-Net demonstrated impressive gains across various labeling ratios. On PASCAL VOC 2012, with only 1/8 of the labels available, the model achieved a 73.4% mIoU, significantly outperforming the popular CCT baseline (58.6%).

Qualitative comparison of GuidedMix-Net against the CCT baseline and ground truth (GT) on PASCAL VOC 2012.

On the Cityscapes dataset, GuidedMix-Net consistently surpassed competitors like ClassMix and ReCo. Ablation studies further highlighted the importance of "Similar Image Pair Selection," which alone contributed a 2.5% mIoU boost by ensuring that the model compares "apples to apples" during the mixing process.

Discussion and Conclusion

GuidedMix-Net represents a fundamental shift from "don't change your mind" (consistency) to "look at this example" (reference). While the use of non-local blocks adds some computational overhead during training, the model remains memory-efficient, with a footprint (15kM) smaller than some of its competitors like CCT (24kM).

One limitation noted was in highly structured environments like Cityscapes, where common classes (roads, buildings) are ubiquitous, making random pairing nearly as effective as targeted selection. However, the authors suggest that this reference-based approach could be particularly powerful in specialized fields like medical imaging, where expert labels are extremely scarce but unlabeled data is plentiful.

Summary updated

BibTeX
@inproceedings{tu2022guidedmix,
  author = {Peng Tu and Yawen Huang and Feng Zheng and Zhenyu He and Liujuan Cao and Ling Shao},
  title = {{GuidedMix-Net: Semi-supervised Semantic Segmentation by Using Labeled Images as Reference}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i2.20137},
}
Figure