[Paper Review] Miti-DETR: Object Detection based on Transformers with Mitigatory Self-Attention Convergence
Miti-DETR proposes a residual self-attention mechanism that connects input tokens directly to the output of each multi-head self-attention layer to mitigate rank collapse in Transformers, significantly improving convergence speed and average precision by up to 3% on COCO object detection, with no increase in model size or inference time.
Object Detection with Transformers (DETR) and related works reach or even surpass the highly-optimized Faster-RCNN baseline with self-attention network architectures. Inspired by the evidence that pure self-attention possesses a strong inductive bias that leads to the transformer losing the expressive power with respect to network depth, we propose a transformer architecture with a mitigatory self-attention mechanism by applying possible direct mapping connections in the transformer architecture to mitigate the rank collapse so as to counteract feature expression loss and enhance the model performance. We apply this proposal in object detection tasks and develop a model named Miti-DETR. Miti-DETR reserves the inputs of each single attention layer to the outputs of that layer so that the "non-attention" information has participated in any attention propagation. The formed residual self-attention network addresses two critical issues: (1) stop the self-attention networks from degenerating to rank-1 to the maximized degree; and (2) further diversify the path distribution of parameter update so that easier attention learning is expected. Miti-DETR significantly enhances the average detection precision and convergence speed towards existing DETR-based models on the challenging COCO object detection dataset. Moreover, the proposed transformer with the residual self-attention network can be easily generalized or plugged in other related task models without specific customization.
Motivation & Objective
- Address the inherent rank collapse issue in pure self-attention networks that degrades feature expression with depth.
- Improve training stability and convergence speed of DETR-based models without data or hyperparameter tuning.
- Enhance detection performance—especially for small and large objects—by preserving global feature representation.
- Develop a plug-and-play module that generalizes across transformer-based object detection and related tasks.
- Demonstrate that architectural modifications within the transformer itself can outperform existing methods without increasing model size or inference cost.
Proposed method
- Introduce a residual connection that directly links the input of each multi-head self-attention layer to its output, bypassing the feed-forward network.
- Preserve non-attention features through skip connections to prevent the attention output from collapsing to a rank-1 matrix.
- Form a residual self-attention network that maintains expressive power across deeper networks by countering the inductive bias toward rank-1 convergence.
- Apply the residual self-attention module within the DETR transformer encoder and decoder stacks without architectural overhaul.
- Train the model end-to-end on COCO using standard training protocols to evaluate convergence and detection performance.
- Ensure compatibility with existing DETR frameworks by maintaining the same number of parameters and inference time as baseline DETR.
Experimental results
Research questions
- RQ1Can a residual self-attention mechanism mitigate rank collapse in self-attention networks and improve feature expression in deep Transformers?
- RQ2Does the proposed residual connection accelerate convergence and stabilize training in DETR-based object detectors?
- RQ3To what extent does Miti-DETR improve detection accuracy on COCO, particularly for small and large objects?
- RQ4Can the residual self-attention module be generalized to other transformer-based models without retraining or architectural changes?
- RQ5Does the method maintain inference speed and model size while improving performance compared to baseline DETR and UP-DETR?
Key findings
- Miti-DETR improves mean average precision (AP) by approximately 3% over the original DETR on the COCO dataset, with a 4% gain on AP75 (IoU threshold 0.75).
- The model achieves significantly faster convergence, with stable training curves and no performance divergence observed during the learning rate schedule.
- Miti-DETR reduces false positives and leak detections in visualization results, such as misclassifying ties or aircraft, indicating improved localization accuracy.
- The model maintains the same number of parameters and nearly identical inference time as DETR, while UP-DETR increases model size and reduces speed.
- Miti-DETR shows superior robustness across different training settings, outperforming UP-DETR under limited epochs and GPU resources.
- The residual self-attention mechanism enables better global feature representation, especially benefiting detection of small objects, where performance gains are most notable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.