Enhancing DETRs for Small Object Detection via Multi-Scale Refinement and Query-Aided Mining

Sisi Fu, Zhiming Chen, Xiaocheng Fang, Jieyi Cai, Huanyu Liu, Huosheng Wen, Bingzhi ChenACML Conference Track 2024

TL;DR

This paper introduces MRQM, a novel Transformer-based object detector specifically designed for the challenging task of small object detection. MRQM tackles the computational inefficiencies of processing multi-scale features and the sparse supervision issues in Transformer detectors by employing a "Scale-Aware Encoder" for efficient feature refinement and an "IoU-Aware Head" for better mining of positive object queries.

What Problem Does This Paper Address?

Detecting small objects (SOD) is a critical but difficult problem in computer vision, with applications ranging from autonomous driving to medical imaging. While recent advancements in object detection have been significant, Transformer-based models, which excel at capturing global context, face unique challenges in SOD. These include:

  1. Computational Cost: Integrating multi-scale features from networks like Feature Pyramid Networks (FPNs) into Transformers leads to quadratic scaling of computational complexity with the number of feature tokens.
  2. Sparse Supervision: Transformer encoders often suffer from insufficient and low-quality "positive queries" (representations that correspond to actual objects), leading to sparse supervision and hindering their ability to learn discriminative features. This is exacerbated in SOD because small objects have limited spatial extent, making it harder to establish clear overlaps for traditional positive sample selection.

Existing methods try to mitigate these issues with sparse attention or one-to-many label assignments, but they often struggle with efficiently processing multi-scale information and generating enough high-quality positive queries specifically for small objects.

Methods

The proposed MRQM framework introduces two key novel modules:

  1. Scale-Aware Encoder (SAE): This module addresses the computational burden of multi-scale features. Instead of processing all features equally, it strategically refines features from a Bi-directional Feature Pyramid Network (BiFPN). The SAE updates high-level features more frequently and low-level features less often, merging them iteratively. This approach allows for efficient exploitation of multi-scale information while significantly reducing computational costs. It uses a deformable attention mechanism where high-level features act as queries to extract information from all scales, and then low-level features are updated based on these refined features.
  2. IoU-Aware Head (IAH): This module tackles the sparse supervision problem by intelligently mining more positive queries for small objects. It builds upon the one-to-many label assignment strategy but introduces a dynamic "IoU-aware mechanism." This mechanism dynamically adjusts the Intersection over Union (IoU) threshold for identifying positive anchors based on the object's area. Specifically, it uses a formula that allows for lower IoU thresholds for smaller objects, ensuring a sufficient number of potential positive samples are found without being overwhelmed by low-quality ones. This helps to generate more high-quality auxiliary positive queries for the decoder.

Datasets

The MRQM method was evaluated on two benchmark datasets:

  • SODA-D: A dataset focused on traffic scenarios, containing diverse images with small objects across nine categories.
  • VisDrone: A dataset captured by drones, featuring high-resolution images with a large number of instances across 10 common object categories, known for its challenging environmental settings and occlusions.

Key Insights and Ideas

  • Hierarchical Feature Refinement: The idea that not all feature levels need the same computational attention is crucial. By updating high-level features more frequently and low-level features less so, the Scale-Aware Encoder efficiently leverages multi-scale information without prohibitive costs.
  • Dynamic IoU Thresholding for Small Objects: The core insight for the IoU-Aware Head is that standard IoU thresholds are too strict for small objects. Dynamically adjusting these thresholds based on object size is key to mining sufficient, high-quality positive samples.
  • Synergy between Encoder and Head: The paper demonstrates that improving feature representation (SAE) and improving supervision signals (IAH) are complementary and together lead to significant gains in small object detection.

Key Results

  • SODA-D Performance: MRQM achieved state-of-the-art results, outperforming the previous best method (Co-DINO) by 2.3% AP (34.5% vs. 32.2%). It showed particular strength in detecting extremely small objects, with improvements of 1.2% in APes, 2.2% in APrs, and 2.5% in APgs.
  • VisDrone Performance: On the VisDrone dataset, MRQM achieved an overall AP of 31.9%, surpassing baseline models. It demonstrated significant improvements in small object detection (APs), outperforming the second-best by 3.6%. The method also improved APm and APL by 3.5% and 7.1%, respectively, indicating strong generalization.
  • Efficiency: Notably, MRQM achieved these superior results with a lower parameter count (60M) compared to Co-DINO (66M), suggesting improved detection efficiency.
  • Ablation Studies: Experiments confirmed the effectiveness of both the Scale-Aware Encoder and the IoU-Aware Head, with each contributing significantly to the overall performance gains.

Limitations and Future Work

  • Visualization Limitations: The authors acknowledge a limitation in their visualization results (Figure 2), where some regions of large objects were falsely activated in the query heatmap. While these were not misdetected, it suggests potential for impaired detection efficiency by causing the head to process irrelevant locations.
  • Parameter Sensitivity: While parameter analysis showed optimal settings for T_b and p in the IoU-aware head, the paper implies that these parameters might need careful tuning for different datasets.
  • Future Work: The paper doesn't explicitly detail future work, but the identified limitation in query heatmap activation suggests avenues for improving the precision of query localization and reducing false activations. Further exploration into more robust dynamic thresholding strategies or alternative query mining techniques could also be promising.

Summary updated

BibTeX
@inproceedings{fu2024enhancing,
  author = {Sisi Fu and Zhiming Chen and Xiaocheng Fang and Jieyi Cai and Huanyu Liu and Huosheng Wen and Bingzhi Chen},
  title = {{Enhancing DETRs for Small Object Detection via Multi-Scale Refinement and Query-Aided Mining}},
  booktitle = {ACML Conference Track},
  year = {2024},
  url = {https://openreview.net/forum?id=RDa1Uj27U9},
}
Figure