NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DECO: Query-Based End-to-End Object Detection with ConvNets

Xinghao Chen, Siwei Li, Yijing Yang, Yunhe Wang · DOI

Abstract

Query-based object detection, pioneered by the Detection Transformer (DETR), has revolutionized the field by enabling end-to-end training without hand-crafted components like Non-Maximum Suppression (NMS). However, the reliance on Transformer attention mechanisms introduces dynamic memory access patterns that are challenging to optimize for edge deployment. This paper introduces DECO (Detection ConvNet), the first framework to successfully replace the Transformer architecture in query-based detection with a pure convolutional design. By leveraging a novel "InterConv" mechanism, DECO achieves competitive accuracy and superior inference speed, demonstrating that the benefits of end-to-end detection are achievable without the overhead of attention layers.

Introduction

Since the introduction of DETR, object detection has increasingly moved toward query-based architectures. These models utilize a set of learnable "object queries" to interact with image features, producing a fixed-size set of predictions. While effective, the Transformer's attention mechanism—the backbone of these models—relies on dynamic memory access, where weights are computed at runtime based on input data. This characteristic often leads to bottlenecks on standard AI hardware and edge devices optimized for the static memory access of Convolutional Neural Networks (ConvNets).

DECO addresses this by asking whether the elegant query-based paradigm can be maintained using only standard convolutional layers. The resulting architecture provides a more "deployment-friendly" alternative for real-time applications.

Methodology: The InterConv Mechanism

The core innovation of DECO is the InterConv mechanism, which replaces the self-attention and cross-attention layers found in traditional DETR decoders. The architecture maintains the standard encoder-decoder structure but substitutes every attention-based component with a convolutional equivalent.

Comparison of the standard Attention mechanism (left) and the proposed InterConv mechanism (right).

Self-InterConv (SIM)

To replace Self-Attention, which allows object queries to interact with one another, DECO introduces the Self-Interaction Module (SIM). In this module, the 1D query embeddings (e.g., 100 queries) are reshaped into a 2D grid (e.g., 10x10). A series of large-kernel (9x9) depthwise and 1x1 convolutions are then applied. This spatial reshaping allows queries to interact with their neighbors in the grid, effectively mimicking the relational reasoning of self-attention through local and global convolutional receptive fields.

Cross-InterConv (CIM)

The Cross-Interaction Module (CIM) replaces Cross-Attention, where queries probe image features for object information. In CIM, object queries are upsampled to match the resolution of the image features. The queries and features are fused via element-wise addition and processed through a large-kernel depthwise convolution. Finally, an adaptive pooling layer downsamples the fused features back into the original query format.

DECO+

For enhanced performance, the authors developed DECO+, which incorporates multi-scale feature fusion. By integrating features from multiple levels of the backbone (similar to techniques used in RT-DETR), DECO+ significantly improves detection accuracy for objects of varying sizes.

Experimental Results

DECO was primarily evaluated on the COCO 2017 benchmark. The results demonstrate a remarkable balance between accuracy and inference speed across various backbones.

Performance comparison (AP vs. Latency) of DECO+ against state-of-the-art object detectors on the COCO 2017 validation set.

Accuracy and Speed

With a ResNet-50 backbone, DECO+ achieves 47.8% AP (Average Precision). When paired with a more powerful ConvNeXt-B backbone, it reaches 50.6% AP. In terms of speed, the ResNet-18 version of DECO+ operates at 66 FPS, outperforming many Transformer-based counterparts within the same accuracy range.

In a direct comparison with the original DETR using a ResNet-50 backbone, DECO achieved 38.6% AP at 35 FPS, while DETR achieved 39.5% AP at 28 FPS. While the vanilla DECO shows a slight accuracy gap, its significantly higher throughput highlights the efficiency of the convolutional approach.

Generalization to Segmentation

To test the versatility of the DECO decoder, the authors applied it to the Segment Anything (SAM) task. Using the TinySAM baseline, DECO-TinySAM achieved 41.4% AP with a latency of 29ms, improving upon the original TinySAM's 34ms latency while maintaining competitive performance.

Key Insights

  • Paradigm over Implementation: The success of DECO suggests that the learnable query paradigm is the primary driver of DETR's success, rather than the specific use of attention.
  • Importance of Kernel Size: Ablation studies revealed that large kernels are essential for mimicking the long-range dependencies of Transformers. A 9x9 kernel was found to be the "sweet spot," as smaller kernels (5x5) led to performance degradation, while larger ones (up to 15x15) yielded diminishing returns.

Conclusion and Future Work

DECO proves that pure ConvNets can successfully power query-based, end-to-end object detection. By replacing dynamic attention with static convolutions, DECO offers a hardware-efficient alternative that is easier to deploy on edge devices. Future work includes closing the performance gap by adapting advanced DETR training techniques—such as denoising and specialized query selection—to the convolutional framework, as well as exploring how the DECO decoder scales with massive foundation models.

Summary updated

BibTeX
@inproceedings{chen2025deco,
  author = {Xinghao Chen and Siwei Li and Yijing Yang and Yunhe Wang},
  title = {{DECO: Query-Based End-to-End Object Detection with ConvNets}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=TWRhLAN5rz},
}
Figure