[Paper Review] Region Rebalance for Long-Tailed Semantic Segmentation
This paper proposes Region Rebalance, a novel method to address class imbalance in long-tailed semantic segmentation by grouping correlated pixels into regions and applying a rebalanced classifier on region-level features via an auxiliary training branch. The approach achieves consistent mIoU gains across multiple architectures, including a +0.7% improvement on BEiT for ADE20K, by resolving the misalignment between pixel-level training and IoU-based evaluation.
In this paper, we study the problem of class imbalance in semantic segmentation. We first investigate and identify the main challenges of addressing this issue through pixel rebalance. Then a simple and yet effective region rebalance scheme is derived based on our analysis. In our solution, pixel features belonging to the same class are grouped into region features, and a rebalanced region classifier is applied via an auxiliary region rebalance branch during training. To verify the flexibility and effectiveness of our method, we apply the region rebalance module into various semantic segmentation methods, such as Deeplabv3+, OCRNet, and Swin. Our strategy achieves consistent improvement on the challenging ADE20K and COCO-Stuff benchmark. In particular, with the proposed region rebalance scheme, state-of-the-art BEiT receives +0.7% gain in terms of mIoU on the ADE20K val set.
Motivation & Objective
- Address the challenge of class imbalance in semantic segmentation, where long-tailed data distributions lead to poor performance on rare classes.
- Identify that pixel-level rebalancing fails to improve IoU due to misalignment between cross-entropy loss and IoU evaluation metric.
- Overcome the non-i.i.d. nature of pixel correlations by shifting rebalancing from the pixel to the region level.
- Develop a flexible, plug-in module that enhances performance without modifying the main segmentation network.
- Demonstrate consistent gains across diverse architectures and benchmarks, including ADE20K and COCO-Stuff164K.
Proposed method
- Group pixel features of the same semantic class into region features using spatial average pooling across connected components.
- Introduce an auxiliary region classification branch that applies a balanced softmax loss to region-level features during training.
- Train the main segmentation head with pixel cross-entropy loss and the region branch with balanced softmax loss, jointly optimizing both.
- Use a hyperparameter λ to balance the pixel and region loss terms in the total training objective.
- Remove the region branch at inference, leaving the original segmentation network unchanged.
- Leverage the fact that region-level class frequencies are less imbalanced than pixel-level frequencies, enabling more effective rebalancing.
Experimental results
Research questions
- RQ1Why does pixel-level rebalancing fail to improve mIoU despite improving pixel accuracy in long-tailed semantic segmentation?
- RQ2How do spatial correlations among neighboring pixels undermine the effectiveness of class frequency-based pixel rebalancing?
- RQ3Can region-level classification provide a more effective and stable signal for rebalancing in long-tailed semantic segmentation?
- RQ4Does the proposed region rebalance method generalize across different architectures and benchmarks?
- RQ5What is the impact of combining region-level rebalancing with standard pixel cross-entropy loss on overall segmentation performance?
Key findings
- Region Rebalance achieves a +0.7% mIoU gain on the ADE20K validation set when applied to BEiT, setting a new state-of-the-art at the time of submission.
- The method improves mIoU by +1.21%, +1.61%, +1.22%, and +0.7% for OCRNet, DeepLabv3+, Swin, and BEiT respectively on ADE20K.
- On COCO-Stuff164K, the method consistently improves IoU for low-frequency classes, with the “shower” class increasing from 0 to 6.14 mIoU.
- Ablation studies show that the region branch alone provides significant gains on COCO-Stuff164K, suggesting stronger regularization effects in high-imbalance settings.
- The method is robust to hyperparameter λ, with optimal performance observed in the range [0.1, 0.3], and remains effective even when Dice loss is used alone.
- The combination of pixel cross-entropy and region-level balanced softmax yields the best performance (45.02 mIoU), while using only Dice loss leads to a drastic drop to 1.14 mIoU.
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.