Perspective-Aware Teaching: Adapting Knowledge for Heterogeneous Distillation
Jhe-Hao Lin, Yi Yao, Chan-Feng Hsu, Hongxia Xie, Hong-Han Shuai, Wen-Huang Cheng
TL;DR
This work tackles cross-architecture knowledge distillation by addressing two main bottlenecks: view mismatch between heterogeneous architectures and teacher unawareness of the student’s learning progress. It introduces Perspective-Aware Teaching (PAT), a feature-based distillation framework that combines Region-Aware Attention (RAA) to align perspectives and Adaptive Feedback Prompts (AFP) to adapt teacher features via student feedback, all within a unified loss $L_{PAT} = L_{CE} + \alpha L_{KL} + \beta L_{FD} + \gamma L_{Reg}$. The method preserves spatial information (via $L_{FD}$ with Hierarchical Context Loss) and maintains teacher discriminativeness (through $L_{Reg}$), enabling effective distillation across CNNs, ViTs, and MLPs. Empirical results on CIFAR-100, ImageNet, and COCO demonstrate state-of-the-art improvements over prior KD approaches, with notable gains on classification and detection tasks, highlighting practical applicability to diverse downstream workloads.
Abstract
Knowledge distillation (KD) involves transferring knowledge from a pre-trained heavy teacher model to a lighter student model, thereby reducing the inference cost while maintaining comparable effectiveness. Prior KD techniques typically assume homogeneity between the teacher and student models. However, as technology advances, a wide variety of architectures have emerged, ranging from initial Convolutional Neural Networks (CNNs) to Vision Transformers (ViTs), and Multi-Level Perceptrons (MLPs). Consequently, developing a universal KD framework compatible with any architecture has become an important research topic. In this paper, we introduce a perspective-aware teaching (PAT) KD framework to enable feature distillation across diverse architectures. Our framework comprises two key components. First, we design prompt tuning blocks that incorporate student feedback, allowing teacher features to adapt to the student model's learning process. Second, we propose region-aware attention to mitigate the view mismatch problem between heterogeneous architectures. By leveraging these two modules, effective distillation of intermediate features can be achieved across heterogeneous architectures. Extensive experiments on CIFAR, ImageNet, and COCO demonstrate the superiority of the proposed method. Our code is available at https://github.com/jimmylin0979/PAT.git.
