Abstract
Standard instance segmentation models perform poorly on long-tailed datasets where rare categories have few training examples. This work identifies that the primary bottleneck is not object localization but classification bias toward frequent classes. By decoupling the classifier and retraining it with class-balanced sampling, we achieve significant performance gains for rare categories, forming the basis of the winning entry for the LVIS 2019 Challenge.
Introduction
In real-world scenarios, visual data typically follows a long-tail distribution. While a few common categories appear frequently, the vast majority of categories are rare. Standard models like Mask R-CNN, while effective on balanced datasets like COCO, fail significantly on long-tailed datasets such as LVIS. In these cases, performance on "tail" classes often drops to near zero. This research investigates the root cause of this failure and proposes a simple yet effective calibration strategy.
The Classification Bottleneck
To understand why models fail on rare classes, we performed a "sanity check" experiment. We evaluated a baseline Mask R-CNN model but replaced its predicted class labels with ground-truth labels for the generated proposals.
As shown in the data, the Average Precision (AP) for the rarest bin (0-10 instances) jumped from 0.0 to 39.7. This demonstrates that the Region Proposal Network (RPN) is capable of finding rare objects; however, the classification head is so biased toward frequent classes that it consistently mislabels them.
Methodology: Classification Calibration
The proposed solution involves a "decoupling" strategy to address classification bias without degrading the quality of the learned representations.
- Decoupling and Balanced Retraining: The backbone and RPN are frozen to preserve the model's ability to propose regions. A new classification head is then trained using a class-balanced sampling strategy, ensuring equal representation for rare and frequent classes during this phase.
- Calibration and Concatenation: The final model utilizes a hybrid approach. A heuristic split is applied where the balanced head predicts rare "tail" classes (fewer than 100 instances), while the original head handles frequent "many-shot" classes.
- Architectural Scaling: This technique was integrated into the Hybrid Task Cascade (HTC) architecture, utilizing ResNeXt-101 backbones and external data from COCO for enhanced feature robustness.
Experimental Results
The calibration method yielded substantial improvements across various architectures. On the baseline Mask R-CNN, AP for the rarest bin improved significantly from a baseline of zero.
When applied to the more advanced HTC model, the AP for the rarest categories increased from 7.1 to 16.0. While the overall AP improvement might appear modest (e.g., 29.4 to 29.8), the model became significantly more "fair," providing a much more balanced performance across the entire vocabulary. This approach was central to the winning solution of the LVIS Challenge at ICCV 2019.
Conclusion
Classification calibration offers a straightforward and effective way to handle long-tail distributions in instance segmentation. By recognizing that the bottleneck lies in the classifier's bias rather than the feature extractor's capability, we can achieve state-of-the-art results on challenging datasets like LVIS without complex loss functions or synthetic data. Future work will explore more sophisticated methods for combining multi-head predictions and optimizing sampling strategies for the extreme tail.
Summary updated