Introduction
One-stage object detectors are prized for their speed, yet they often lag behind two-stage counterparts in accuracy. A primary reason is the fundamental misalignment between anchor boxes and the convolutional features used for prediction. While two-stage detectors use operations like RoIAlign to precisely match features to proposed regions, one-stage detectors typically apply standard convolutions over dense feature maps. This forces multiple anchors with varying aspect ratios to share the same feature representation at a single spatial location, creating a bottleneck for precision.
The Im2Col Connection
A key contribution of this work is the mathematical demonstration that standard convolutions are not as different from RoI operations as previously thought. The im2col operation, which underlies most convolution implementations, can be viewed as a special case of RoIAlign performed on a fixed, implicit bounding box.
In this view, one-stage detectors are already performing a form of RoI alignment, but they are doing so on rigid, misaligned boxes. To address this, the authors propose RoI Convolution (RoIConv). Unlike Deformable Convolutions that learn offsets via backpropagation, RoIConv calculates exact spatial offsets to bridge the geometric gap between the convolution's implicit RoI and the target anchor box.
The AlignDet Architecture
The authors introduce AlignDet, a fully convolutional one-stage detector designed to leverage RoIConv for perfect feature alignment.
AlignDet consists of two main components:
- Dense Proposal Module (DPM): Dynamically learns optimal anchor shapes.
- Aligned Detection Module (ADM): Uses RoIConv to align backbone features to these learned anchors before final classification and regression.
By combining learned anchors with aligned features, AlignDet requires only one anchor per location, significantly simplifying the architecture compared to traditional multi-anchor designs like RetinaNet.
Key Insights
- FPNs as Misalignment Mitigation: Feature Pyramid Networks (FPNs) in one-stage detectors primarily compensate for misalignment by matching anchor scales to feature strides. Without FPNs, one-stage performance collapses, whereas two-stage detectors remain relatively robust.
- Geometric vs. Learned Alignment: While Deformable Convolutions focus on discriminative parts (e.g., a face), RoIConv's mathematically derived offsets ensure strict geometric alignment with the entire bounding box, leading to superior detection performance.
Results and Performance
AlignDet achieves state-of-the-art results on the COCO benchmark:
- Accuracy: Reaches 44.1 mAP on COCO
test-devwith a ResNeXt-101 backbone. - Efficiency: Outperforms RetinaNet by 3.3 mAP with negligible impact on inference speed (180ms vs 177ms).
- Single-Scale Robustness: Adding a single $3 \times 3$ RoIConv layer to a single-scale RetinaNet improves performance by 5.0 mAP, highlighting the impact of explicit alignment.
Limitations
The primary trade-off in RoIConv is computational cost versus alignment density. Larger kernel sizes (e.g., $7 \times 7$) provide better alignment but are more expensive. To maintain real-time performance, AlignDet uses a hybrid approach, restricting kernel sizes on high-resolution feature maps.
Summary updated