Abstract
Knowledge Distillation (KD) typically focuses on transferring global feature representations or instance-level relationships from a teacher to a student network. However, these methods often overlook fine-grained local patterns and are susceptible to background noise. This paper introduces Local Correlation Consistency (LKD), a framework that transfers structural knowledge by enforcing consistency between local patch correlations. By integrating three types of local relationships—intra-instance, inter-instance (same position), and inter-instance (different positions)—with a Class-Aware Attention (CAAT) module, the proposed method achieves state-of-the-art performance on CIFAR100 and ImageNet benchmarks.
Introduction
Deep learning deployment on resource-constrained devices necessitates efficient "student" networks. Knowledge Distillation (KD) bridges the performance gap between these students and larger "teacher" models. Traditional KD approaches primarily supervise students using final output probabilities or global feature maps.
As illustrated in Figure 1, global features often fail to capture discriminative local details, such as specific textures or shapes, and can be influenced by irrelevant background information. The authors argue that local features and their fine-grained correlations provide a denser and more informative supervision signal, which is crucial for capturing the "local wisdom" of the teacher model.
Methodology
The LKD framework addresses the limitations of global KD through two primary components: Local Correlation Construction and Class-Aware Attention.
Local Correlation Consistency (LKD)
The method divides feature maps into a $k \times k$ grid of patches. It then enforces consistency across three distinct types of local relationships:
- Intra-instance: Correlations between different patches within a single image.
- Inter-instance (Same Position): Correlations between patches at the same spatial location across different images in a batch.
- Inter-instance (Different Positions): Correlations between patches at different spatial locations across different images.
Class-Aware Attention (CAAT)
To mitigate the impact of background noise, the CAAT module generates pixel-level attention masks. This module is supervised by an auxiliary classifier using ground-truth labels, ensuring the masks focus on class-relevant regions. Local correlations are subsequently calculated only on these "cropped" foreground regions, as shown in Figure 2.
Experimental Results
The LKD method was evaluated on CIFAR100 and ImageNet using various teacher-student architectures, including ResNet and Wide ResNet. On CIFAR100 (ResNet110 → ResNet14), the student achieved 70.48% accuracy, a significant jump from the 67.45% baseline and 69.78% for standard KD. On ImageNet (ResNet34 → ResNet18), the student reached 71.54% Top-1 accuracy.
Ablation studies confirmed that the combination of all three local relationship types provides complementary information, leading to superior performance compared to using any single type. Furthermore, the CAAT module acts as a quality control step, ensuring the knowledge transferred is highly relevant to the classification task.
Conclusion
Local Correlation Consistency (LKD) offers a robust approach to knowledge distillation by focusing on fine-grained structural information and filtering out irrelevant background noise. By leveraging local patch correlations and class-aware attention, LKD provides a denser supervision signal that helps student networks better mimic the discriminative capabilities of their teachers. Future work may explore the application of LKD to tasks where spatial precision is paramount, such as object detection and semantic segmentation.
Summary updated