[Paper Review] Overcoming Classifier Imbalance for Long-tail Object Detection with Balanced Group Softmax
This paper proposes Balanced Group Softmax (BAGS), a novel module that mitigates classifier imbalance in long-tail object detection by grouping categories with similar instance counts and applying group-wise softmax cross-entropy loss. By implicitly balancing training dynamics between head and tail classes without extra sampling, BAGS improves mAP by over 2% on COCO-LT and sets new state-of-the-art on LVIS, significantly outperforming prior methods and winners of LVIS 2019.
Solving long-tail large vocabulary object detection with deep learning based models is a challenging and demanding task, which is however under-explored.In this work, we provide the first systematic analysis on the underperformance of state-of-the-art models in front of long-tail distribution. We find existing detection methods are unable to model few-shot classes when the dataset is extremely skewed, which can result in classifier imbalance in terms of parameter magnitude. Directly adapting long-tail classification models to detection frameworks can not solve this problem due to the intrinsic difference between detection and classification.In this work, we propose a novel balanced group softmax (BAGS) module for balancing the classifiers within the detection frameworks through group-wise training. It implicitly modulates the training process for the head and tail classes and ensures they are both sufficiently trained, without requiring any extra sampling for the instances from the tail classes.Extensive experiments on the very recent long-tail large vocabulary object recognition benchmark LVIS show that our proposed BAGS significantly improves the performance of detectors with various backbones and frameworks on both object detection and instance segmentation. It beats all state-of-the-art methods transferred from long-tail image classification and establishes new state-of-the-art.Code is available at https://github.com/FishYuLi/BalancedGroupSoftmax.
Motivation & Objective
- To systematically analyze the root cause of poor performance in state-of-the-art detectors on long-tail datasets like LVIS.
- To identify classifier imbalance—driven by imbalanced parameter magnitude in the classification head—as a key factor in underperformance for tail classes.
- To address this imbalance in detection frameworks, where existing long-tail classification techniques fail due to architectural and training differences.
- To propose a plug-and-play module, BAGS, that enables effective joint training of head and tail classes without modifying data sampling or loss weighting.
- To demonstrate the generalization and robustness of BAGS across multiple backbones and detection frameworks on both LVIS and a constructed COCO-LT dataset.
Proposed method
- Group categories into bins based on their number of training instances to form balanced training groups.
- Apply group-wise softmax cross-entropy loss independently per group to reduce dominance of head classes during optimization.
- Introduce a 'category others' token within each group to provide diverse negative examples and reduce false positives.
- Treat the background class as a separate group to preserve its role as a strong negative reference.
- Train the classification head with BAGS using a decoupled strategy: fix feature extractor and fine-tune only the classifier weights and bias.
- Use a two-stage training protocol: first train the classifier head from random initialization, then fine-tune the full head or backbone for improved convergence.
Experimental results
Research questions
- RQ1Why do state-of-the-art detectors fail on long-tail object detection despite strong performance on balanced datasets like COCO?
- RQ2How does data imbalance in long-tail datasets lead to classifier parameter magnitude imbalance in the detection head?
- RQ3Why are existing long-tail classification techniques—such as re-weighting or re-sampling—ineffective when directly applied to object detection frameworks?
- RQ4Can group-wise training with a modified softmax loss effectively balance learning between head and tail classes in detection without data augmentation or sampling?
- RQ5Does the proposed BAGS module generalize across different detection architectures and datasets, including synthetic long-tail distributions?
Key findings
- BAGS improves mAP by 2.2 percentage points on Faster R-CNN and 2.4 on Mask R-CNN when trained on the COCO-LT dataset, which simulates LVIS’s long-tail distribution.
- On the LVIS validation set, BAGS achieves 26.25% mAP with ResNet-50-FPN, surpassing the LVIS 2019 winner (lvlvisis) by 2.29 percentage points and another winner (strangeturtle) by 2.35 points.
- The method achieves 17.97% AP on rare categories (AP r), significantly outperforming strangeturtle’s 11.70% on the same metric, indicating superior tail-class generalization.
- The ablation study shows that fine-tuning the full head or backbone yields only marginal gains over training only the classifier head, justifying the use of a lightweight training protocol.
- BAGS outperforms all transferred state-of-the-art methods from long-tail image classification, establishing a new SOTA on LVIS without bells and whistles.
- The model with BAGS maintains strong performance on both head and tail classes, with a balanced improvement across all AP thresholds, indicating effective mitigation of classifier imbalance.
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.