Abstract
Lite DETR introduces an "interleaved" encoder strategy that significantly reduces the computational cost of DETR-based object detectors by up to 60% while maintaining 99% of their original accuracy. By updating high-level semantic features more frequently than computationally heavy low-level features and introducing a novel Key-aware Deformable Attention (KDA), Lite DETR makes state-of-the-art detection models significantly more practical for real-world applications.
Introduction
The DEtection TRansformer (DETR) has revolutionized object detection, but its multi-scale encoder remains a major computational bottleneck. To detect objects of all sizes, DETR models use multi-scale feature maps. However, the low-level, high-resolution maps—which are critical for finding small objects—account for roughly 75% of the total data tokens.
Processing all these tokens through every layer of a standard Transformer encoder is incredibly expensive, as the computational cost grows quadratically with the number of tokens. While researchers have improved DETR backbones and decoders, the encoder has remained a massive bottleneck. Previous attempts to address this usually involved "pruning" or dropping tokens, which often broke the structured nature of the features or hurt the detection of small objects.
Methods: The Lite Encoder
The authors propose two primary innovations to make the encoder "Lite":
Interleaved Update Strategy
Instead of treating all feature scales equally, Lite DETR splits them into high-level (small resolution, rich semantics) and low-level (large resolution, fine details) groups. The encoder updates high-level features multiple times ($A$ times) for every single time it updates the low-level features. This "interleaved" approach prioritizes the most informative tokens while drastically reducing the number of queries processed in most layers.
Key-aware Deformable Attention (KDA)
Because low-level features are updated less frequently, they can become "lagged" or out-of-sync with high-level features. Standard deformable attention predicts weights based only on the query. KDA improves this by sampling both keys and values from the feature maps and performing a dot-product attention. This allows the model to "verify" the content at sampled locations, leading to much more reliable attention weights even in an interleaved system.
Key Results
Lite DETR was evaluated on the MS COCO 2017 detection dataset across various backbones, including ResNet-50 and Swin-Tiny. The design is "plug-and-play," meaning it can be integrated into existing DETR-based architectures like DINO or H-DETR with minimal effort.
- Massive Efficiency Gains: Lite DETR reduces the GFLOPs of the detection head by approximately 60% while keeping 99% of the original performance. For the encoder specifically, GFLOPs were reduced by 62% to 78% across different models.
- State-of-the-Art Trade-offs: A Lite-DINO model using a Swin-T backbone achieved 53.9 AP (Average Precision) with only 159 GFLOPs, outperforming much heavier standard models and other "efficient" variants like Sparse DETR.
- Small Object Preservation: Unlike simple token-dropping methods, Lite DETR maintains high performance on small objects ($AP_s$), which are usually the first to suffer when models are compressed.
Conclusion
Lite DETR demonstrates that efficiency can be achieved by reducing the frequency of updates for heavy feature maps rather than deleting them. By focusing on semantic refinement and introducing content-aware attention, the model retains the ability to detect small objects without the massive GFLOP penalty. Future work will involve optimizing the run-time implementation to ensure these theoretical gains translate into faster real-world inference speeds across diverse hardware.
Summary updated