Introduction
In many computer vision tasks, such as age estimation or crowd counting, target values are often distributed unevenly. This "imbalanced regression" problem leads standard models to over-fit to common "head" data while failing on rare "tail" data. A common strategy is to discretize the continuous target into discrete bins (classification). However, this introduces a trade-off: fine-grained bins offer precision but are hard to learn with scarce data, while coarse-grained bins are easier to learn but lack the necessary resolution.
Hierarchical Classification Adjustment (HCA)
Researchers from the National University of Singapore have introduced Hierarchical Classification Adjustment (HCA), a framework that leverages the strengths of both coarse and fine classifications. The method consists of three core components:
- Hierarchical Ensemble: The model trains a hierarchy of $H$ classifiers. The top level uses the finest bins for precision, while lower levels use increasingly coarse bins. These coarse bins are constructed using sample-balanced splitting, ensuring that even rare "tail" samples are well-represented in broader categories.
- Adjustment Mechanism: High-confidence range predictions from coarse classifiers are used to modulate the fine-grained predictions. This effectively "drags" the final estimate toward the correct neighborhood identified by the more robust coarse models.
- Range-Preserving Distillation (HCA-d): To maintain efficiency during inference, the entire hierarchy is distilled into a single classifier. The authors introduced a novel range-preserving loss to ensure the distilled model's fine-grained predictions remain consistent with the constraints set by the coarse-grained levels.
Key Insights: Why Coarse is Correct
The fundamental insight of HCA is that while coarse classifiers cannot provide exact values, they are significantly more reliable at identifying the general range of a target in imbalanced settings. By enforcing consistency across the hierarchy, the model prevents the fine-grained head from making "wild" guesses that contradict the more stable coarse heads.
Experimental Results
The authors evaluated HCA-d across several imbalanced regression benchmarks, focusing on performance across Many-shot, Medium-shot, and Few-shot ranges:
- Age Estimation (IMDB-WIKI-DIR): HCA-d achieved a balanced Mean Absolute Error (bMAE) of 12.70, outperforming the standard classification baseline (13.58).
- Crowd Counting (SHTech Part A): The model significantly improved accuracy, reducing the MAE from 58.2 to 53.7.
- Depth Estimation (NYUDv2-DIR): The method proved robust across varying data distributions, improving "tail" performance without sacrificing accuracy on common samples.
Conclusion
HCA-d provides a mathematically general framework for addressing imbalanced regression by combining hierarchical ensembles with range-preserving distillation. While its benefits are most pronounced when data is both imbalanced and scarce, its ability to improve tail-end performance while maintaining head-end accuracy makes it a powerful tool for real-world computer vision applications. Future work may extend this hierarchical logic to other domains like financial forecasting or medical signal processing.
Summary updated