Source-linked AI summary

Revisiting Weak-to-Strong Consistency in Semi-Supervised Semantic Segmentation

Lihe Yang, Lei Qi, Litong Feng, Wayne Zhang, Yinghuan Shi

arXiv:2208.09910v2cs.CV

TL;DR

Semi-supervised semantic segmentation seeks to reduce costly pixel-level annotation, but FixMatch’s success depends on manually designed image-level strong perturbations. UniMatch expands perturbations to feature space and uses dual strong views guided by one weak view, achieving improvements across natural, medical, and remote-sensing scenarios.

  • Problem

    Semi-supervised semantic segmentation must leverage unlabeled images because fully supervised training requires costly pixel-level annotation, while FixMatch’s image-level perturbations constrain the explored perturbation space.

  • Method

    UniMatch unifies image- and feature-level perturbations in independent streams and feeds two independently sampled strong views to the student, both supervised by a shared weak view.

  • Results

    UniMatch improves FixMatch substantially and surpasses previous results across natural, medical, and remote-sensing scenarios.

  • Takeaways & Limitations

    Appropriate image-level strong perturbations make vanilla FixMatch a powerful segmentation baseline, while unified and dual-stream perturbations further strengthen it.

  • Takeaways & Limitations

    The paper does not aim to propose a novel feature perturbation approach and uses channel dropout as its simplest feature perturbation.

Abstract

from arXiv · show

In this work, we revisit the weak-to-strong consistency framework, popularized by FixMatch from semi-supervised classification, where the prediction of a weakly perturbed image serves as supervision for its strongly perturbed version. Intriguingly, we observe that such a simple pipeline already achieves competitive results against recent advanced works, when transferred to our segmentation scenario. Its success heavily relies on the manual design of strong data augmentations, however, which may be limited and inadequate to explore a broader perturbation space. Motivated by this, we propose an auxiliary feature perturbation stream as a supplement, leading to an expanded perturbation space. On the other, to sufficiently probe original image-level augmentations, we present a dual-stream perturbation technique, enabling two strong views to be simultaneously guided by a common weak view. Consequently, our overall Unified Dual-Stream Perturbations approach (UniMatch) surpasses all existing methods significantly across all evaluation protocols on the Pascal, Cityscapes, and COCO benchmarks. Its superiority is also demonstrated in remote sensing interpretation and medical image analysis. We hope our reproduced FixMatch and our results can inspire more future works. Code and logs are available at https://github.com/LiheYoung/UniMatch.

1. Introduction

Semi-supervised semantic segmentation uses unlabeled images to reduce reliance on costly pixel-level annotation. The paper finds that FixMatch is already strong with suitable image-level perturbations, then expands and better exploits the perturbation space through unified and dual-stream designs.

  • Pixel-level annotation makes fully supervised semantic segmentation costly and difficult to deploy broadly, motivating semi-supervised alternatives using many unlabeled images and few labeled ones.
  • FixMatch transfers weak-to-strong consistency from semi-supervised classification to semantic segmentation by using weak-view predictions to supervise strongly perturbed views.
  • Image-level strong perturbations are indispensable for FixMatch, while omitting them degenerates the method into naïve online self-training with much worse results.
  • UniMatch unifies image-level and feature-level perturbations in independent streams to explore a broader perturbation space beyond manually designed image augmentations.
  • Dual independent strong views are simultaneously supervised by a shared weak view, improving perturbation utilization and sharing the spirit of contrastive learning.
  • UniMatch surpasses existing methods across Pascal, Cityscapes, and COCO evaluation protocols, with additional superiority in medical image analysis and remote sensing interpretation.

2. Related Work

Semi-supervised learning research centers on constructing supervision for unlabeled data through entropy minimization or consistency regularization. Within semantic segmentation, recent work has moved toward simpler consistency and self-training paradigms, while strong perturbations remain an important design focus.

  • Semi-supervised learning primarily addresses unlabeled-data supervision through entropy minimization and consistency regularization.
  • Earlier semi-supervised semantic segmentation methods used GAN-based adversarial training, while later methods pursued simpler consistency-based training paradigms.
  • Entropy-minimization approaches use offline self-training to assign pseudo-masks, with prior work differing on whether excessive perturbations harm clean-data distributions.
  • The paper adopts FixMatch weak-to-strong consistency as a neat baseline, strengthening image perturbations and simplifying prior frameworks before probing broader perturbation spaces.

3. Method

UniMatch builds on FixMatch’s weak-to-strong consistency by combining image-level and feature-level perturbations in separate streams, while using two strong image views guided by one weak view.

  • FixMatch baseline: FixMatch forms weak and strong views of each unlabeled image, using confident weak predictions to supervise strongly perturbed predictions.Its objective combines supervised and unsupervised losses, with a confidence threshold filtering noisy pseudo-labels.
  • Unified perturbations: Image-level strong perturbations are effective but depend on manually designed transformations and cannot directly explore feature-level perturbations.The paper identifies this image-level restriction as a motivation for expanding the perturbation space.
  • Unified perturbations: UniPerb adds an auxiliary feature-perturbation stream to FixMatch and maintains separate streams for weak, image-level strong, and feature-level perturbations.Feature perturbations can include dropout or uniform noise; in this work, feature perturbation is implemented with simple channel dropout.
  • Dual-stream perturbations: DusPerb independently samples two strong views from the strong perturbation pool and feeds them in parallel while both are supervised by their shared weak view.The two strong views are distinct because the strong perturbation pool is pre-defined but non-deterministic.
  • Empirical evaluation: Ablation studies report that UniMatch consistently improves the FixMatch baseline by a large margin, while dual-stream perturbations produce substantial gains under all partition protocols.The paper also reports that the gain is not credited to merely doubling the unlabeled batch size.
  • Holistic framework: UniMatch integrates UniPerb and DusPerb, adding two auxiliary feedforward streams for feature perturbation and multi-view learning beyond FixMatch.The framework’s design is illustrated in Figure 2 and implemented through a corresponding pseudocode algorithm.

