Localization Distillation for Object Detection

ZhaoHui Zheng, Ye Rongguang, Qibin Hou, Dongwei Ren, Ping Wang, Wangmeng Zuo, Ming-Ming Cheng · DOI

TL;DR

This paper introduces Localization Distillation (LD), a novel method that effectively transfers localization knowledge from a teacher to a student object detector by mimicking prediction logits. They demonstrate that by explicitly distilling localization information, logit mimicking can outperform traditional feature imitation, leading to significant performance gains without sacrificing inference speed.

What Problem Does This Paper Address?

Knowledge Distillation (KD) is a powerful technique for compressing large neural networks into smaller, more efficient ones. In object detection, KD aims to transfer knowledge from a pre-trained "teacher" model to a "student" model. Existing KD methods for object detection primarily focus on "feature imitation," which forces the student's intermediate feature maps to resemble the teacher's. While effective, this approach often overlooks the direct transfer of localization information. Another KD paradigm, "logit mimicking" (originally for image classification), focuses on matching the final prediction scores (logits). However, for object detection, logit mimicking alone has been found to be inefficient because it doesn't explicitly capture localization cues. This leads to a common belief that feature imitation is superior for object detection KD. The authors challenge this belief, arguing that the absence of explicit localization distillation is the reason why logit mimicking has underperformed, and propose a method to rectify this.

Methods

The core contribution is Localization Distillation (LD). The key ideas are:

  • Probability Distribution for Bounding Boxes: Instead of using traditional Dirac delta representations for bounding boxes, the authors adopt a probability distribution representation. This allows the model to capture localization ambiguity more effectively, as demonstrated by examples of ambiguous object edges.
  • Logit Mimicking with Localization: LD integrates with logit mimicking by applying it to the bounding box prediction branch. This means the student's predicted bounding box distributions are directly encouraged to match the teacher's.
  • Valuable Localization Region (VLR): To further refine the distillation process, the authors introduce the concept of a "valuable localization region." This is a selective region within the feature map that is deemed more crucial for distillation. By focusing on these regions, the method can more efficiently transfer relevant localization knowledge.
  • Selective Region Distillation: Combining the above, the approach selectively distills knowledge from both the main distillation region (typically positive locations) and the VLR, for both classification and localization.
  • Rotated Object Detection Extension: The LD framework is extended to handle rotated object detectors by adapting the probability distribution representation to rotated bounding boxes.

Datasets

The paper evaluates its method on several standard object detection benchmarks:

  • MS COCO: A large-scale dataset for object detection.
  • PASCAL VOC: A widely used dataset for object detection.
  • DOTA: A dataset specifically for aerial image object detection, used to evaluate the rotated LD extension.

Key Insights and Ideas

  • Logit Mimicking Can Outperform Feature Imitation: The central finding is that when localization knowledge is explicitly distilled (via LD), logit mimicking can surpass feature imitation in object detection performance. This challenges a long-held assumption in the field.
  • The Absence of Localization Distillation is the Bottleneck: The authors argue that the reason logit mimicking has historically underperformed in object detection is not its inherent limitation, but rather its failure to incorporate localization information.
  • Probability Distributions Capture Ambiguity: Representing bounding boxes as probability distributions is more informative than traditional point estimates, especially for ambiguous cases.
  • Selective Distillation is Key: Focusing distillation efforts on specific "valuable localization regions" (VLRs) alongside main regions leads to better performance, suggesting that not all regions are equally important for knowledge transfer.
  • Logit Mimicking Eases Training: The study suggests that logit mimicking, when properly applied, can alleviate training difficulty in the early stages and lead to more robust feature representations compared to feature imitation.

Key Results

  • Significant AP Gains: The proposed LD method consistently improves AP scores across various baselines and datasets. For instance, on MS COCO, they lift the AP score of GFocal [12] from 40.1 to 42.1.
  • State-of-the-Art Performance: Their best model achieved an AP score of 50.5 on MS COCO, surpassing existing detectors with the same backbone.
  • No Inference Overhead: The LD scheme is designed to be applied during training and does not add any computational cost during inference.
  • Effective for Rotated Detectors: The LD method was successfully extended to rotated object detection, showing considerable improvements on the DOTA dataset.
  • Improved Localization Accuracy: The method significantly reduces localization errors, as visualized by comparing teacher-student localization head logits.

Limitations and Future Work

  • Hyperparameter Tuning: While the method is effective, it introduces hyperparameters like temperature (τ) and the VLR range parameter (γ), which require tuning.
  • Theoretical Connection: The paper provides a theoretical connection between LD and classification KD, showing they share equivalent optimization effects.
  • Future Directions: The authors suggest exploring LD for sparse object detectors (like DETR), heterogeneous detector pairs, and other related fields such as instance segmentation, object tracking, and 3D object detection. They also mention the potential for incorporating improved KD techniques into their LD framework.

Summary updated

BibTeX
@article{zheng2023localization,
  author = {ZhaoHui Zheng and Ye Rongguang and Qibin Hou and Dongwei Ren and Ping Wang and Wangmeng Zuo and Ming-Ming Cheng},
  title = {{Localization Distillation for Object Detection}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=PWR82kNCBm},
}
Figure