SAMKD: Spatial-aware Adaptive Masking Knowledge Distillation for Object Detection
Zhourui Zhang, Jun Li, Jiayan Li, Jianhua Xu
TL;DR
SAMKD tackles the challenge of knowledge distillation for object detection by moving beyond global feature masking to a spatially aware, coarse-to-fine distillation framework. It combines a spatial pyramid-based spatially hierarchical feature masking distillation (SFD) with a region-aware, adaptive logit distillation (SLD), guided by dual teacher attention maps and feature discrepancies. The method yields consistent improvements over strong baselines across multiple detectors on COCO, with notable gains for small objects and reduced teacher-student gaps. These contributions offer a practical, scalable approach to compressing powerful detectors while preserving fine-grained localization cues.
Abstract
Most of recent attention-guided feature masking distillation methods perform knowledge transfer via global teacher attention maps without delving into fine-grained clues. Instead, performing distillation at finer granularity is conducive to uncovering local details supplementary to global knowledge transfer and reconstructing comprehensive student features. In this study, we propose a Spatial-aware Adaptive Masking Knowledge Distillation (SAMKD) framework for accurate object detection. Different from previous feature distillation methods which mainly perform single-scale feature masking, we develop spatially hierarchical feature masking distillation scheme, such that the object-aware locality is encoded during coarse-to-fine distillation process for improved feature reconstruction. In addition, our spatial-aware feature distillation strategy is combined with a masking logit distillation scheme in which region-specific feature difference between teacher and student networks is utilized to adaptively guide the distillation process. Thus, it can help the student model to better learn from the teacher counterpart with improved knowledge transfer and reduced gap. Extensive experiments for detection task demonstrate the superiority of our method. For example, when FCOS is used as teacher detector with ResNet101 backbone, our method improves the student network from 35.3\% to 38.8\% mAP, outperforming state-of-the-art distillation methods including MGD, FreeKD and DMKD.
