[Paper Review] Cross-Image Relational Knowledge Distillation for Semantic Segmentation
This paper proposes Cross-Image Relational Knowledge Distillation (CIRKD), a novel knowledge distillation framework for semantic segmentation that transfers global pixel-to-pixel and pixel-to-region relations across multiple images from a teacher to a student network. By leveraging a memory bank with a pixel queue and region queue to model long-range dependencies, CIRKD improves student performance beyond state-of-the-art methods, achieving 75.42% mIoU on Cityscapes and outperforming Channel-Wise KD by 0.48% and 0.79% on DeepLabV3 and PSPNet, respectively.
Current Knowledge Distillation (KD) methods for semantic segmentation often guide the student to mimic the teacher's structured information generated from individual data samples. However, they ignore the global semantic relations among pixels across various images that are valuable for KD. This paper proposes a novel Cross-Image Relational KD (CIRKD), which focuses on transferring structured pixel-to-pixel and pixel-to-region relations among the whole images. The motivation is that a good teacher network could construct a well-structured feature space in terms of global pixel dependencies. CIRKD makes the student mimic better structured semantic relations from the teacher, thus improving the segmentation performance. Experimental results over Cityscapes, CamVid and Pascal VOC datasets demonstrate the effectiveness of our proposed approach against state-of-the-art distillation methods. The code is available at https://github.com/winycg/CIRKD.
Motivation & Objective
- To address the limitation of existing knowledge distillation methods in semantic segmentation, which focus only on intra-image relations and ignore cross-image semantic dependencies.
- To improve student network performance by transferring structured, global pixel-level and pixel-to-region relations across diverse training images.
- To model long-range pixel dependencies using a memory bank with a frozen teacher network, enabling more robust and generalized knowledge transfer.
- To demonstrate that global relational knowledge, beyond local or channel-wise features, significantly enhances distillation effectiveness in dense prediction tasks.
Proposed method
- CIRKD constructs a pixel queue and region queue in a memory bank to store frozen feature embeddings from the pre-trained teacher network, enabling access to embeddings from a large number of images beyond the current mini-batch.
- The method performs pixel-to-pixel distillation by aligning the similarity distribution between current batch anchors and contrastive embeddings sampled from the pixel queue using KL divergence.
- It introduces pixel-to-region distillation to transfer relative similarities between individual pixels and class-wise prototypes (region embeddings), enhancing class-level semantic understanding.
- The region embedding is computed as the average pooling of all pixel embeddings from the same semantic class in the feature map.
- A temperature scaling strategy is applied to smooth the similarity distributions during distillation, with τ = 0.1 found to yield optimal performance.
- The final loss combines task loss, standard KD loss, and two novel relational distillation losses: $L_{memory\_p2p}$ and $L_{memory\_p2r}$, trained via KL divergence from student to teacher.
Experimental results
Research questions
- RQ1Can transferring global cross-image pixel relations improve knowledge distillation in semantic segmentation beyond intra-image relations?
- RQ2How does modeling long-range dependencies via a memory bank of frozen embeddings affect student network generalization and performance?
- RQ3What is the relative contribution of pixel-to-pixel vs. pixel-to-region relational knowledge in distillation for dense prediction tasks?
- RQ4How do hyperparameters such as queue size, temperature, and number of contrastive samples influence distillation performance?
Key findings
- CIRKD achieves 75.42% mIoU on the Cityscapes validation set, reducing the performance gap between student and teacher from 4.95% to 2.65%.
- The method outperforms Channel-Wise KD (CWD) by 0.48% mIoU on DeepLabV3 and 0.79% on PSPNet, demonstrating its superiority over state-of-the-art distillation methods.
- Memory-based pixel-to-pixel distillation ($L_{memory\_p2p}$) yields a 0.85% mIoU gain over standard KD, showing the benefit of broader context from larger embedding pools.
- The ablation study confirms that pixel-to-pixel distillation is more informative than pixel-to-region distillation, and that larger queue sizes and contrastive sample counts improve performance up to saturation points.
- Optimal performance is achieved with τ = 0.1, $K_p = 4096$ contrastive pixel embeddings, and $K_r = 1024$ contrastive region embeddings, indicating that high-dimensional similarity distributions capture richer dependencies.
- The method scales effectively across different student architectures, including DeepLabV3-MobileNetV2 and PSPNet-Res18, showing strong generalization and adaptability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.