Abstract
While most research in object detection focuses on designing deeper backbones or more complex architectures, Libra R-CNN addresses the often-overlooked training process. The authors identify three critical imbalances—sample-level, feature-level, and objective-level—that limit the performance of standard detectors. By introducing IoU-balanced sampling, a balanced feature pyramid, and balanced L1 loss, Libra R-CNN achieves significant performance gains of up to 2.5 AP on MSCOCO over strong baselines like Faster R-CNN without adding inference overhead.
Introduction: The Problem of Imbalance
The success of an object detector depends on representative training samples, fully utilized visual features, and an optimal loss function. However, standard training pipelines suffer from significant imbalances in these areas:
- Sample-level Imbalance: Random sampling often leads to a training set dominated by "easy" examples, while valuable "hard" examples are underrepresented.
- Feature-level Imbalance: Sequential feature fusion in pyramids (like FPN) can dilute information from non-adjacent levels, such as the highest and lowest resolutions.
- Objective-level Imbalance: The simultaneous optimization of classification and localization can be dominated by one task, and gradients from "easy" samples can be drowned out by outliers, preventing high-precision localization.
The Libra R-CNN Framework
To restore balance to the training process, Libra R-CNN integrates three novel components into the standard R-CNN pipeline. These components primarily affect the training phase, making the performance boost essentially "free" during inference.
1. IoU-balanced Sampling
Instead of purely random sampling, this method partitions the Intersection over Union (IoU) range into bins. By sampling an equal number of candidates from each bin, the model is forced to look at more "hard negatives"—background regions that look very similar to objects. This ensures the training distribution is closer to the distribution of difficult cases the model will face at test time.
2. Balanced Feature Pyramid
To prevent information dilution across scales, Libra R-CNN employs a four-step integration process:
- Rescale: All feature levels are resized to a common intermediate scale.
- Integrate: These features are averaged to create a single "balanced semantic feature."
- Refine: This integrated feature is refined using a non-local attention module to capture global context.
- Strengthen: The refined feature is rescaled back to the original levels and added to the initial features, ensuring every level benefits from the information in all other levels.
3. Balanced L1 Loss
Standard Smooth L1 loss can be dominated by outliers during early training. The proposed Balanced L1 Loss increases the gradient contribution from "inliers" (samples with small errors). By boosting these crucial gradients, the model is encouraged to perform more precise bounding box refinement.
Experimental Results
The authors evaluated Libra R-CNN on the MSCOCO dataset, the gold standard for object detection featuring 80 categories and significant scale variation.
- Performance Gains: Using a ResNet-50 backbone, Libra R-CNN achieved 38.7 AP, which is 2.5 points higher than the FPN Faster R-CNN baseline.
- Versatility: When applied to the single-stage RetinaNet, it improved performance by 2.0 AP.
- State-of-the-Art: With a more powerful ResNeXt-101 backbone, it reached 43.0 AP, outperforming many more complex contemporary models.
Conclusion
Libra R-CNN demonstrates that significant gains in object detection are available by refining how we train, rather than just adding more layers or parameters. By addressing sample, feature, and objective imbalances, it provides a robust and efficient framework for high-performance detection. While the methods are robust, future work may involve tuning hyperparameters like the gradient factor $\alpha$ for specific new datasets or extending these principles to instance segmentation and keypoint detection.
Summary updated