Efficient Object Detection in Optical Remote Sensing Imagery via Attention-Based Feature Distillation

Pourya Shamsolmoali, Jocelyn Chanussot, Huiyu Zhou, Yue Lu · DOI

Abstract

Efficient object detection methods have recently received great attention in remote sensing. Although deep convolutional networks often have excellent detection accuracy, their deployment on resource-limited edge devices is difficult. Knowledge distillation (KD) is a strategy for addressing this issue, since it makes models lightweight while maintaining accuracy. However, the existing KD methods for object detection have encountered two constraints. First, they discard potentially important background information and only distill nearby foreground regions. Second, they only rely on the global context, which limits the student detector’s ability to acquire local information from the teacher detector. To address the aforementioned challenges, we propose attention-based feature distillation (AFD), a new KD approach that distills both local and global information from the teacher detector. To enhance local distillation, we introduce a multi-instance attention mechanism that effectively distinguishes between background and foreground elements. This approach prompts the student detector to focus on the pertinent channels and pixels, as identified by the teacher detector. Local distillation lacks global information; thus, attention global distillation is proposed to reconstruct the relationship between various pixels and pass it from teacher to student detector. The performance of AFD is evaluated on two public aerial image benchmarks, and the evaluation results demonstrate that AFD in object detection can attain the performance of other state-of-the-art models while being efficient.

Introduction

Deploying high-accuracy object detectors on resource-constrained edge devices, such as drones or satellites, is a major challenge in remote sensing. Optical remote sensing images are notoriously complex, featuring objects at vastly different scales, orientations, and densities, often set against intricate backgrounds. While deep convolutional neural networks (CNNs) excel at detecting these objects, they are typically too computationally intensive for edge deployment.

Knowledge Distillation (KD) offers a solution by allowing a smaller "student" network to learn from a larger, pre-trained "teacher" network. However, standard KD methods for object detection often suffer from two critical gaps: background neglect and context imbalance. Most methods focus solely on foreground regions, discarding background information that provides vital context (e.g., a runway indicating the presence of a plane). Additionally, existing approaches often rely heavily on global context, causing the student to miss fine-grained, local features necessary for precise localization.

Methodology: Attention-Based Feature Distillation (AFD)

The proposed AFD framework addresses these limitations by balancing local details, global context, and background information. The architecture is built on several key pillars:

Local and Global Attention-based Mask (LGAM)

Instead of a single global view, AFD generates attention masks for both local patches and the entire image. This "multi-instance" approach helps the student identify which specific channels and pixels the teacher finds most important. By effectively distinguishing between background and foreground elements, the student is guided to focus on pertinent features identified by the teacher.

The AFD framework architecture, illustrating the integration of local and global attention masks and head distillation.

Global Distillation with GCNet

To capture relationships between distant pixels—such as the spatial relationship between a harbor and the ships within it—the authors integrate a Global Context Network (GCNet). This module reconstructs spatial relationships in the teacher's feature maps and transfers this relational knowledge to the student, compensating for the local focus of LGAM.

Feature Map Normalization and Masked Head Distillation

To mitigate the "magnitude disparity" between teacher and student features, AFD employs normalization to zero mean and unit variance. Additionally, attention masks are applied to the final classification and localization heads. This "Masked Head Distillation" ensures the student is not overwhelmed by noisy outputs in unimportant regions.

Experimental Results

The researchers evaluated AFD on two aerial image benchmarks: DOTA (2,806 images, 15 categories) and NWPU VHR-10 (650 images, 10 categories).

Performance and Efficiency

On the DOTA dataset, AFD improved a RetinaNet student's mean Average Precision (mAP) from 64.47% to 73.08%, notably surpassing the teacher's 72.94%. When using a Cascade R-CNN architecture, AFD achieved 76.91 mAP at 30 FPS, outperforming state-of-the-art detectors like SCRDet++ (14 FPS). The method proved effective across various detector types, including one-stage, two-stage, and anchor-free models.

Visualizing Knowledge Transfer

The impact of AFD is clearly visible in the evolution of the student's attention maps. As training progresses, the student's focus shifts from scattered activations to precisely targeting the objects of interest, closely mimicking the teacher's heatmap. This demonstrates the effectiveness of the attention-based distillation in guiding the student's learning process.

Visualization of the student network's attention maps evolving over training epochs to match the teacher's focus.

Discussion and Conclusion

AFD demonstrates that background information in remote sensing is a feature, not noise. By efficiently balancing foreground and background context, AFD enables lightweight models to achieve or even exceed the performance of their larger teachers.

While the results are impressive, future work may address hyper-parameter sensitivity and extend the framework to other modalities like Synthetic Aperture Radar (SAR) or multispectral data. Furthermore, testing on specific edge hardware would provide a definitive measure of deployment readiness for real-world remote sensing applications.

Summary updated

BibTeX
@misc{shamsolmoali2023efficient,
  author = {Pourya Shamsolmoali and Jocelyn Chanussot and Huiyu Zhou and Yue Lu},
  title = {{Efficient Object Detection in Optical Remote Sensing Imagery via Attention-Based Feature Distillation}},
  year = {2023},
  eprint = {2310.18676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.18676},
}
Figure