FeatAug-DETR: Enriching One-to-Many Matching for DETRs with Feature Augmentation

Rongyao Fang, Peng Gao, Aojun Zhou, Yingjie Cai, Si Liu, Jifeng Dai, Hongsheng Li · DOI

Introduction

Detection Transformers (DETRs) have redefined object detection by framing it as a set prediction problem, removing the need for traditional hand-crafted components like Non-Maximum Suppression (NMS). However, a significant bottleneck in DETR training is its reliance on one-to-one matching, where each ground-truth object is assigned to only a single predicted box. This leads to "sparse supervision": in a typical scene with few objects and hundreds of queries, only a tiny fraction of the network receives a positive gradient signal, resulting in notoriously slow convergence.

Rethinking One-to-Many Matching

To address this, researchers have explored "one-to-many" matching strategies. While previous methods like Group-DETR added extra object queries to provide more supervision, FeatAug-DETR proposes a more efficient alternative: augmenting the input data or features themselves to force multiple queries to learn the same objects.

Conceptual comparison between (a) standard object query augmentation and (b) the proposed feature map augmentation.

Proposed Methods: DataAug and FeatAug

The authors introduce two primary strategies to enrich the training signal:

  1. DataAug-DETR: A baseline approach where the same image is spatially augmented (flipped or cropped) multiple times within a single batch. This forces different position-aware queries to predict the same objects, creating a natural one-to-many mapping.
  2. FeatAug-DETR: The core contribution. To avoid the high computational cost of passing multiple augmented images through a heavy backbone (like ResNet or Swin), FeatAug-DETR passes the image through the backbone once. The resulting feature maps are then augmented (e.g., via RoIAlign for cropping) before entering the Transformer encoder/decoder. Small 1x1 convolution "Feature Projectors" are used to refine these augmented features and bridge any domain gap introduced by the transformations.
Detailed pipelines for (a) DataAug-DETR, which augments raw images, and (b) FeatAug-DETR, which augments features after the backbone to save computation.

Key Insights

  • Spatial Change is Essential: The researchers found that simple resizing is insufficient. For one-to-many matching to be effective via augmentation, the relative position of objects must change. A pilot study revealed that flipping or cropping causes 95.9% of objects to be assigned to different queries, confirming that spatial shifts are the primary driver of diverse supervision.
  • Efficiency and Compatibility: By augmenting at the feature level, FeatAug-DETR avoids redundant backbone passes. Furthermore, because these modifications occur only during training, the method introduces zero inference overhead. It acts as a plug-and-play module compatible with various DETR architectures like DAB-DETR and Deformable-DETR.

Experimental Results

Evaluated on the COCO 2017 benchmark, FeatAug-DETR demonstrated significant improvements in both accuracy and training efficiency:

  • Performance Gains: Integrating FeatAug into a standard DAB-DETR (ResNet-50) improved performance by 1.4 AP, reaching 47.1 AP. When combined with a Swin-Large backbone and Hybrid Matching, it achieved a state-of-the-art 58.3 AP.
  • Accelerated Convergence: The method allows models to reach higher accuracy in fewer epochs. For instance, Deformable-DETR with FeatAug reached higher accuracy in 24 epochs than the baseline achieved in 50 epochs.

Conclusion

FeatAug-DETR provides a simple yet powerful framework for accelerating DETR training. By shifting the focus from query augmentation to feature map augmentation, it provides the benefits of one-to-many matching with minimal computational overhead and no impact on final inference speed.

Summary updated

BibTeX
@article{fang2024feataug,
  author = {Rongyao Fang and Peng Gao and Aojun Zhou and Yingjie Cai and Si Liu and Jifeng Dai and Hongsheng Li},
  title = {{FeatAug-DETR: Enriching One-to-Many Matching for DETRs with Feature Augmentation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  doi = {10.1109/tpami.2024.3381961},
}
Figure