Guided Collaborative Training for Pixel-Wise Semi-Supervised Learning

Zhanghan Ke, Di Qiu, Kaican Li, Qiong Yan, Rynson W. H. Lau

Abstract

We investigate the generalization of semi-supervised learning (SSL) to diverse pixel-wise tasks. Although SSL methods have achieved impressive results in image classification, the performances of applying them to pixel-wise tasks are unsatisfactory due to their need for dense outputs. In addition, existing pixel-wise SSL approaches are only suitable for certain tasks as they usually require to use task-specific properties. In this paper, we present a new SSL framework, named Guided Collaborative Training (GCT), for pixel-wise tasks, with two main technical contributions. First, GCT addresses the issues caused by the dense outputs through a novel flaw detector. Second, the modules in GCT learn from unlabeled data collaboratively through two newly proposed constraints that are independent of task-specific properties. As a result, GCT can be applied to a wide range of pixel-wise tasks without structural adaptation. Our extensive experiments on four challenging vision tasks, including semantic segmentation, real image denoising, portrait image matting, and night image enhancement, show that GCT outperforms state-of-the-art SSL methods by a large margin.

Introduction: The Challenge of Pixel-Wise SSL

Semi-supervised learning (SSL) has revolutionized image classification by leveraging vast amounts of unlabeled data. However, extending these successes to pixel-wise tasks—such as semantic segmentation, image matting, and denoising—remains a significant challenge. Unlike classification, where a single label is predicted for an entire image, pixel-wise tasks require dense, spatially consistent outputs.

Two primary obstacles hinder the direct application of classification-based SSL to pixel-wise domains:

  1. Confidence Estimation: Classification models use softmax probabilities to estimate prediction confidence. Regression-heavy pixel-wise tasks (e.g., denoising) lack an inherent metric to gauge how "sure" a model is about a specific pixel's value.
  2. Perturbation Sensitivity: Common SSL techniques like heavy data augmentation or Dropout can disrupt the spatial consistency required for dense tasks. Small perturbations that don't change a classification label (e.g., "cat") might fundamentally alter the ground truth for individual pixels.
Figure 1: Comparison between SSL for image classification and pixel-wise tasks. Classification labels remain stable under perturbations like clipping, whereas pixel-wise labels can change, making standard SSL techniques difficult to apply.

Guided Collaborative Training (GCT)

To address these issues, we propose Guided Collaborative Training (GCT), a generalized SSL framework for pixel-wise tasks. GCT moves away from task-specific heuristics and adversarial competition, instead favoring a collaborative approach between two task models guided by a novel "Flaw Detector."

The Flaw Detector

The core of GCT is the Flaw Detector ($F$). Unlike a standard GAN discriminator that provides a binary "real/fake" score, the Flaw Detector produces a dense "flaw probability map." By training on the labeled set, $F$ learns to identify regions where a task model's output deviates from the ground truth. This map serves as a robust proxy for prediction confidence across any pixel-wise task.

Collaborative Learning Constraints

GCT employs two task models ($T^1$ and $T^2$) with different initializations. They learn from each other through two key constraints:

  • Dynamic Consistency Constraint ($L_{dc}$): The Flaw Detector identifies reliable regions in one model's prediction to serve as pseudo-labels for the other. This pixel-wise guidance allows the models to correct each other's specific errors dynamically.
  • Flaw Correction Constraint ($L_{fc}$): This constraint forces the task models to actively minimize the flaws identified by $F$, directly improving the quality of the dense outputs.
Figure 2: The GCT framework architecture. Two task models ($T^1, T^2$) are trained collaboratively. The Flaw Detector ($C$ and $F$) identifies errors in their predictions, which then guides the cross-model learning via dynamic consistency and flaw correction losses.

Experimental Results

We evaluated GCT across four diverse vision tasks to demonstrate its generality and effectiveness.

Semantic Segmentation

On the Pascal VOC 2012 benchmark, GCT significantly outperformed existing SSL methods. With only 1/8 of the available labels, GCT achieved a 3.76% mIOU improvement over the supervised baseline, surpassing the next best SSL method by more than 2%.

Real Image Denoising

Using the SIDD dataset, GCT demonstrated its strength in regression tasks. With a 1/16 label ratio, it improved PSNR by 0.61dB. In contrast, traditional SSL methods like Mean Teacher only achieved a 0.33dB gain, highlighting GCT's superior ability to handle non-classification outputs.

Portrait Matting and Night Enhancement

GCT's task-agnostic design allowed it to excel in practical applications like portrait matting and night image enhancement. In these scenarios, where labeled data is scarce but unlabeled data is plentiful, GCT provided substantial qualitative improvements, producing cleaner mattes and more natural enhancements than baseline methods.

Conclusion

Guided Collaborative Training (GCT) provides a robust, task-agnostic framework for pixel-wise semi-supervised learning. By replacing adversarial critics with a collaborative flaw detector, GCT effectively estimates confidence in dense predictions and enables models to learn from each other's strengths. While challenges remain in achieving the precision of fully supervised models in high-frequency tasks like denoising, GCT represents a significant step toward universal SSL for computer vision.

Summary updated

BibTeX
@inproceedings{ke2020guided,
  author = {Zhanghan Ke and Di Qiu and Kaican Li and Qiong Yan and Rynson W. H. Lau},
  title = {{Guided Collaborative Training for Pixel-Wise Semi-Supervised Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=x0S7WxfbpOd},
}
Figure