Distilling Knowledge from Heterogeneous Architectures for Semantic Segmentation
Yanglin Huang, Kai Hu, Yuan Zhang, Zhineng Chen, Xieping Gao
TL;DR
The paper addresses the challenge of distilling knowledge for semantic segmentation from heterogeneous architectures (e.g., CNNs and Transformers). It introduces HeteroAKD, a framework that transfers knowledge by projecting intermediate representations into an aligned logits space and adds two mechanisms, KMM and KEM, to mix and evaluate cross-architecture knowledge using label guidance. The approach is validated on Cityscapes, Pascal VOC, and ADE20K, showing significant improvements over state-of-the-art KD methods for heterogeneous teacher-student pairs; ablations confirm the necessity of both KMM and KEM and illuminate the impact of hyper-parameters. Overall, HeteroAKD demonstrates that leveraging diverse knowledge from heterogeneous architectures can yield more accurate and robust semantic segmentation models, with practical implications for model compression and cross-architecture knowledge transfer.
Abstract
Current knowledge distillation (KD) methods for semantic segmentation focus on guiding the student to imitate the teacher's knowledge within homogeneous architectures. However, these methods overlook the diverse knowledge contained in architectures with different inductive biases, which is crucial for enabling the student to acquire a more precise and comprehensive understanding of the data during distillation. To this end, we propose for the first time a generic knowledge distillation method for semantic segmentation from a heterogeneous perspective, named HeteroAKD. Due to the substantial disparities between heterogeneous architectures, such as CNN and Transformer, directly transferring cross-architecture knowledge presents significant challenges. To eliminate the influence of architecture-specific information, the intermediate features of both the teacher and student are skillfully projected into an aligned logits space. Furthermore, to utilize diverse knowledge from heterogeneous architectures and deliver customized knowledge required by the student, a teacher-student knowledge mixing mechanism (KMM) and a teacher-student knowledge evaluation mechanism (KEM) are introduced. These mechanisms are performed by assessing the reliability and its discrepancy between heterogeneous teacher-student knowledge. Extensive experiments conducted on three main-stream benchmarks using various teacher-student pairs demonstrate that our HeteroAKD outperforms state-of-the-art KD methods in facilitating distillation between heterogeneous architectures.
