NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Knowledge Transfer via Distillation of Activation Boundaries Formed by Hidden Neurons

Byeongho Heo, Minsik Lee, Sangdoo Yun, Jin Young Choi

Introduction

Knowledge distillation (KD) has emerged as a powerful technique for model compression and transfer learning, typically involving a large, high-performance "teacher" network that guides the training of a smaller "student" network. Historically, most KD methods have focused on matching the exact output magnitudes of hidden layers or the final softmax layer. However, this paper argues that matching raw intensities is suboptimal. Instead, the authors propose a novel approach that focuses on transferring the activation boundaries—the specific decision thresholds where neurons flip from inactive to active.

The Core Problem: Magnitudes vs. Boundaries

In deep neural networks utilizing ReLU activations, the feature space is partitioned by the "on/off" states of hidden neurons. The authors contend that the most critical information for classification is not the exact intensity of a neuron's response, but rather where that neuron activates. These activation boundaries define the geometric structure of the decision space.

Standard Mean Squared Error (MSE) losses, commonly used in distillation, are inherently biased toward large response values. This bias often causes the student to ignore the subtle boundaries where a neuron transitions across the zero threshold. The primary technical challenge is that these "on/off" states are discrete and non-differentiable, making them difficult to optimize using standard gradient-based methods.

Comparison of MSE-based transfer vs. the proposed activation-based transfer

Proposed Methodology

The researchers introduce a differentiable method to distill the "shape" of the decision space through several key innovations:

  1. Activation Transfer Loss: The method defines an indicator function that maps neuron activity to a binary state (1 if active, 0 otherwise). The objective is to minimize the discrepancy between the teacher’s and student’s indicator maps.
  2. Differentiable Hinge Approximation: To overcome the non-differentiability of discrete states, the authors employ a loss inspired by Support Vector Machines (SVMs). If a teacher neuron is active, the student is penalized for responses below a positive margin ($\mu$). Conversely, if the teacher is inactive, the student is penalized for responses above a negative margin ($-\mu$).
  3. Connector Functions: To facilitate distillation between networks with different architectures (e.g., varying neuron counts), $1 \times 1$ convolutions are used as "connector" layers to align the student’s feature dimensions with the teacher’s.
  4. Two-Stage Training: The student undergoes an initial phase of activation boundary distillation before being fine-tuned with standard cross-entropy and traditional KD losses.

Experimental Results

The proposed method was evaluated across multiple benchmarks, including CIFAR-10, MIT Scenes, and ImageNet-based transfer tasks. The results demonstrate significant improvements in both efficiency and accuracy.

Blazing Fast Convergence

One of the most striking findings is the speed at which the student network learns. In the very early stages of training (1 epoch of initialization followed by 1 epoch of training), the proposed method achieved a 16.39% error rate on CIFAR-10. This significantly outperforms standard training (43.37%) and the previous state-of-the-art distillation method, Attention Transfer (37.66%).

Error rates across training epochs, demonstrating rapid convergence

Robustness and Compression

The method proves exceptionally effective in data-scarce environments. When trained on only 0.1% of the CIFAR-10 dataset, the proposed method maintained a 50.32% error rate, while standard KD performance plummeted to 74.62%. Furthermore, it excels in "Tiny Network" compression. For instance, when compressing a WRN 22-4 teacher to a WRN 10-1 student, the proposed method achieved a 23.27% error rate, outperforming all baseline distillation techniques.

Conclusion

By shifting the focus from matching feature magnitudes to distilling activation boundaries, this research provides a more efficient way for student networks to inherit the underlying logic of a teacher's decision-making process. This structural approach to knowledge transfer not only accelerates convergence but also provides a robust prior that is invaluable for network compression and learning from limited data.

Summary updated

BibTeX
@inproceedings{heo2019knowledge,
  author = {Byeongho Heo and Minsik Lee and Sangdoo Yun and Jin Young Choi},
  title = {{Knowledge Transfer via Distillation of Activation Boundaries Formed by Hidden Neurons}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013779},
}
Figure