Abstract
Standard Convolutional Neural Networks (CNNs) trained on long-tailed datasets exhibit a pronounced spatial bias, where Class Activation Maps (CAMs) for rare "tail" classes often highlight irrelevant background features rather than the target objects. This paper introduces CAM Calibration (CAMC), a novel approach that utilizes cached class prototypes to refocus the network's spatial attention on class-relevant regions. By integrating CAMC with normalized classifiers during the representation learning phase, the authors achieve state-of-the-art results across five major long-tailed recognition benchmarks, including ImageNet-LT and iNaturalist 2018. Our findings suggest that addressing spatial attention is a critical component for improving the recognition of rare categories in imbalanced data distributions.
Introduction
In real-world scenarios, visual data typically follows a long-tailed distribution where a few "head" classes have abundant samples, while many "tail" classes are sparsely represented. Standard CNNs tend to become biased toward head classes, leading to poor generalization on the tail.
A critical symptom of this failure is the degradation of Class Activation Maps (CAMs). For tail classes, the network often fails to distinguish the object from its context, resulting in CAMs that highlight background pixels instead of the target object. This spatial misalignment indicates that the model has learned suboptimal decision boundaries due to the lack of diverse training examples for rare categories.
Methodology
The proposed solution involves two key components: CAM Calibration and the use of normalized classifiers during feature learning.
CAM Calibration (CAMC & CAMC++)
To correct spatial bias, the authors introduce a calibration module that borrows concepts from few-shot learning. The system maintains a cache of "prototype" vectors—embeddings that represent the core features of each tail class. During inference or training, the input feature map is convolved with these prototypes to generate a calibrated attention map. This map highlights regions most similar to the class "essence," which is then used to re-weight the feature representations, effectively filtering out background noise. An extended version, CAMC++, utilizes a sliding window approach to capture finer local details across image patches.
Normalized Classifiers
While post-training weight normalization is common, this paper advocates for using a normalized classifier during the representation learning stage. By fixing weight magnitudes and introducing a learnable scaling factor ($g$), the authors can control the prediction entropy. This prevents the model from becoming prematurely overconfident in head classes, fostering more discriminative features for the entire class distribution.
Experimental Results
The effectiveness of CAMC was evaluated across five benchmarks: ImageNet-LT, Places-LT, iNaturalist 2018, CIFAR10-LT, and CIFAR100-LT. The proposed methods consistently outperformed previous state-of-the-art (SOTA) methods like Decoupling (cRT/LWS) and BBN.
- ImageNet-LT: Using a ResNeXt-50 backbone, the CAMC++ model achieved 55.4% Top-1 accuracy, significantly surpassing previous SOTA methods which hovered around 49.9%.
- iNaturalist 2018: The model reached 73.0% accuracy, outperforming the IEM model's 70.2%.
- Qualitative Analysis: Visualizations confirm that calibrated models focus more accurately on objects. For instance, while a vanilla CNN might focus on the surrounding water to identify a "sea snake," the CAMC-enhanced model focuses specifically on the snake's body.
Conclusion
The success of CAMC highlights that tail-class performance is fundamentally a spatial problem. By forcing the network to attend to the correct pixels through prototype-based calibration, accuracy on rare classes improves dramatically. While the method introduces some computational overhead due to the patch-based processing in CAMC++, it provides a robust foundation for long-tailed visual recognition. Future work may explore more dynamic ways to update cached prototypes to further enhance calibration stability.
Summary updated