Abstract
Consistency regularization has been widely studied in recent semi-supervised semantic segmentation methods. Remarkable performance has been achieved, benefiting from image, feature, and network perturbations. To make full use of these perturbations, in this work, we propose a new consistency regularization framework called mutual knowledge distillation (MKD). We innovatively introduce two auxiliary mean-teacher models based on the consistency regularization method. More specifically, we use the pseudo label generated by one mean teacher to supervise the other student network to achieve a mutual knowledge distillation between two branches. In addition to using image-level strong and weak augmentation, we also employ feature augmentation considering implicit semantic distributions to add further perturbations to the students. The proposed framework significantly increases the diversity of the training samples. Extensive experiments on public benchmarks show that our framework outperforms previous state-of-the-art (SOTA) methods under various semi-supervised settings.
Introduction
Semantic segmentation is a critical task in computer vision that involves assigning a category label to every pixel in an image. However, the high cost of obtaining pixel-perfect labels—often requiring over an hour per image for datasets like Cityscapes—limits the scalability of fully supervised models. Semi-supervised learning (SSL) offers a solution by leveraging a small set of labeled data alongside a large volume of unlabeled data.
A common approach in SSL is consistency regularization, which enforces that a model's predictions remain stable under various perturbations. While methods like Cross Pseudo Supervision (CPS) use two different networks to supervise each other, they can suffer from instability or "forgetting" historical knowledge as training progresses. This paper introduces Mutual Knowledge Distillation (MKD), a framework designed to combine the stability of Mean-Teacher models with the diversity of co-training.
Methodology: Mutual Knowledge Distillation (MKD)
The MKD framework utilizes four distinct branches: two student networks ($S_1, S_2$) and two auxiliary mean-teacher networks ($T_1, T_2$). The student networks are trained via standard backpropagation, while the teacher networks' weights are updated as an Exponential Moving Average (EMA) of their respective students. This makes the teachers "stable" versions of the students that store historical knowledge.
The core innovation lies in the "mutual" supervision strategy. Instead of a student learning from its own teacher, Teacher 1 generates pseudo-labels to supervise Student 2, and Teacher 2 supervises Student 1. This cross-supervision prevents the "model collapse" often seen when a student and teacher become too similar, maintaining diversity throughout training.
Augmentation and Selection
To further enhance robustness, the framework employs a multi-level augmentation strategy:
- Image-level Augmentation: Teachers receive weakly augmented images to ensure reliable pseudo-labels, while students receive strongly augmented images (e.g., CutMix, color jitter) to force them to learn harder features.
- Feature-level Augmentation: Feature Data Augmentation (FDA) is applied to the internal representations of student networks, simulating semantic variations without requiring extra images.
- Knowledge Selection: A confidence threshold (set to 0.95) is applied to the teacher's predictions, ensuring that students only learn from high-certainty pseudo-labels and filtering out potential noise.
Experiments and Results
The proposed MKD framework was evaluated on three major benchmarks: PASCAL VOC 2012, Cityscapes, and MS COCO.
Quantitative Performance
- PASCAL VOC: On the 1/16 labeled split (only 92 images), MKD achieved 65.35% mIoU, representing a massive +19.58% improvement over the supervised-only baseline.
- Cityscapes: MKD consistently outperformed the state-of-the-art CPS method, notably by +5.01% on the 1/16 split.
- COCO: On this challenging dataset, MKD reached 36.7% mIoU with only 232 labels, surpassing previous methods like PseudoSeg by nearly 7%.
Qualitative Analysis
Visual results demonstrate that MKD produces cleaner segmentations with better boundary adherence compared to baseline methods, especially in complex scenes with multiple overlapping objects or varied lighting conditions.
Discussion and Conclusion
MKD effectively balances stability and diversity in semi-supervised learning. By "crossing the streams" of two mean-teacher branches, the model retains historical knowledge while benefiting from the diverse perspectives of co-training. While the use of four networks increases computational overhead during training, the performance gains—particularly in low-data regimes—are substantial. Future work may explore heterogeneous architectures to further increase branch diversity and reduce the sensitivity to confidence thresholds.
Code is available at: https://github.com/jianlong-yuan/semi-mmseg
Summary updated