Abstract
Real-world object detection datasets often exhibit a "long-tailed" distribution, where a few common categories dominate while the majority of classes have very few instances. Standard detectors struggle in this regime, becoming biased toward frequent "head" classes. This paper introduces LOCE (Long-tailed Object detector with Classification Equilibrium), a framework that leverages a model's internal confidence scores—specifically the Mean Classification Score (MCS)—to dynamically balance learning. By adaptively adjusting decision boundaries through an Equilibrium Loss and re-sampling rare features via a Memory-augmented module, LOCE achieves a significant 15.6 AP boost for rare classes on the LVIS dataset without sacrificing performance on common ones.
The Long-Tail Challenge in Object Detection
In practical applications, data is rarely balanced. A few categories (e.g., "person", "car") appear frequently, while hundreds of others (e.g., "anteater", "unicycle") are rare. Standard object detectors trained on such data often misclassify rare "tail" objects as common "head" ones.
Traditional solutions typically rely on static fixes, such as over-sampling rare images or re-weighting loss functions based on fixed instance counts. However, these methods ignore the inherent visual complexity of different classes; some rare classes are easy to distinguish, while some common ones are highly ambiguous. The authors argue for a dynamic indicator that reflects the model's actual learning state for each category in real-time.
Methodology: Achieving Equilibrium
The LOCE framework addresses the imbalance through three integrated components:
1. Mean Classification Score (MCS)
Instead of relying on static instance counts, LOCE tracks the Mean Classification Score (MCS)—the average prediction probability for each class—using an exponential moving average. This serves as a real-time "health check" of the model's proficiency in recognizing each category.
2. Equilibrium Loss (EBL)
The Equilibrium Loss uses the MCS to guide the training process. If the MCS indicates a class is poorly learned (low score), the EBL pushes the decision boundary away from that class and toward more dominant ones. This adjustment makes it easier for the model to correctly identify rare objects by reducing the "pressure" from frequent classes.
3. Memory-augmented Feature Sampling (MFS)
To avoid the overfitting and slow training associated with repeating rare images, LOCE introduces Memory-augmented Feature Sampling (MFS). This module stores diverse object features in a memory bank, allowing the model to "see" rare classes more frequently across iterations. By using a model-agnostic bounding box generator, MFS extracts high-quality features that are not limited by the current performance of the detector's region proposal network.
Experimental Results
The researchers evaluated LOCE on the LVIS (v0.5 and v1.0) and COCO datasets. LOCE established a new state-of-the-art for long-tailed detection:
- Significant Gains for Rare Classes: On LVIS v1.0, LOCE improved the detection of rare classes by 15.6 AP compared to a standard Mask R-CNN baseline.
- Superiority over Existing Methods: LOCE outperformed recent competitive methods like Seesaw Loss, BAGS, and EQL v2 by more than 1.0 AP overall.
- Balanced Performance: Crucially, LOCE improved rare class detection without the typical performance drop in frequent classes.
- Architecture Agnostic: The improvements were consistent across various backbones, including ResNet-50 and ResNet-101.
Conclusion and Future Directions
LOCE demonstrates that a model's internal confidence is a powerful tool for navigating data imbalance. By treating confidence as a "compass," the framework achieves a more equitable learning process.
While highly effective, future work could focus on reducing the sensitivity to hyper-parameters like memory size and smoothing coefficients. Additionally, extending the Memory-augmented Feature Sampling—currently optimized for two-stage detectors—to one-stage architectures like YOLO would broaden the framework's applicability.
Summary updated