Skip to main content
QUICK REVIEW

[Paper Review] Cross-Layer Feature Pyramid Transformer for Small Object Detection in Aerial Images

Zewen Du, Zhenjiang Hu|arXiv (Cornell University)|Jul 29, 2024
Infrared Target Detection MethodologiesEngineering7 citations
TL;DR

Introduces an upsampler-free Cross-Layer Feature Pyramid Transformer (CFPT) with Cross-layer Channel-wise Attention (CCA) and Cross-layer Spatial-wise Attention (CSA) plus Cross-layer Consistent Relative Positional Encoding (CCPE) to improve small object detection in aerial images, achieving state-of-the-art results with lower computation on VisDrone2019-DET and TinyPerson.

ABSTRACT

Object detection in aerial images has always been a challenging task due to the generally small size of the objects. Most current detectors prioritize the development of new detection frameworks, often overlooking research on fundamental components such as feature pyramid networks. In this paper, we introduce the Cross-Layer Feature Pyramid Transformer (CFPT), a novel upsampler-free feature pyramid network designed specifically for small object detection in aerial images. CFPT incorporates two meticulously designed attention blocks with linear computational complexity: Cross-Layer Channel-Wise Attention (CCA) and Cross-Layer Spatial-Wise Attention (CSA). CCA achieves cross-layer interaction by dividing channel-wise token groups to perceive cross-layer global information along the spatial dimension, while CSA enables cross-layer interaction by dividing spatial-wise token groups to perceive cross-layer global information along the channel dimension. By integrating these modules, CFPT enables efficient cross-layer interaction in a single step, thereby avoiding the semantic gap and information loss associated with element-wise summation and layer-by-layer transmission. In addition, CFPT incorporates global contextual information, which improves detection performance for small objects. To further enhance location awareness during cross-layer interaction, we propose the Cross-Layer Consistent Relative Positional Encoding (CCPE) based on inter-layer mutual receptive fields. We evaluate the effectiveness of CFPT on three challenging object detection datasets in aerial images: VisDrone2019-DET, TinyPerson, and xView. Extensive experiments demonstrate that CFPT outperforms state-of-the-art feature pyramid networks while incurring lower computational costs. The code is available at https://github.com/duzw9311/CFPT.

Motivation & Objective

  • Address small object detection challenges in aerial imagery where objects are densely varied in scale.
  • Develop a feature pyramid network that enables cross-layer interaction without upsampling to reduce computation.
  • Leverage global context and cross-layer neighborhood interactions to preserve information across scales.
  • Introduce a position-aware mechanism (CCPE) to improve cross-layer affinity for accurate localization.

Proposed method

  • Propose CFPT with two attention blocks: Cross-layer Channel-wise Attention (CCA) and Cross-layer Spatial-wise Attention (CSA).
  • CCA enforces cross-layer interactions along the channel dimension by aligning multi-scale features via Channel Reconstruction and Overlapped Channel-wise Patch Partition, followed by cross-layer multi-head attention and a Reverse Overlapped Patch operation.
  • CSA performs cross-layer interactions along the spatial dimension via Overlapped Spatial Patch Partition and cross-layer multi-head attention without requiring channel alignment, followed by Reverse Overlapped Spatial Patch Partition.
  • Introduce Cross-layer Consistent Relative Positional Encoding (CCPE) that uses a learnable codebook to inject cross-layer relative position information into attention maps.
  • CFPT operates without feature upsampling, enabling one-step cross-layer information transfer and preserving shallow feature information rich in small objects.
  • Complexity analyses show linear scaling with input resolution for the proposed blocks.

Experimental results

Research questions

  • RQ1How can cross-layer interactions be performed efficiently to enhance small object detection in aerial images without upsampling?
  • RQ2Can a transformer-based neck with cross-layer attention blocks and positional encoding outperform traditional feature pyramid networks on aerial datasets?
  • RQ3Does explicitly modeling cross-layer relative positional information improve localization accuracy for small objects?

Key findings

  • CFPT outperforms several state-of-the-art FPN variants on VisDrone2019-DET across backbones (ResNet-18/50/101) with higher AP and better small-object AP.
  • On VisDrone2019-DET with ResNet-18, CFPT achieves AP 20.0 and AP-small 10.1, surpassing many baselines while keeping competitive parameters and FLOPs (165.9G).
  • With ResNet-50, CFPT attains AP 22.2 and AP-small 11.9, improving over numerous competitors (Params 37.3M, FLOPs 218.5G).
  • With ResNet-101, CFPT reaches AP 22.6 (AP-0.5 38.4, AP-0.75 23.1, AP-small 12.1) and AP-large 43.8 (Params 56.3M, FLOPs 297.6G).
  • CFPT consistently yields higher AP for small objects (AP-small) and competitive AP across scales while reducing semantic-gap and information-loss risks inherent to layer-by-layer or upsampling-based necks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.