Skip to main content
QUICK REVIEW

[Paper Review] Cross-Layer Distillation with Semantic Calibration

Defang Chen, Jian-Ping Mei|arXiv (Cornell University)|Dec 6, 2020
Advanced Neural Network ApplicationsComputer Science64 references4 citations
TL;DR

This paper proposes Semantic Calibration for Cross-Layer Knowledge Distillation (SemCKD), a method that uses an attention mechanism to automatically learn soft, multi-layer associations between student and teacher network features, avoiding semantic mismatch from manual layer pairing. The approach significantly improves distillation performance across diverse architectures, with consistent gains over state-of-the-art methods on CIFAR-100 and ImageNet benchmarks.

ABSTRACT

Knowledge distillation is a technique to enhance the generalization ability of a student model by exploiting outputs from a teacher model. Recently, feature-map based variants explore knowledge transfer between manually assigned teacher-student pairs in intermediate layers for further improvement. However, layer semantics may vary in different neural networks and semantic mismatch in manual layer associations will lead to performance degeneration due to negative regularization. To address this issue, we propose Semantic Calibration for cross-layer Knowledge Distillation (SemCKD), which automatically assigns proper target layers of the teacher model for each student layer with an attention mechanism. With a learned attention distribution, each student layer distills knowledge contained in multiple teacher layers rather than a specific intermediate layer for appropriate cross-layer supervision. We further provide theoretical analysis of the association weights and conduct extensive experiments to demonstrate the effectiveness of our approach. Code is avaliable at \url{https://github.com/DefangChen/SemCKD}.

Motivation & Objective

  • Address the performance degradation in feature-map based knowledge distillation caused by semantic mismatch in manually assigned teacher-student layer pairs.
  • Overcome the limitations of fixed, hand-crafted layer associations that may lead to negative regularization during student model training.
  • Develop a learnable, flexible mechanism for cross-layer knowledge transfer that aligns semantic levels between heterogeneous teacher and student networks.
  • Ensure robust and stable performance across diverse network architectures and datasets through automatic layer association and feature map alignment.
  • Demonstrate compatibility with existing state-of-the-art distillation techniques, such as feature-embedding distillation, for further performance gains.

Proposed method

  • Introduce an attention mechanism to learn soft association weights between each student layer and multiple target layers in the teacher network, enabling multi-layer knowledge transfer.
  • Project student feature maps to match the spatial dimensions of selected teacher feature maps for consistent loss computation across layer pairs.
  • Formulate the layer association learning as a differentiable optimization problem, with theoretical connections to the Orthogonal Procrustes problem for interpretability.
  • Integrate the learned attention weights into the distillation loss to guide the student model using knowledge from semantically aligned teacher layers.
  • Apply the method end-to-end during student training, allowing joint optimization of model parameters and attention weights.
  • Extend the framework to support hybrid distillation by combining with feature-embedding distillation (e.g., CRD), demonstrating high compatibility and performance gains.

Experimental results

Research questions

  • RQ1Can an end-to-end learnable attention mechanism effectively replace manual layer pairing in cross-layer knowledge distillation to reduce semantic mismatch?
  • RQ2How does the proposed semantic calibration mechanism improve generalization compared to fixed layer assignments in feature-map distillation?
  • RQ3What is the theoretical basis for the learned attention weights in layer association, and how do they relate to classical optimization problems?
  • RQ4To what extent is SemCKD robust and generalizable across diverse network architectures and datasets?
  • RQ5Can SemCKD be effectively combined with other state-of-the-art distillation techniques, such as feature-embedding distillation, to further improve performance?

Key findings

  • SemCKD achieves consistent performance gains across all 12 network combinations tested on CIFAR-100, outperforming state-of-the-art methods including CRD and KD.
  • On the VGG-8 & ResNet-32x4 combination, SemCKD achieves 76.68% top-1 accuracy, surpassing the next best method by over 1.5 percentage points.
  • The method shows strong robustness to hyper-parameter β, maintaining high performance across a wide range (β > 400), indicating stability and ease of use.
  • The variant SemCKD τ, which uses a temperature-softened attention, further improves performance, widening the lead over existing methods.
  • Combining SemCKD with CRD yields additional accuracy gains across all settings, confirming high compatibility with other distillation techniques.
  • Empirical results demonstrate that semantic calibration effectively mitigates negative regularization from mismatched layer pairs, especially in heterogeneous model settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.