SAMKD: Spatial-aware Adaptive Masking Knowledge Distillation for Object Detection

Zhourui Zhang, Jun Li, Jiayan Li, Jianhua Xu
1/13/2025
cs.CV

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{zhang2025samkd,
  title  = {SAMKD: Spatial-aware Adaptive Masking Knowledge Distillation for Object Detection},
  author = {Zhourui Zhang and Jun Li and Jiayan Li and Jianhua Xu},
  year   = {2025},
  eprint = {2501.07101},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.07101v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.07101.svg)](https://codeofpaper.com/paper/2501.07101)

Discussion