Decoupling Representation and Classifier for Long-Tailed Recognition
Bingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan, Albert Gordo, Jiashi Feng, Yannis Kalantidis
TL;DR
This paper tackles long-tailed recognition by decoupling the learning of representations from the classifier. It systematically analyzes how different sampling strategies affect representation learning and introduces several decoupled classifier mechanisms (cRT, NCM, tau-normalized, LWS) to rebalance decision boundaries without retraining representations. Across ImageNet-LT, Places-LT, and iNaturalist, decoupled learning with instance-balanced representations and classifier balancing achieves state-of-the-art results, often surpassing methods that rely on specialized losses or memory modules. The work provides practical guidance for handling imbalanced data and suggests that simple, well-balanced classifiers can unlock strong tail-class performance. The accompanying code is released to facilitate reproducibility and adoption.
Abstract
The long-tail distribution of the visual world poses great challenges for deep learning based classification models on how to handle the class imbalance problem. Existing solutions usually involve class-balancing strategies, e.g., by loss re-weighting, data re-sampling, or transfer learning from head- to tail-classes, but most of them adhere to the scheme of jointly learning representations and classifiers. In this work, we decouple the learning procedure into representation learning and classification, and systematically explore how different balancing strategies affect them for long-tailed recognition. The findings are surprising: (1) data imbalance might not be an issue in learning high-quality representations; (2) with representations learned with the simplest instance-balanced (natural) sampling, it is also possible to achieve strong long-tailed recognition ability by adjusting only the classifier. We conduct extensive experiments and set new state-of-the-art performance on common long-tailed benchmarks like ImageNet-LT, Places-LT and iNaturalist, showing that it is possible to outperform carefully designed losses, sampling strategies, even complex modules with memory, by using a straightforward approach that decouples representation and classification. Our code is available at https://github.com/facebookresearch/classifier-balancing.
