Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Distillation for Object Detection via Rank Mimicking and Prediction-guided Feature Imitation

Gang Li, Xiang Li|arXiv (Cornell University)|Dec 9, 2021
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

This paper proposes Rank Mimicking (RM) and Prediction-guided Feature Imitation (PFI) for knowledge distillation in object detection, addressing key behavior gaps between teacher and student models. RM transfers anchor ranking knowledge from teacher to student, while PFI uses prediction differences to guide efficient feature imitation, achieving 40.4% mAP on MS COCO with RetinaNet-ResNet50, surpassing prior methods by up to 0.7% AP.

ABSTRACT

Knowledge Distillation (KD) is a widely-used technology to inherit information from cumbersome teacher models to compact student models, consequently realizing model compression and acceleration. Compared with image classification, object detection is a more complex task, and designing specific KD methods for object detection is non-trivial. In this work, we elaborately study the behaviour difference between the teacher and student detection models, and obtain two intriguing observations: First, the teacher and student rank their detected candidate boxes quite differently, which results in their precision discrepancy. Second, there is a considerable gap between the feature response differences and prediction differences between teacher and student, indicating that equally imitating all the feature maps of the teacher is the sub-optimal choice for improving the student's accuracy. Based on the two observations, we propose Rank Mimicking (RM) and Prediction-guided Feature Imitation (PFI) for distilling one-stage detectors, respectively. RM takes the rank of candidate boxes from teachers as a new form of knowledge to distill, which consistently outperforms the traditional soft label distillation. PFI attempts to correlate feature differences with prediction differences, making feature imitation directly help to improve the student's accuracy. On MS COCO and PASCAL VOC benchmarks, extensive experiments are conducted on various detectors with different backbones to validate the effectiveness of our method. Specifically, RetinaNet with ResNet50 achieves 40.4% mAP in MS COCO, which is 3.5% higher than its baseline, and also outperforms previous KD methods.

Motivation & Objective

  • To investigate the behavioral differences between teacher and student object detection models that lead to performance gaps.
  • To address the suboptimal performance of traditional knowledge distillation in object detection by identifying key discrepancies in detection ranking and feature-prediction alignment.
  • To propose Rank Mimicking (RM) that transfers anchor ranking knowledge as a new form of distillation target.
  • To design Prediction-guided Feature Imitation (PFI) that aligns feature imitation with prediction accuracy by using prediction differences as dynamic weights.
  • To achieve state-of-the-art performance on MS COCO and PASCAL VOC benchmarks with minimal architectural changes.

Proposed method

  • Rank Mimicking (RM) transfers the rank distribution of candidate boxes (based on classification scores or predicted box quality) from teacher to student, replacing traditional soft label distillation.
  • PFI introduces a position-wise loss weighting mechanism that uses the difference between teacher and student predictions (P_dif) to guide which feature maps are most critical for imitation.
  • The method computes feature differences (F_dif) and prediction differences (P_dif), then uses P_dif as adaptive weights to prioritize feature imitation in regions where prediction discrepancies are largest.
  • The framework is applied to one-stage detectors like RetinaNet with various backbones, using standard distillation training protocols.
  • The approach avoids hand-crafted masks or ground-truth-based region selection, relying instead on model behavior to guide imitation.
  • Experiments are conducted on MS COCO and PASCAL VOC using ResNet-50, ResNet-101, and ResNet-152 backbones to validate generalization.

Experimental results

Research questions

  • RQ1Why do student detectors underperform compared to teachers despite similar feature responses?
  • RQ2How do the ranking of candidate detections differ between teacher and student models, and can this be leveraged as distillation knowledge?
  • RQ3What is the relationship between feature response differences and prediction differences in student-teacher pairs?
  • RQ4Can prediction differences be used to guide more effective and efficient feature imitation?
  • RQ5Does replacing soft label distillation with rank-based knowledge transfer improve detection accuracy?

Key findings

  • RetinaNet with ResNet50 achieves 40.4% mAP on MS COCO, a 3.5% improvement over the baseline and a 0.7% gain over DeFeat, the previous SOTA.
  • Rank Mimicking (RM) consistently outperforms traditional soft label distillation, achieving up to 1.4% mAP gain when mimicking both classification score and box quality rankings.
  • Prediction-guided Feature Imitation (PFI) surpasses hand-crafted masks (e.g., positive/negative samples, GT boxes) by at least 0.5% mAP, demonstrating superior adaptive imitation.
  • PFI reduces inefficient gradient updates by focusing imitation on regions where prediction discrepancies are largest, improving training efficiency and accuracy.
  • On PASCAL VOC, the method improves ResNet50-based RetinaNet from 81.1% to 82.2% mAP, achieving state-of-the-art performance.
  • The method outperforms GID, Fitnet, and FGFI by 0.5%, 2.2%, and 1.0% respectively, even without using RoIAlign for feature resizing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.