Abstract
Relative Difficulty Distillation (RDD) is a novel training paradigm for semantic segmentation that simplifies the knowledge distillation process. By weighting training based on the relative difficulty of pixels—determined by disagreements between teacher and student networks—RDD enables lightweight models to achieve state-of-the-art accuracy without the instability of complex multi-objective loss functions.
Introduction
Deep neural networks for semantic segmentation, such as DeepLab or HRNet, are computationally intensive, hindering deployment on resource-constrained edge devices. Knowledge Distillation (KD) addresses this by using a large "teacher" model to guide a smaller "student" model. However, current KD methods face two primary challenges: optimization overload from multiple auxiliary loss functions leading to gradient conflicts, and a lack of progressive guidance that adapts to the student's learning curve.
Methodology: Relative Difficulty Distillation
The proposed RDD framework moves away from complex multi-objective optimization. Instead, it reweights the standard task loss based on the difficulty of a pixel for the student relative to the teacher. This approach identifies a "Goldilocks zone" of learning—pixels that are challenging for the student but have been mastered by the teacher.
The framework operates in two stages:
- Teacher-Full Evaluated RDD (TFE-RDD): In the early stages of training, the teacher identifies "simple pixels" using its internal prediction disagreement. The student is encouraged to master these easy concepts first to ensure rapid convergence.
- Teacher-Student Evaluated RDD (TSE-RDD): As training progresses, the system focuses on "valuable difficult" pixels. These are regions where the teacher is confident but the student remains uncertain. This is calculated via a bitwise XOR operation on their respective confidence maps.
Crucially, RDD employs smart filtering to ignore pixels that are "too difficult"—where even the teacher is confused—preventing the student from learning from noisy labels or semantic ambiguities.
Experimental Results
RDD was evaluated on four major benchmarks: Cityscapes, CamVid, PASCAL VOC 2012, and ADE20k. The method consistently outperformed state-of-the-art KD techniques:
- Cityscapes: A DeepLabV3-Res18 student improved from 74.21% to 77.18% mIoU, nearly matching the Res101 teacher's 78.07%.
- Efficiency: RDD adds less than 10% to training time. For instance, RDD completed training in approximately 4.3 hours, compared to 7.6 hours for the popular CIRKD method.
- Backbone Flexibility: Using a MobileNetV2 backbone, RDD achieved 76.38% mIoU, surpassing several larger models.
Conclusion
Relative Difficulty Distillation provides a streamlined, efficient alternative to traditional multi-loss KD methods. By focusing on the relative learning gap between teacher and student, it achieves superior performance with significantly lower training costs. Future work may involve adapting this logic of "relative difficulty" to other computer vision tasks such as object detection and image classification.
Summary updated