Abstract
Knowledge Distillation (KD) typically involves training a student network to mimic a teacher's output through end-to-end backpropagation. However, this often leads to information coupling and high memory overhead. We present Local Attention Knowledge Distillation (LAKD), a framework that decouples the student network into independent local modules. By employing a Separation-Decoupling Mechanism (SDM) and a Non-Directional Activation Mapping (NDAM), LAKD achieves state-of-the-art accuracy on benchmarks like CIFAR-100 and ImageNet while significantly reducing GPU memory consumption.
Introduction
Traditional KD methods suffer from gradient interference, where shallow layers are constantly adjusted by objectives from deeper layers. This coupling makes it difficult to isolate and interpret how specific teacher features benefit the student. LAKD addresses this by introducing local learning, allowing layers to be trained independently with truncated gradients, thereby improving efficiency and representational alignment.
Methodology
The LAKD framework is built upon two core components designed to improve the efficiency and quality of knowledge transfer.
Separation-Decoupling Mechanism (SDM)
SDM breaks the student network into discrete blocks. Each block has its own local loss function and independent gradient flow. By truncating gradients between these blocks, LAKD prevents the "interference" common in global backpropagation, enabling a progressive "simple-to-complex" learning strategy. This decoupling also leads to significant memory savings as gradients do not need to be stored for the entire network simultaneously.
Non-Directional Activation Mapping (NDAM)
To guide the student effectively without over-fitting to the teacher's errors, NDAM generates refined attention maps. It aggregates spatial information using both Average (AVG) and Maximum (MAX) pooling from the teacher's feature maps. This dual-pooling approach highlights salient regions while preserving the student's ability to acquire "extracurricular knowledge"—features where the student might outperform the teacher.
Experimental Results
LAKD was evaluated on CIFAR-10, CIFAR-100, and ImageNet (ILSVRC 2012) across various architectures including ResNet and Wide ResNet.
Performance and Efficiency
On CIFAR-100, LAKD achieved a top-1 accuracy of 72.01% (ResNet56 teacher to ResNet20 student), outperforming previous SOTA methods like CAT-KD. On ImageNet, it improved ResNet18 accuracy to 71.51% while reducing GPU memory consumption by 4.4%. On smaller datasets like CIFAR-10, memory savings reached as high as 17.1% compared to standard training.
Structural Similarity
A key advantage of LAKD is the high structural alignment between the teacher and student. Using Centered Kernel Alignment (CKA), we observed that LAKD students maintain significantly higher similarity to their teachers across all layers compared to traditional KD methods like FitNet or Logit-based distillation.
Conclusion
LAKD demonstrates that local learning is not only viable for knowledge distillation but superior in terms of both accuracy and resource efficiency. By decoupling gradients and refining attention maps, LAKD provides a more interpretable and leaner path for model compression. Future work will explore auxiliary networks to further enhance information fusion between decoupled modules.
Summary updated