Relaxed Class-consensus Consistency for Semi-supervised Semantic Segmentation

Huayu Mai, Rui Sun, Feng WuAAAI 2025

Relaxed Class-consensus Consistency for Semi-supervised Semantic Segmentation

Abstract

Semi-supervised semantic segmentation (SSS) aims to leverage large amounts of unlabeled data to reduce the reliance on expensive pixel-level annotations. Current state-of-the-art SSS methods typically employ a teacher-student framework but often treat object classes as independent, neglecting inherent semantic relationships. We propose Relaxed Class-consensus Consistency (RCC), which models inter-class dependencies using Shapley Interaction from cooperative game theory. By enforcing a robust ranking-based consistency on these interactions, RCC captures structural semantic information, leading to significant performance improvements, particularly in low-data regimes.

Introduction

Semantic segmentation is a fundamental task in computer vision, yet its progress is often hindered by the high cost of manual annotation. Semi-supervised learning offers a solution by utilizing a small labeled set alongside a larger unlabeled pool. The prevailing "teacher-student" paradigm enforces consistency between a teacher's pseudo-labels and a student's predictions. However, these methods generally assume class independence, failing to exploit the fact that certain classes (e.g., "car" and "truck") share visual features. This "class-independent consistency" trap limits the model's ability to learn from the complex semantic structures present in real-world data.

Methodology: Relaxed Class-consensus Consistency (RCC)

The proposed RCC framework shifts the focus from individual class predictions to the "consensus" or confusion between classes.

Modeling Classes as Players

Drawing from cooperative game theory, RCC treats object classes as "players" in a game. The goal is to quantify how much a "coalition" of classes contributes to the model's uncertainty. We use Shapley Interaction to measure this consensus. Specifically, if two classes like "car" and "truck" have high consensus, their joint presence in the prediction distribution significantly increases the overall entropy.

Comparison of class-independent consistency (a) vs. the proposed class-consensus consistency (b), with the intuition of class confusion shown in (c).

Shapley Interaction and Ranking Alignment

Unlike methods that rely on external semantic hierarchies, RCC calculates interactions directly from the model's own output. It evaluates how the interaction between a pair of classes affects the prediction entropy compared to their individual contributions.

Because absolute interaction values can be noisy in unsupervised settings, RCC employs Relaxed Ranking Alignment. Instead of forcing the student to match the teacher's exact interaction values, it ensures the student maintains the same relative ranking of class interactions. For instance, if the teacher identifies a stronger consensus between {car, truck} than between {car, road}, the student is trained to preserve this order. To maintain efficiency, these calculations are restricted to the Top-N classes for each pixel.

Experimental Evaluation

The effectiveness of RCC was evaluated on two major benchmarks:

  • PASCAL VOC 2012: An object-centric dataset with 20 foreground classes, tested on both "classic" and "blender" versions.
  • Cityscapes: A dataset focused on complex urban scenes with 19 semantic classes.

Results and Discussion

RCC demonstrates superior performance across various data partitions, with the most notable gains in extremely low-data scenarios.

  • Quantitative Performance: On PASCAL VOC (Classic) with only 92 labeled images, RCC achieved a 71.8% mIoU, representing a +4.4% improvement over the UniMatch baseline. On Cityscapes with 186 labeled images, it reached 75.7% mIoU, outperforming competitive baselines.
  • Qualitative Improvements: Visual analysis indicates that RCC excels at preserving fine-grained details and resolving class ambiguities. It is particularly effective at distinguishing between semantically similar objects, such as different types of animals or vehicles, where independent-class methods often produce blurred or incorrect segmentations.

Conclusion

Relaxed Class-consensus Consistency (RCC) introduces a novel perspective to semi-supervised semantic segmentation by explicitly modeling inter-class relationships. By leveraging game-theoretic interactions and robust ranking alignment, RCC effectively captures the underlying semantic structure of the data. While the calculation of Shapley interactions introduces a minor computational overhead, the significant accuracy gains—especially when labeled data is scarce—make it a powerful approach for real-world applications. Future work will explore multi-class coalitions and the integration of semantic priors from large-scale foundation models.

Summary updated

BibTeX
@inproceedings{mai2025relaxed,
  author = {Huayu Mai and Rui Sun and Feng Wu},
  title = {{Relaxed Class-consensus Consistency for Semi-supervised Semantic Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=qBoyN1XBno},
}
Figure