Knowledge Distillation for Oriented Object Detection on Aerial Images

Yicheng Xiao, Junpeng ZhangarXiv 2022 · DOI

TL;DR

KD-RNet brings high-performance oriented object detection to resource-constrained edge devices by distilling knowledge from heavy "teacher" models into lightweight "students." By using a novel soft regression loss to transfer localization behavior, the researchers achieved higher precision with significantly fewer parameters on complex aerial imagery.

The Challenge of Aerial Object Detection

Object detection in aerial imagery—captured from drones or satellites—is significantly more complex than in standard "natural" photos. In typical datasets, objects are usually upright, allowing horizontal bounding boxes to suffice. However, in aerial views, objects like ships, planes, and vehicles appear at arbitrary rotations.

Using standard horizontal boxes for a tilted object results in significant "noise" (background pixels) within the box, which degrades detector performance. While "oriented" detectors using rotated boxes exist, they are often massive, over-parameterized models that are difficult to deploy on onboard hardware with limited power and memory.

KD-RNet: Distilling Oriented Knowledge

The authors address this by applying Knowledge Distillation (KD)—a technique where a small "student" network learns to mimic a large, pre-trained "teacher" network—specifically tailored for the unique geometry of rotated objects. The introduced KD-RNet framework transfers both semantic (category) and spatial (location) knowledge.

The KD-RNet framework architecture, illustrating the distillation of classification (KL divergence) and regression (Smooth-L1) outputs from a Teacher to a Student model.

Key Methodological Components:

  1. Teacher-Student Architecture: A heavy model (e.g., RetinaNet with a ResNet50 backbone) serves as the teacher, while a compact model (e.g., ResNet34 or ResNet18) acts as the student.
  2. Category Distillation: To transfer "what" the object is, the framework uses Kullback-Leibler (KL) divergence. The student learns from the teacher's probability distribution rather than just hard labels, capturing rich inter-class relationships.
  3. Location Distillation: Transferring "where" an object is located is challenging for rotated boxes. The authors propose a soft regression loss, allowing the student to mimic the teacher's predicted offsets for rotated boxes.
  4. Collaborative Training: The final loss function balances standard classification and regression with category and location distillation losses.

Experimental Evaluation and Results

The researchers evaluated KD-RNet on the DOTA dataset, a large-scale collection of 2,806 images containing over 188,000 instances across 15 categories. DOTA is unique because it provides annotations for rotated bounding boxes, making it the benchmark for oriented detection.

Performance comparison on the DOTA dataset showing mAP, AP75, and parameter counts for various backbone configurations and distillation settings.

Key Findings:

  • Performance Boost: On the DOTA dataset, a KD-RNet (ResNet34) achieved a 70.45% mAP, outperforming the baseline ResNet34 trained from scratch (70.20%).
  • Localization Quality: The AP75 score (detections with at least 75% overlap) jumped from 34.08% to 36.70% for the ResNet34 student, indicating that the teacher's location knowledge significantly refines the tight boundaries required for rotated boxes.
  • Model Compression: The researchers successfully distilled knowledge into a ResNet18 model with only 160.2M parameters—nearly half the teacher's 292.6M—while maintaining a competitive 68.27% mAP.

Insights and Future Directions

Beyond raw metrics, the study revealed that distillation acts as a powerful regularizer. The student model trained with KD-RNet showed less overfitting than the same model trained from scratch, leading to better generalization.

While the current study focuses on the RetinaNet architecture and output-head distillation, future work could explore feature-based distillation. This would involve the student mimicking the intermediate layers of the teacher's backbone, potentially leading to even higher compression rates and performance gains on modern anchor-free detectors or Vision Transformers (ViTs).

Summary updated

BibTeX
@misc{xiao2022knowledge,
  author = {Yicheng Xiao and Junpeng Zhang},
  title = {{Knowledge Distillation for Oriented Object Detection on Aerial Images}},
  year = {2022},
  eprint = {2206.09796},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.09796},
}
Figure