[Paper Review] Distribution Alignment: A Unified Framework for Long-tail Visual Recognition
This paper proposes DisAlign, a unified two-stage framework for long-tail visual recognition that improves performance by calibrating classifier outputs via distribution alignment. It uses an adaptive calibration function and generalized re-weighting to align predictions with a balanced class prior, achieving state-of-the-art results across image classification, semantic segmentation, and object detection on long-tailed benchmarks like ImageNet-LT, iNaturalist, ADE20k, and LVIS.
Despite the recent success of deep neural networks, it remains challenging to effectively model the long-tail class distribution in visual recognition tasks. To address this problem, we first investigate the performance bottleneck of the two-stage learning framework via ablative study. Motivated by our discovery, we propose a unified distribution alignment strategy for long-tail visual recognition. Specifically, we develop an adaptive calibration function that enables us to adjust the classification scores for each data point. We then introduce a generalized re-weight method in the two-stage learning to balance the class prior, which provides a flexible and unified solution to diverse scenarios in visual recognition tasks. We validate our method by extensive experiments on four tasks, including image classification, semantic segmentation, object detection, and instance segmentation. Our approach achieves the state-of-the-art results across all four recognition tasks with a simple and unified framework. The code and models will be made publicly available at: https://github.com/Megvii-BaseDetection/DisAlign
Motivation & Objective
- Address the performance gap in long-tail visual recognition caused by biased decision boundaries in two-stage learning frameworks.
- Investigate the root cause of poor tail-class performance in deep networks trained on imbalanced datasets.
- Develop a unified, principled method to recalibrate classification scores without extensive hyperparameter tuning.
- Enable effective adaptation across diverse visual recognition tasks—image classification, semantic segmentation, object detection, and instance segmentation—under long-tailed data distributions.
- Provide a flexible, generalized re-weighting strategy that incorporates class priors to balance predictions across head, body, and tail classes.
Proposed method
- Propose a two-stage learning framework: first pre-train a representation backbone on unbalanced data, then fine-tune the classifier head using distribution alignment.
- Design an adaptive calibration function that applies input-dependent, learnable magnitude and margin to classification scores for confidence-aware distribution alignment.
- Introduce a generalized re-weighting mechanism that models the balanced class prior and dynamically adjusts loss weighting based on class frequency.
- Align the predicted class distribution with a reference distribution favoring balanced predictions, reducing bias toward head classes.
- Integrate the distribution alignment module as a lightweight, plug-in component that can be applied to various models and backbone architectures.
- Use cosine classifier heads in some experiments to further improve generalization and reduce overfitting on rare classes.

Experimental results
Research questions
- RQ1What causes the performance gap between ideal and baseline models in two-stage long-tail recognition, despite good feature representations?
- RQ2Can a unified, principled strategy for distribution alignment improve performance across diverse visual recognition tasks without task-specific tuning?
- RQ3How does adaptive calibration of classification scores affect prediction bias in long-tailed settings?
- RQ4To what extent can generalized re-weighting based on class priors improve generalization on tail and body classes?
- RQ5Does the proposed method maintain performance on head classes while significantly boosting accuracy on rare and long-tail categories?
Key findings
- On ImageNet-LT, DisAlign achieves 32.4% top-1 accuracy with ResNet-50, outperforming the previous SOTA by 2.5 percentage points.
- On iNaturalist, DisAlign achieves 41.7% top-1 accuracy, a 3.1% improvement over the baseline, with significant gains on tail classes.
- On ADE20k semantic segmentation, DisAlign improves mIoU by 2.3 points (to 47.8) with ResNeSt-101, setting a new SOTA.
- On LVIS for object detection, DisAlign achieves 33.7% AP with ResNeXt-101, a 3.0% gain over the baseline, with substantial improvements on rare categories.
- On LVIS instance segmentation, DisAlign improves mask AP from 27.3% to 29.7% with ResNeXt-101, showing strong gains on tail classes.
- Ablation studies confirm that the adaptive calibration and generalized re-weighting components are essential, with both contributing significantly to performance gains.

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.