[Paper Review] Equalization Loss for Long-Tailed Object Recognition
This paper proposes Equalization Loss (EQL), a novel training objective that mitigates gradient imbalance in long-tailed object recognition by suppressing the discouraging gradients from negative samples during backpropagation for rare categories. By ignoring these gradients for tail classes, EQL enables more balanced learning, achieving 4.1% and 4.8% AP gains on rare and common categories respectively over Mask R-CNN baseline on LVIS, and securing 1st place in the LVIS Challenge 2019.
Object recognition techniques using convolutional neural networks (CNN) have achieved great success. However, state-of-the-art object detection methods still perform poorly on large vocabulary and long-tailed datasets, e.g. LVIS. In this work, we analyze this problem from a novel perspective: each positive sample of one category can be seen as a negative sample for other categories, making the tail categories receive more discouraging gradients. Based on it, we propose a simple but effective loss, named equalization loss, to tackle the problem of long-tailed rare categories by simply ignoring those gradients for rare categories. The equalization loss protects the learning of rare categories from being at a disadvantage during the network parameter updating. Thus the model is capable of learning better discriminative features for objects of rare classes. Without any bells and whistles, our method achieves AP gains of 4.1% and 4.8% for the rare and common categories on the challenging LVIS benchmark, compared to the Mask R-CNN baseline. With the utilization of the effective equalization loss, we finally won the 1st place in the LVIS Challenge 2019. Code has been made available at: https: //github.com/tztztztztz/eql.detectron2
Motivation & Objective
- To address the poor performance of object detectors on long-tailed datasets like LVIS, where rare categories are overwhelmed by frequent ones.
- To analyze the root cause of this failure as inter-class competition due to excessive discouraging gradients from negative samples on rare categories.
- To propose a simple yet effective loss function that equalizes the learning dynamics across all categories by selectively ignoring negative gradients for rare classes.
- To improve generalization and performance on rare categories without degrading performance on frequent ones.
- To validate the method across multiple tasks, including object detection, instance segmentation, and image classification, on long-tailed benchmarks.
Proposed method
- The method introduces a class-specific weighting scheme in the loss function that down-weights the contribution of negative gradients for rare categories during backpropagation.
- The core idea is to ignore gradients from negative samples (i.e., all other categories and background) when updating the classifier weights for rare categories, thus protecting them from being suppressed.
- The equalization loss is formulated as a modified cross-entropy loss with a dynamic weighting factor that depends on the class frequency, reducing the influence of negative samples for low-frequency classes.
- The method is compatible with standard training pipelines and can be applied to any classification head without architectural changes.
- The approach is extended to a self-regularized variant, SEQL, for image classification, which further improves performance on long-tailed datasets like ImageNet-LT.
- The method is combined with data augmentation, multi-scale testing, and ensemble strategies in the final solution, particularly for the LVIS Challenge 2019.
Experimental results
Research questions
- RQ1Why do state-of-the-art object detectors fail on long-tailed datasets like LVIS, especially for rare categories?
- RQ2How does the inter-class competition from negative samples affect the learning dynamics of rare categories during training?
- RQ3Can we improve recognition performance on rare categories by modifying the gradient flow during backpropagation?
- RQ4Does suppressing the discouraging gradients from negative samples for rare categories lead to better generalization without harming performance on frequent categories?
- RQ5Can the proposed loss be generalized across different tasks, such as object detection, instance segmentation, and image classification?
Key findings
- The proposed Equalization Loss achieves a 4.1% AP gain on rare categories and a 4.8% AP gain on common categories over the Mask R-CNN baseline on the LVIS benchmark.
- The method secured 1st place in the LVIS Challenge 2019, with a final Mask AP of 28.85 on the 20k test set, significantly outperforming the 2nd place (26.67) and 3rd place (24.04).
- On ImageNet-LT, the SEQL variant of EQL achieved 36.44% top-1 accuracy, outperforming prior methods like Focal Loss (30.5%) and OLTR (35.6%).
- The equalization loss effectively reduces the average gradient norm from negative samples for rare categories, as shown in Figure 1, leading to more balanced learning dynamics.
- Visualization in Figure 2 confirms that EQL increases the average predicted probability for positive proposals of rare categories without degrading performance on frequent ones.
- The method generalizes well: it improves performance across detection, segmentation, and classification tasks on long-tailed datasets without requiring complex architectural modifications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.