Abstract
Standard instance segmentation models struggle with the "long-tail" distribution of real-world datasets, where frequent categories dominate training and suppress rare ones. We introduce Equalization Loss (EQL), a mechanism that protects rare categories by selectively ignoring negative gradients from frequent samples. This approach, combined with annotation-cleaning strategies and inference-time re-scoring, significantly improves performance on the LVIS dataset, achieving a 5.1% AP gain and winning the 2019 LVIS Challenge.
Introduction
While datasets like COCO and Pascal VOC have driven computer vision progress, they contain a limited number of balanced categories. In contrast, the LVIS (Large Vocabulary Instance Segmentation) dataset features over 1,200 categories with a severe long-tail distribution. In such environments, standard multi-class training paradigms fail because frequent classes provide a constant stream of negative signals for rare classes, effectively preventing the model from learning them.
The Challenge of Long-Tail Distributions
The primary obstacle in large-vocabulary segmentation is the imbalance of negative gradients. In a typical setup, every instance of a "person" (a frequent class) serves as a negative example for "sunflower" (a rare class). Because "person" appears orders of magnitude more often, the cumulative negative gradient for "sunflower" overwhelms any positive signal from its few actual instances.
Methodology
Equalization Loss (EQL)
EQL addresses the negative gradient imbalance by modifying the standard Sigmoid-based loss. It introduces a weighting mechanism that ignores the negative gradient for a category $j$ when the current sample belongs to a frequent category $i$. This "protectionist" policy ensures that rare categories are not penalized out of existence by the sheer volume of frequent-class data.
Handling Missing Annotations: COCO Ignore
LVIS is not exhaustively annotated, leading to potential false negatives where unlabeled objects are treated as background. By leveraging COCO annotations on shared images, the "COCO Ignore" strategy reduces loss weights for predictions that match COCO labels but are missing in LVIS, cleaning the supervision signal.
Re-scoring Ensemble
To account for the naturally lower confidence scores of rare classes at inference, a re-scoring technique is applied. This post-processing step boosts the scores of rare categories based on their training frequency, preventing them from being filtered out by standard confidence thresholds.
Results
The proposed framework, built upon Mask R-CNN with class-agnostic masks, demonstrated superior performance in the 2019 LVIS Challenge.
- Quantitative Gains: The model achieved a 28.9 mask AP on the LVIS test set, representing a 5.1% absolute improvement over the baseline.
- Rare Category Performance: The impact was most pronounced for rare classes, with an 11.4% gain in $AP_r$.
Conclusion
Equalization Loss effectively levels the playing field for rare objects in large-vocabulary datasets. By mitigating the suppressive effects of frequent categories, EQL enables robust learning across the entire distribution. Future work may involve dynamic parameter tuning for the rarity threshold and deeper integration of re-scoring logic into the training architecture.
Summary updated