Prediction-Guided Distillation for Dense Object Detection

Chenhongyi Yang, Mateusz Ochal, Amos Storkey, Elliot J. Crowley

Abstract

Knowledge Distillation (KD) has proven highly effective for image classification but faces significant challenges in dense object detection due to the spatial imbalance between informative foreground and redundant background. This paper introduces Prediction-Guided Distillation (PGD), a dynamic approach that identifies and prioritizes key predictive regions based on a teacher model's output quality. By fitting adaptive 2D Gaussian distributions to the top-performing pixels and decoupling classification and regression distillation, PGD achieves substantial performance gains. Experimental results on COCO and CrowdHuman benchmarks demonstrate improvements of up to +4.6% AP, outperforming existing state-of-the-art distillation methods across various architectures, including anchor-based and anchor-free detectors.

Introduction

Knowledge Distillation (KD) is a widely adopted paradigm where a large, high-capacity "teacher" model transfers its learned representations to a smaller, more efficient "student" model. While KD has seen great success in simple image classification, its application to dense object detection—where models predict object categories and locations at every pixel—remains difficult.

The primary challenge in dense detection is spatial: a typical feature map contains thousands of pixels, yet only a tiny fraction corresponds to actual objects of interest. If a student model attempts to mimic the teacher's features across the entire map, it is often overwhelmed by background noise and uninformative regions. Previous research attempted to mitigate this using hand-crafted heuristics, such as focusing distillation on the center of bounding boxes or applying fixed Gaussian masks. However, these rigid rules fail to account for the teacher's actual predictive behavior, where the most informative features may not align with the geometric center of an object.

Methodology

Identifying Key Predictive Regions

The authors propose that the "knowledge" within a teacher model is extremely sparse. A pilot experiment revealed that masking out just the top 1% of the teacher's most confident predictions resulted in a 50% drop in accuracy. This suggests that distillation should focus exclusively on these high-quality regions. PGD identifies these regions using a "quality score" that combines classification confidence and localization accuracy (IoU).

Prediction-Guided Weighting (PGW)

Instead of using fixed masks, PGD employs Prediction-Guided Weighting (PGW). The system selects the top-K highest-scoring pixels from the teacher's output. To create a smooth and effective distillation target, the authors use Maximum Likelihood Estimation (MLE) to fit an adaptive 2D Gaussian distribution to these points. This creates a dynamic "soft mask" that guides the student to focus on the specific areas the teacher found most predictive for a given object.

Decoupled Distillation and Attention Imitation

Recognizing that the features required for classification (identifying what an object is) differ from those required for regression (identifying where its boundaries are), PGD decouples these tasks. Separate distillation masks are generated for the classification and regression heads of the network. Furthermore, the student is trained to mimic the teacher's spatial and channel-wise attention maps, ensuring the student learns the teacher's prioritization logic rather than just its raw feature values.

Experimental Results

COCO and CrowdHuman Benchmarks

The researchers evaluated PGD on the COCO (Common Objects in Context) and CrowdHuman datasets. Using a ResNet-101 teacher and a ResNet-50 student, PGD achieved significant gains:

  • COCO Performance: PGD improved the student's Average Precision (AP) by +3.1% to +4.6% across various detectors, including ATSS, FCOS, and GFL.
  • CrowdHuman: In highly occluded and crowded scenes, PGD achieved a +3.2% improvement in the Log Miss Rate (MR) metric.

Lightweight and Self-Distillation

PGD shows remarkable utility for edge deployment. When distilling to a MobileNetV2 backbone, the method provided a boost of +4.5% to +4.8% AP, making high-quality detection viable for mobile devices. Interestingly, even in "self-distillation" scenarios (where the teacher and student share the same architecture, such as ResNet-50), PGD provided a performance increase of over 1% AP.

Discussion and Conclusion

PGD demonstrates that in dense object detection, the teacher's own predictions are the most reliable guide for distillation. By moving away from hand-crafted spatial rules and toward a dynamic, prediction-guided approach, the student can effectively ignore background noise and focus on the 1% of features that truly matter for accuracy.

While PGD is currently optimized for one-stage (dense) detectors, its success suggests that identifying "high-quality regions" is a universal requirement for efficient distillation. Future work may explore the application of PGD to two-stage detectors like Faster R-CNN and Transformer-based architectures like DETR, which process spatial information through different mechanisms.

Summary updated

BibTeX
@inproceedings{yang2022prediction,
  author = {Chenhongyi Yang and Mateusz Ochal and Amos Storkey and Elliot J. Crowley},
  title = {{Prediction-Guided Distillation for Dense Object Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20077-9\_8},
}
Figure