Abstract
Imbalance issues remain a significant bottleneck for modern object detection models. This research identifies two previously overlooked imbalances in two-stage detectors: first, a scarcity of high-quality proposals during early training that biases the R-CNN module toward the background; and second, an inconsistency in the number of positive proposals across images with varying object densities. To address these, we introduce R-CNN Gradient Annealing (RGA) to amplify early learning from sparse positives and Parallel R-CNN Modules (PRM) to adapt to diverse object counts. These innovations yield a 2.0% AP improvement on the COCO benchmark and demonstrate strong generalization on the challenging CrowdHuman dataset.
The Problem: Two Hidden Imbalances
In two-stage object detection (e.g., Faster R-CNN), a Region Proposal Network (RPN) generates potential object locations for refinement by an R-CNN module. While foreground-background imbalance is well-studied, this paper dives into two "hidden" imbalances:
- The Early Training Bottleneck: Initially, the RPN is untrained and produces very few high-quality proposals. Consequently, the R-CNN module is overwhelmed by negative (background) samples, causing it to develop a heavy background bias before it can effectively learn object features.
- The Testing Inconsistency: Object density varies significantly between images. An image with dozens of objects naturally provides more "potentially positive" proposals than a sparse image. However, standard detectors use a single, fixed sampling ratio during training, which fails to account for this diversity.
Proposed Solutions
R-CNN Gradient Annealing (RGA)
To prevent the R-CNN from being overwhelmed by background noise early on, RGA magnifies the gradients of positive proposals. By multiplying the bounding box head gradients by a factor ($\lambda$) at the start of training, the model is forced to focus intensely on the few available positives. As the RPN improves, this magnification factor is gradually "annealed" to 1, ensuring the model maintains its ability to distinguish background later in training.
Parallel R-CNN Modules (PRM)
To handle varying object densities, the authors attach multiple R-CNN "heads" to a shared backbone. Each head is trained with a different positive-to-negative sampling ratio (e.g., 1:1 and 1:9). During inference, the model averages the scores from these parallel heads. This ensemble approach allows the model to benefit from different class biases—one head might be more "optimistic" about finding objects, while another is more "cautious"—making the system robust to diverse scene complexities.
Key Results and Insights
The researchers evaluated their methods on the COCO and CrowdHuman benchmarks. Integrating RGA and PRM into a Faster R-CNN (ResNet-50) baseline increased the Average Precision (AP) from 36.1% to 38.1%. These improvements were consistent across different backbones and even enhanced the state-of-the-art Cascade R-CNN from 40.5% to 41.7% AP.
On the dense CrowdHuman dataset, the method reduced the log-average-missing-rate (mMR) by 2.29%, proving particularly effective in packed environments. Interestingly, the PRM approach benefits the shared backbone even without the final ensemble, as the "gradient ensemble" from diverse heads during training results in more robust underlying features.
Conclusion
By addressing the scarcity of positive proposals in early training and the inconsistency of proposal counts across images, RGA and PRM offer a robust solution to fundamental imbalances in two-stage detection. While the parallel heads introduce a minor inference overhead, the significant gains in accuracy and robustness across varying object densities make this a valuable advancement for the field.
Summary updated