StageInteractor: Query-based Object Detector with Cross-stage Interaction

Yao Teng, Haisong Liu, Sheng Guo, Limin WangICCV 2023

Abstract

Modern object detectors have increasingly moved toward query-based architectures, which utilize a sparse set of learnable queries and a sequence of decoder layers. While effective, these models often suffer from training instability due to independent one-to-one label assignment at each stage and high computational costs associated with increasing model capacity. This paper introduces StageInteractor, a novel detector that enables information sharing across decoder stages. By implementing a Cross-stage Label Assigner (CSLA) to stabilize training and a Cross-stage Dynamic Filter Reuse (CDFR) mechanism to efficiently boost modeling capacity, StageInteractor achieves significant performance gains. On the MS COCO benchmark, the model improves the baseline by 2.2 AP, reaching 44.8 AP with a ResNet-50 backbone in just 12 epochs, and up to 52.2 AP with a Swin-S backbone.

Introduction

The evolution of object detection has seen a transition from dense, anchor-based methods to sparse, query-based frameworks like DETR. These modern architectures rely on a series of decoder layers to progressively refine object locations and categories. However, two primary bottlenecks hinder their performance: training instability and computational inefficiency.

Training instability often arises from the standard "one-to-one bipartite matching" strategy. Because matching is performed independently at each decoder layer, a specific query may be assigned to a ground-truth object in one stage but treated as background in the next, even if the prediction remains relatively stable. Furthermore, increasing the modeling capacity of these detectors typically requires stacking complex dynamic operators, which generates a prohibitive computational overhead. StageInteractor addresses these challenges by facilitating interaction between stages during both training and inference.

Methodology

Cross-stage Label Assignment (CSLA)

To mitigate the "jitter" caused by independent bipartite matching, StageInteractor introduces the Cross-stage Label Assigner. Instead of treating each decoder stage as an isolated optimization problem, CSLA gathers matching results across multiple stages. If a query at a particular stage demonstrates a strong match for a ground-truth object (determined by an Intersection over Union (IoU) threshold), that label is shared with the corresponding query in other stages. This provides more consistent and "dense" supervision across the decoder, helping the model converge faster and develop stronger fine-grained discrimination.

Cross-stage Dynamic Filter Reuse (CDFR)

To enhance model capacity without a massive explosion in parameters, the authors propose the CDFR module. In traditional query-based detectors, dynamic filters (which generate custom weights for every image) are computationally expensive. CDFR reuses the heavy dynamic filters generated in previous stages and employs lightweight adapters—simple linear layers—to fuse these existing filters with new ones. This allows the model to perform complex feature mixing at a fraction of the usual computational cost, effectively recycling parameters to deepen the interaction between features.

Experimental Evaluation

Dataset and Setup

The model was evaluated on the MS COCO (Microsoft Common Objects in Context) dataset, using train2017 for training and val2017 for validation and ablation studies. Final comparisons were conducted on the test-dev set. The baseline architecture used for integration was AdaMixer, though the authors demonstrated that the cross-stage logic is generalizable to other models like DINO and DN-DETR.

Results and Performance

StageInteractor demonstrated substantial improvements over existing state-of-the-art detectors:

  • Baseline Improvement: The model achieved 44.8 AP using a ResNet-50 backbone with only 12 training epochs, a 2.2 AP increase over the AdaMixer baseline.
  • High-End Performance: With larger backbones and extended training, StageInteractor reached 51.1 AP with ResNeXt-101-DCN and 52.2 AP with a Swin-S backbone.
  • Efficiency: Despite the added cross-stage interactions, the model maintains high efficiency. It is only approximately 1.16x slower than the baseline during inference and introduces a negligible increase in GPU memory footprint (~5%).
  • Convergence: Convergence curves indicate that StageInteractor reaches higher accuracy levels significantly earlier in the training process compared to its peers, validating the effectiveness of the CSLA module.

Conclusion

StageInteractor presents a compelling case for the benefits of cross-stage interaction in query-based object detection. By addressing the inherent instabilities of bipartite matching and the efficiency hurdles of dynamic operators, the framework provides a robust and scalable solution for modern computer vision tasks. Future work may explore more specialized layer designs within the cascade and further theoretical grounding for why these specific interactions so effectively optimize the training process.

Summary updated

BibTeX
@inproceedings{teng2023stageinteractor,
  author = {Yao Teng and Haisong Liu and Sheng Guo and Limin Wang},
  title = {{StageInteractor: Query-based Object Detector with Cross-stage Interaction}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=JMXEYvG76M4},
}
Figure