Abstract
Query-based object detectors directly decode image features into object instances with a set of learnable queries. These query vectors are progressively refined to stable meaningful representations through a sequence of decoder layers, and then used to directly predict object locations and categories with simple FFN heads. In this paper, we present a new query-based object detector (DEQDet) by designing a deep equilibrium decoder. Our DEQ decoder models the query vector refinement as the fixed point solving of an implicit layer and is equivalent to applying infinite steps of refinement. To be more specific to object decoding, we use a two-step unrolled equilibrium equation to explicitly capture the query vector refinement. Accordingly, we are able to incorporate refinement awareness into the DEQ training with the inexact gradient back-propagation (RAG). In addition, to stabilize the training of our DEQDet and improve its generalization ability, we devise the deep supervision scheme on the optimization path of DEQ with refinement-aware perturbation (RAP). Our experiments demonstrate DEQDet converges faster, consumes less memory, and achieves better results than the baseline counterpart (AdaMixer). In particular, our DEQDet with ResNet50 backbone and 300 queries achieves the 49.5 mAP and 33.0 AP_S on the MS COCO benchmark under 2× training scheme (24 epochs).
Introduction
Modern object detection has shifted towards query-based architectures like DETR and AdaMixer. These models utilize learnable "queries" to probe image features. To achieve high precision, these queries typically undergo iterative refinement through a stack of multiple decoder layers. However, this traditional approach faces two significant challenges: parameter inefficiency and fixed depth. Stacking layers linearly increases the parameter count and memory consumption, often leading to overfitting or computational bottlenecks.
DEQDet addresses these issues by reimagining the decoder as an implicit layer that solves for an equilibrium state. This approach effectively simulates an infinitely deep refinement process with a constant memory footprint, allowing for more robust object representation without the linear cost of stacking layers.
Methodology
The core innovation of DEQDet is the transition from a discrete stack of layers to a continuous equilibrium model.
From Stacked Layers to Equilibrium
Traditional detectors use a Feed-Forward Network (FFN) view, where $N$ distinct decoder layers are stacked. By sharing weights across these layers, the model can be viewed as a Recurrent Neural Network (RNN). DEQDet takes this a step further by defining the refinement as an implicit function $y^* = f(x, y^*)$, where $y^*$ is the fixed point. This allows the model to find the optimal query representation directly using a black-box solver like Anderson Acceleration, rather than relying on a fixed number of iterations.
Optimization: RAG and RAP
Standard training for Deep Equilibrium (DEQ) models often employs Jacobian-free gradients to reduce computational costs. However, for complex tasks like object detection, ignoring the refinement trajectory can lead to sub-optimal results. DEQDet introduces Refinement-Aware Gradient (RAG), which utilizes a two-step unrolled equilibrium equation to capture the dynamics of query refinement during backpropagation.
To further enhance robustness, the authors employ Refinement-Aware Perturbation (RAP). By injecting Gaussian noise into the latent space during fixed-point iterations, the model learns to "correct" imprecise object estimates, acting as a powerful form of regularization on the optimization path.
Experimental Results
DEQDet was evaluated on the MS-COCO dataset, comparing it against state-of-the-art query-based detectors.
- State-of-the-Art Performance: With a ResNet-50 backbone and 300 queries, DEQDet achieved 49.5 mAP, a significant improvement over its direct baseline, AdaMixer.
- Efficiency and Scalability: The model significantly reduced parameter counts (e.g., from 134M to 61M in specific configurations) while maintaining higher accuracy. When scaled with a Swin-Small backbone, it reached 52.7 mAP.
- Memory Savings: Because DEQDet solves for an equilibrium rather than storing every intermediate layer's activations, it consumes less GPU memory during training than traditional deep-stacked models.
Conclusion
DEQDet represents a significant step forward in query-based object detection. By leveraging the principles of deep equilibrium models, it achieves the benefits of extreme depth without the associated memory and parameter costs. While the forward pass requires iterative solving, the gains in efficiency and generalization make it a compelling alternative to traditional stacked architectures. Future work may extend this implicit refinement framework to other vision tasks such as instance segmentation and video object tracking.
Summary updated