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

Abstract

Detection Transformers (DETRs) have revolutionized object detection through their elegant one-to-one matching scheme, yet they suffer from slow training convergence due to sparse supervision. This paper introduces FeatAug-DETR, a novel framework that accelerates training by implementing a "one-to-many" matching strategy through feature augmentation. Unlike previous methods that rely on complex auxiliary queries, FeatAug-DETR augments image features within a single training batch to provide richer supervision. This approach leads to significantly faster convergence and achieves state-of-the-art performance, reaching 58.3 AP on the COCO benchmark.

Introduction: The Sparse Supervision Problem

The original DEtection TRansformer (DETR) architecture introduced a paradigm shift in object detection by utilizing one-to-one matching. In this scheme, each ground-truth object is matched to exactly one prediction, which eliminates the need for hand-crafted post-processing like Non-Maximum Suppression (NMS). However, this elegance results in sparse supervision: since only a few queries receive a positive signal during training, the model learns slowly, often requiring hundreds of epochs to converge.

Recent attempts to address this, such as Group-DETR, have focused on "one-to-many" matching by adding extra auxiliary queries. FeatAug-DETR shifts the focus from the query side to the data side, proposing that spatial augmentation of features can achieve similar or better boosts without altering the core architecture.

Comparison of object query augmentation (a) versus the proposed feature map augmentation (b).

Methods: From Image to Feature Augmentation

The authors propose two primary strategies to realize one-to-many matching without changing the underlying DETR head:

1. DataAug-DETR (Image Level)

This method applies different spatial transformations (e.g., flipping, cropping) to a single image multiple times within the same training batch. Because objects move to different spatial locations in each version, they naturally match with different object queries, increasing the supervisory signal. However, this is computationally expensive as the heavy backbone must process the image multiple times.

2. FeatAug-DETR (Feature Level)

To optimize efficiency, FeatAug-DETR runs the backbone once and then augments the resulting feature maps. The primary variants include:

  • FeatAug-Flip: Horizontal flipping of the feature map.
  • FeatAug-Crop: Utilizing RoIAlign to crop and resize regions of the feature map.
  • FeatAug-FC: A combination of both flipping and cropping.

To mitigate the "domain gap" introduced by feature-level cropping (which can cause blurriness), the authors employ small feature projectors (1x1 convolutions and group normalization) used exclusively during the training phase.

Illustration of DataAug-DETR (a), which augments at the image level, versus FeatAug-DETR (b), which augments at the feature level for improved efficiency.

Key Insights

  • Spatial Sensitivity: A pilot study demonstrated that spatial transformations cause 95.9% of objects to be assigned to different queries. This confirms that DETR queries are highly position-aware, making spatial augmentation a direct path to forcing more queries to learn about the same object.
  • Efficiency: By manipulating features instead of raw images, FeatAug-DETR provides the benefits of one-to-many matching with only a ~15% increase in training time (using a Swin-L backbone), compared to the 100% increase required by image-level augmentation.
  • Strategic Placement: Augmenting features before the Transformer encoder is critical. Augmenting after the encoder disrupts the positional information already integrated by the encoder, leading to performance degradation.

Results and Performance

FeatAug-DETR was evaluated across object detection (COCO 2017), 3D object detection (ScanNetV2), and human pose estimation (PETR framework).

  • State-of-the-Art Accuracy: Integrated with Hybrid Matching and a Swin-L backbone, the method achieved 58.3 AP on COCO val2017.
  • Accelerated Convergence: On Deformable-DETR, FeatAug-DETR reached peak performance in just 24 epochs, significantly outperforming standard baselines that typically require 36 to 50 epochs.
  • Versatility: The method acts as a plug-and-play enhancement for various DETR flavors, including DAB-DETR and H-Deformable-DETR, showing consistent gains across different tasks without architecture-specific tuning.

Conclusion

FeatAug-DETR demonstrates that the bottleneck in DETR training is not the query architecture, but the density of the supervisory signal. By efficiently augmenting feature maps, the framework provides a simple yet powerful way to achieve one-to-many matching benefits. While it introduces a minor training overhead and requires projectors to handle cropping artifacts, its ability to significantly speed up convergence while reaching new performance peaks makes it a compelling addition to the DETR family.

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