Introduction
Modern computer vision systems are often assumed to be robust to small spatial perturbations. However, researchers from TomTom have identified a significant fragility in object detection models regarding Shift Equivariance. This property dictates that a translation in the input image should result in an equivalent translation in the output bounding boxes. This paper demonstrates that even a 1-pixel shift can lead to drastic changes in a detector's predictions, challenging the reliability of these systems in safety-critical applications.
The Problem of Shift Equivariance
In an ideal equivariant system, shifting an input image by a few pixels would simply shift the resulting bounding boxes by the same amount. In practice, architectural components of Convolutional Neural Networks (CNNs)—such as strided convolutions, max-pooling layers, and zero-padding—break this spatial symmetry. While the sensitivity of image classifiers to shifts is well-documented, object detection presents a more complex challenge due to the interplay of localization, classification, and post-processing steps like Non-Maximum Suppression (NMS).
Methodology: Measuring AP Variations
To quantify this sensitivity, the authors propose a new evaluation pipeline based on AP variations ($\Delta AP$). This metric represents the difference between the maximum and minimum Average Precision (AP) scores achievable across a range of small image shifts.
Calculating the exact $\Delta AP$ for a large dataset is computationally prohibitive. To address this, the researchers developed a Greedy Approximation algorithm. This approach iteratively optimizes the shift for individual images while keeping others constant, providing a tractable way to estimate the performance bounds. To ensure that shifts did not introduce edge artifacts, images were embedded into larger black backgrounds, allowing for "content" translation without pixel loss.
Key Insights
The investigation revealed several critical vulnerabilities in state-of-the-art detectors like RetinaNet, Faster R-CNN, and CenterNet:
- 1-Pixel Fragility: Models exhibited significant performance fluctuations with shifts as small as one pixel. A particularly striking finding was the occurrence of "class swaps," where a minor translation caused the model to change an object's label entirely—for instance, misidentifying an elephant as a cow.
- Architectural Sensitivity: CenterNet, which relies on heatmap-based peak finding (a form of max-pooling), proved to be the least robust. This suggests that certain localization mechanisms are inherently more "brittle" than traditional box-clustering NMS.
- Persistence Across Datasets: The sensitivity remained even on the DOTA dataset, which lacks the "photographer's bias" (centering of objects) common in COCO. This confirms that the issue is architectural rather than a byproduct of training data distribution.
Results and Discussion
The experimental results highlight the scale of the problem. On the COCO dataset, a 1-pixel maximum shift resulted in $\Delta AP_{50}$ variations of 5.1 for RetinaNet, 6.4 for Faster R-CNN, and 8.1 for CenterNet. When the shift range was extended to 15 pixels, RetinaNet's performance varied by a staggering 21.5 points.
While techniques like "BlurPool" anti-aliasing improved robustness by approximately 30%, they did not eliminate the variance. Interestingly, the researchers found that Test-Time Augmentation (TTA)—averaging predictions across multiple shifts—can improve overall accuracy by leveraging these variations, though it does not solve the underlying lack of equivariance.
Conclusion
The study concludes that current object detection architectures are fundamentally shift-variant. The proposed $\Delta AP$ metric provides a necessary tool for researchers to ensure that reported improvements in state-of-the-art performance are not merely artifacts of specific image alignments. Future research must focus on developing architectural primitives that explicitly enforce shift equivariance to ensure the reliability of vision systems in real-world deployments.
Summary updated