4. Experiments

Experiments evaluate UniMatch against prior methods across natural-image, remote-sensing, and medical segmentation settings, while ablations examine its perturbation design and training choices.

  • Ablation Studies: UniMatch consistently improves the reproduced strong FixMatch baseline by a large margin on Pascal, Cityscapes, and COCO.Both UniPerb and DusPerb improve FixMatch individually, while their integration achieves the best results.
  • Ablation Studies: UniMatch outperforms a counterpart using three image-level strong perturbation views, supporting the benefit of combining diverse perturbation levels.UniMatch uses one feature perturbation view and two image perturbation views.
  • Ablation Studies: Increasing perturbation streams does not necessarily improve performance; the two image streams and one feature stream are reported as sufficient.Table 12 denotes image-level streams as IS and feature-level streams as FS, with UniMatch using IS:2 and FS:1.
  • Ablation Studies: Channel dropout performs best among the evaluated feature perturbation strategies, and confidence threshold τ=0.95 works best on Pascal.The feature-perturbation location at the encoder–decoder intersection is also reported as much better than the compared alternative.
  • Application to More Segmentation Scenarios: In remote sensing and medical image analysis, UniMatch improves state-of-the-art methods significantly, including a +23.3% improvement with 3 labeled medical cases.With 1 labeled case, its medical result surpasses others using 3 cases and is on par with others using 7 cases.

5. Conclusion

The paper finds that FixMatch remains strong for semi-supervised semantic segmentation with suitable image perturbations, then extends it with unified feature- and image-level streams and dual image views. UniMatch improves prior results across natural, medical, and remote-sensing scenarios.

  • A vanilla FixMatch equipped with proper image-level strong perturbations can outperform state-of-the-art methods in semantic segmentation.
  • UniMatch unifies image-level and feature-level perturbations in independent streams to explore a more diverse perturbation space.
  • UniMatch uses dual-stream perturbations to fully exploit image-level perturbations.
  • UniMatch improves previous results remarkably across natural-image, medical, and remote-sensing scenarios.

A. How about Removing Image-Level Strong Perturbations?

The paper examines whether image-level strong perturbations can be removed from FixMatch and replaced by feature-level channel dropout. Feature-only perturbation is usually close to image-level perturbation performance on Pascal.

  • Image-level strong perturbation selection requires time-consuming trials and delicate combination choices, especially challenging in domain-specific tasks.
  • Feature-level channel dropout alone performs on par with original image-level strong perturbations in most Pascal cases, although it is slightly inferior.The modified FixMatch applies no strong image augmentation and perturbs extracted features with channel dropout.

B. Dual-Stream Feature-Level Perturbations

The paper tests dual-stream feature perturbations by applying parallel channel-dropout perturbations to extracted features. Although potentially useful as positive views, the approach is excluded from the main method to avoid added training cost.

  • Dual-stream feature perturbation applies two parallel channel-dropout operations to extracted features and sends both perturbed features into the decoder.
  • The authors conjecture that dual random perturbations create positive views with contrastive-learning benefits, but omit them from UniMatch because the current method is powerful enough and extra computation is undesirable.

C. More Image-Level Perturbation Streams

Increasing the number of image-level strong perturbation streams steadily improves performance up to a point, after which additional views may slightly reduce it. The results suggest that two or three strong views sufficiently probe the original image-level perturbation space.

  • Performance steadily improves as the number of image-level strong views increases to a certain point.
  • Two or three strong views are sufficient to fully probe the original image-level perturbation space.
  • Excessive strong views may slightly reduce performance by making it difficult for the model to learn every view.

D. Limitations, Discussions, and Future Works

The discussion identifies limitations involving uncertain pixels, pseudo-label quality, class imbalance, domain shift, and the scale of labeled and unlabeled data. These issues are left for future work, including making better use of uncertain pixels while avoiding error accumulation.

  • Around 15% of pixels are discarded during learning in challenging scenarios such as COCO because UniMatch uses a confidence threshold to suppress potentially incorrect pseudo labels.
  • Making full use of uncertain pixels while avoiding error accumulation remains a proposed direction for improving semi-supervised algorithms.
  • Poor pseudo-label quality can prevent semi-supervised learners from extracting meaningful knowledge from unlabeled images.
  • Highly imbalanced class distributions can bias pseudo labeling toward majority classes, worsening minority-class performance during training.
  • Common benchmarks rarely address domain gaps between labeled and unlabeled images, although real-world unlabeled data may come from different domains.
  • Existing academic settings often use extremely few labeled images, leaving the practical use of tens of thousands of labeled and millions of unlabeled images for future work.
Loading 2208.09910v2…