[Paper Review] DETR++: Taming Your Multi-Scale Detection Transformer
DETR++ proposes a multi-scale detection framework that enhances the original DETR model by integrating a Bi-directional Feature Pyramid Network (BiFPN) to improve feature aggregation across scales, resulting in a 1.9% AP gain on MS COCO 2017, 11.5% AP improvement on RICO icon detection, and 9.1% on layout extraction, while maintaining efficiency despite the quadratic complexity of self-attention.
Convolutional Neural Networks (CNN) have dominated the field of detection ever since the success of AlexNet in ImageNet classification [12]. With the sweeping reform of Transformers [27] in natural language processing, Carion et al. [2] introduce the Transformer-based detection method, i.e., DETR. However, due to the quadratic complexity in the self-attention mechanism in the Transformer, DETR is never able to incorporate multi-scale features as performed in existing CNN-based detectors, leading to inferior results in small object detection. To mitigate this issue and further improve performance of DETR, in this work, we investigate different methods to incorporate multi-scale features and find that a Bi-directional Feature Pyramid (BiFPN) works best with DETR in further raising the detection precision. With this discovery, we propose DETR++, a new architecture that improves detection results by 1.9% AP on MS COCO 2017, 11.5% AP on RICO icon detection, and 9.1% AP on RICO layout extraction over existing baselines.
Motivation & Objective
- To address the poor performance of DETR in small object detection due to limited multi-scale feature integration.
- To investigate efficient multi-scale feature aggregation strategies that avoid the quadratic complexity of self-attention and cubic complexity of Hungarian matching.
- To improve DETR’s performance on under-explored benchmarks like RICO icon detection and layout extraction without increasing model complexity significantly.
- To identify the optimal architecture for multi-scale feature fusion in Transformer-based detectors, particularly for on-device screen understanding tasks.
Proposed method
- Integrates a Bi-directional Feature Pyramid Network (BiFPN) to fuse features from multiple backbone stages, enabling effective multi-scale representation learning.
- Preserves the original DETR encoder-decoder architecture but enhances feature hierarchy via learnable, weighted feature fusion in BiFPN.
- Applies feature pyramid fusion at the backbone level before the Transformer encoder, allowing the encoder to process richer, multi-scale features.
- Uses standard data augmentation (random horizontal flip and crop) with input resizing to 1280×1280 and padding, maintaining consistency with DETR.
- Employs a learnable object query mechanism with position embeddings and Hungarian matching for end-to-end box and class prediction.
- Tunes key hyperparameters such as background class weight and number of object queries based on dataset statistics to improve convergence and performance.
Experimental results
Research questions
- RQ1What is the most effective way to incorporate multi-scale features into the DETR architecture without exacerbating computational complexity?
- RQ2How does BiFPN compare to other multi-scale fusion strategies—such as stacked features, shifted windows, or specialized heads—in improving DETR’s detection accuracy?
- RQ3Can a modified DETR architecture with BiFPN outperform existing state-of-the-art models like CenterNet and IconNet on small object detection benchmarks?
- RQ4Does the integration of multi-scale features via BiFPN significantly improve performance on non-standard detection tasks like icon detection and layout extraction?
- RQ5To what extent does the BiFPN-enhanced DETR++ maintain training efficiency and convergence speed compared to baseline DETR?
Key findings
- DETR++ achieves a 1.9% absolute improvement in AP on MS COCO 2017 compared to the original DETR, demonstrating strong generalization on standard benchmarks.
- On the RICO icon detection dataset, DETR++ improves detection AP by 11.5% over existing baselines, outperforming both DETR and the IconNet model.
- For layout extraction, DETR++ achieves a 9.1% AP gain over baselines, showing strong performance on functional UI element detection.
- Despite improvements, DETR++ still underperforms CenterNet and IconNet in small object detection on specific datasets, indicating room for further optimization.
- The BiFPN-based feature fusion strategy is the most effective among all evaluated methods, significantly outperforming alternatives like shifted windows and specialized heads.
- The model maintains a favorable trade-off between performance and complexity, with only marginal increases in computation despite multi-scale feature integration.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.