Introduction
The DEtection TRansformer (DETR) has revolutionized object detection by eliminating the need for hand-crafted components like anchor boxes. However, DETR models often suffer from slow training convergence and performance degradation as the network depth increases. Miti-DETR addresses these issues by introducing a novel architectural modification designed to combat "rank collapse"—a phenomenon where token representations become overly similar, reducing the model's expressive power.
The Challenge: Rank Collapse in Self-Attention
Recent theoretical research indicates that deep self-attention networks are prone to rank collapse (or token uniformity). As the network grows deeper, the output of attention layers tends to converge toward a rank-one matrix, where every token becomes identical. This loss of diversity makes it difficult for the model to distinguish between different parts of an image, hindering optimization and limiting final detection accuracy.
Mitigatory Self-Attention Architecture
Miti-DETR introduces a "mitigatory" self-attention mechanism to preserve feature diversity throughout the network. In a standard Transformer block, residual connections are typically localized around the Multi-Head Self-Attention (MHSA) and Multi-Layer Perceptron (MLP) modules independently. Miti-DETR adds a global residual connection that spans the entire block.
This structural change ensures that "non-attention" information—original features that haven't been smoothed by the attention mechanism—is propagated through every layer. Mathematically, this acts as an anchor that maintains a lower bound on the feature matrix's rank, preventing collapse and ensuring the network retains unique spatial information throughout its depth.
Experimental Results
Evaluated on the COCO 2017 benchmark, Miti-DETR demonstrates significant improvements in both accuracy and training efficiency.
Accuracy and Convergence
Miti-DETR achieves 40.5 Average Precision (AP) on COCO, a 2.9-point improvement over the original DETR baseline (37.6 AP). The gains are even more pronounced at higher precision thresholds, with a nearly 4% increase in AP75.
Crucially, Miti-DETR exhibits much faster and more stable convergence. While the original DETR often shows training instability—evidenced by spikes in error between epochs 150 and 200—Miti-DETR maintains a smooth, downward trajectory.
Efficiency and Qualitative Impact
Remarkably, these performance gains are achieved without increasing computational cost. Miti-DETR maintains the same parameter count (~41.3M) and inference latency as the baseline DETR, making it a highly efficient "plug-and-play" upgrade. Qualitative analysis further reveals that the model is less prone to false positives and missed detections, particularly for medium and large objects.
Limitations and Future Work
While Miti-DETR shows impressive gains across all object sizes, the improvement for small objects (APs) is relatively modest (~1.7% gain) compared to medium and large objects. Detecting small objects remains a persistent challenge for Transformer-based models. Future work could involve extending this mitigatory residual mechanism to other Transformer-based tasks, such as image segmentation or natural language processing.
Conclusion
Miti-DETR provides a simple yet effective solution to the convergence and depth-scaling issues inherent in Transformer-based detectors. By using a global residual connection to mitigate rank collapse, the model achieves superior accuracy and stability with no additional overhead. It sets a new standard for efficient, high-performance Transformer architectures in computer vision.
Summary updated