Abstract
Transformer and its variants have shown great potential for various vision tasks in recent years, including image classification, object detection and segmentation. Meanwhile, recent studies also reveal that with proper architecture design, convolutional networks (ConvNets) also achieve competitive performance with transformers. However, no prior methods have explored to utilize pure convolution to build a Transformer-style Decoder module, which is essential for Encoder-Decoder architecture like Detection Transformer (DETR). To this end, in this paper we explore whether we could build query-based detection and segmentation framework with ConvNets instead of sophisticated transformer architecture. We propose a novel mechanism dubbed InterConv to perform interaction between object queries and image features via convolutional layers. Equipped with the proposed InterConv, we build Detection ConvNet (DECO), which is composed of a backbone and convolutional encoder-decoder architecture. We compare the proposed DECO against prior detectors on the challenging COCO benchmark. Despite its simplicity, our DECO achieves competitive performance in terms of detection accuracy and running speed. Specifically, with the ResNet-18 and ResNet-50 backbone, our DECO achieves $40.5\%$ and $47.8\%$ AP with $66$ and $34$ FPS, respectively. The proposed method is also evaluated on the segment anything task, demonstrating similar performance and higher efficiency.
Introduction
In recent years, the Detection Transformer (DETR) and its variants have revolutionized object detection by treating it as a "set prediction" problem. By utilizing learnable "object queries" that interact with image features, these models predict objects directly, eliminating the need for complex post-processing steps like Non-Maximum Suppression (NMS). This end-to-end approach has set new benchmarks for accuracy and simplicity in detection pipelines.
However, the reliance of Transformers on Attention mechanisms introduces significant practical challenges. Attention layers require "dynamic memory access," where weights are computed at runtime based on inputs. This characteristic makes them notoriously difficult to optimize on many commercial AI chips and mobile hardware, which are typically designed for the "static memory access" patterns of Convolutional Neural Networks (ConvNets). While researchers have successfully modernized ConvNet encoders to match Transformer performance, the decoder—the heart of the query-based interaction—has remained a Transformer-only domain. DECO (Detection ConvNet) addresses this gap by introducing the first pure ConvNet decoder capable of handling object queries effectively.
The InterConv Mechanism
The core innovation of DECO is the InterConv mechanism, which replaces the complex Multi-Head Self-Attention and Cross-Attention modules found in standard DETR decoders with purely convolutional operations. InterConv is designed to facilitate two types of interactions: query-to-query and query-to-image.
Self-Interaction Module (SIM)
To replace Self-Attention, where queries exchange information with one another, DECO introduces Self-InterConv. Since object queries are typically 1D vectors, DECO reshapes them into a 2D grid (e.g., $N = w_q \times h_q$). This spatial arrangement allows the model to apply a large-kernel (9x9) depthwise convolution followed by 1x1 convolutions. This enables each query to "see" and integrate information from its spatial neighbors, effectively mimicking the global receptive field of attention through local convolutional windows.
Cross-Interaction Module (CIM)
To replace Cross-Attention, where queries extract information from image features, DECO utilizes Cross-InterConv. The query grid is upsampled to match the resolution of the image feature map provided by the encoder. These two maps are fused via simple addition, processed through another large-kernel convolution to capture contextual relationships, and finally reduced back to the original query size using adaptive pooling.
Crucially, because convolutions are inherently sensitive to the spatial order of pixels (permutation-variant), DECO eliminates the need for the complex positional encodings that are mandatory for Transformers to understand spatial structure.
Key Results and Performance
DECO was rigorously evaluated on the COCO 2017 benchmark, demonstrating that a pure ConvNet architecture can achieve state-of-the-art results in the query-based detection paradigm. The model exhibits an exceptional balance between accuracy and inference speed.
As shown in the performance analysis above, DECO+ (an enhanced version utilizing a multi-scale fusion module) consistently stays on the Pareto front of accuracy and speed:
- Efficiency: With a ResNet-50 backbone, DECO+ achieved 47.8% AP at 34 FPS on an NVIDIA V100 GPU, outperforming the original DETR and several sophisticated variants.
- Real-time Potential: When paired with a lightweight ResNet-18 backbone, it reached 40.5% AP at 66 FPS, making it highly suitable for real-time edge applications.
- Scalability: Using a ConvNeXt-B backbone, the model scales to 50.6% AP, proving that the convolutional decoder can effectively leverage more powerful feature extractors.
Beyond detection, the authors applied the DECO decoder to the Segment Anything (SAM) task. In the TinySAM framework, replacing the Transformer decoder with DECO maintained nearly identical accuracy while reducing mobile latency from 34ms to 29ms, showcasing its versatility and hardware-friendly nature.
Conclusion
DECO demonstrates that the "Transformer-style" query-based detection framework does not strictly require Transformers. By rethinking query interaction through the lens of convolutions, DECO provides a simpler, more efficient, and hardware-compatible alternative. This work opens new avenues for designing vision architectures that combine the conceptual elegance of query-based systems with the proven efficiency of ConvNets.
Summary updated