Dual Attention Based Image Pyramid Network for Object Detection

Xiang Dong, Feng Li, Huihui Bai, Yao Zhao

Introduction

One-stage object detectors, such as the Single Shot MultiBox Detector (SSD), offer high inference speeds suitable for real-time applications. However, they often lag behind two-stage detectors in accuracy due to two primary limitations: feature equality and scale neglect. Standard architectures typically treat all intermediate feature maps as equally significant, failing to prioritize the most informative data for classification. Furthermore, as networks deepen, they lose fine-grained spatial details, which are critical for detecting small and medium-sized objects. This paper introduces DAIPNet (Dual Attention Based Image Pyramid Network) to address these issues by re-introducing spatial details through an auxiliary network and employing a dual attention mechanism for intelligent feature fusion.

Methodology

The DAIPNet framework enhances a standard VGG-16 backbone with three specialized components designed to bridge the gap between high-level semantics and low-level spatial details.

The overall architecture of DAIPNet, integrating the Image Pyramid Network (IPN) with the backbone via AFFM and PAFM modules.

Image Pyramid Network (IPN)

The IPN serves as an auxiliary path that processes a pyramid of downsampled input images. By extracting shallow, spatial features in parallel with the main backbone's deep semantic features, the IPN provides "spatial compensation" for the information typically lost in deeper layers.

Adaptive Feature Fusion Module (AFFM)

The AFFM constitutes the first part of the dual attention mechanism. It dynamically learns weight coefficients to balance information flow between the backbone and the auxiliary IPN. Unlike simple element-wise addition, the AFFM determines which source—backbone or IPN—is more reliable for a given detection task at a specific scale.

Progressive Attention Fusion Module (PAFM)

The PAFM addresses channel-wise correlations across multiple resolutions. It progressively concatenates features from different scales and applies a gate mechanism using global average pooling (GAP) and 1x1 convolutions. This ensures that while multi-scale context is integrated, the feature map at the current scale remains dominant, preventing confusion from disparate resolutions.

Detailed structure of the Progressive Attention Fusion Module (PAFM) showing the multi-scale feature concatenation and attention mechanism.

Experimental Results

DAIPNet was evaluated on the MS COCO and PASCAL VOC 2007 benchmarks, demonstrating state-of-the-art performance for one-stage detectors.

  • MS COCO: Using a 300×300 input, DAIPNet achieved 32.6% mAP, surpassing models like LRF (32.0%) and EFIP (30.0%). With a 512×512 input, the performance increased to 37.0% mAP.
  • PASCAL VOC: The model reached 80.0% mAP (300×300) and 82.2% mAP (512×512), significantly outperforming the baseline SSD.
  • Efficiency: Despite the architectural additions, the 300x300 model maintains an inference speed of 23ms per image on a Titan Xp GPU, confirming its suitability for near real-time use.

Conclusion

DAIPNet successfully boosts one-stage object detection by combining spatial compensation from an image pyramid with a dual attention mechanism. While improvements for extremely small objects remain a challenge for future research, the integration of AFFM and PAFM provides a robust method for fusing multi-scale features without sacrificing real-time performance.

Summary updated

BibTeX
@article{dong2021dual,
  author = {Xiang Dong and Feng Li and Huihui Bai and Yao Zhao},
  title = {{Dual Attention Based Image Pyramid Network for Object Detection}},
  journal = {KSII Trans. Internet Inf. Syst.},
  year = {2021},
  doi = {10.3837/tiis.2021.12.010},
}
Figure