Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

ImbSAM: A Closer Look at Sharpness-Aware Minimization in Class-Imbalanced Recognition

About

Class imbalance is a common challenge in real-world recognition tasks, where the majority of classes have few samples, also known as tail classes. We address this challenge with the perspective of generalization and empirically find that the promising Sharpness-Aware Minimization (SAM) fails to address generalization issues under the class-imbalanced setting. Through investigating this specific type of task, we identify that its generalization bottleneck primarily lies in the severe overfitting for tail classes with limited training data. To overcome this bottleneck, we leverage class priors to restrict the generalization scope of the class-agnostic SAM and propose a class-aware smoothness optimization algorithm named Imbalanced-SAM (ImbSAM). With the guidance of class priors, our ImbSAM specifically improves generalization targeting tail classes. We also verify the efficacy of ImbSAM on two prototypical applications of class-imbalanced recognition: long-tailed classification and semi-supervised anomaly detection, where our ImbSAM demonstrates remarkable performance improvements for tail classes and anomaly. Our code implementation is available at https://github.com/cool-xuan/Imbalanced_SAM.

Yixuan Zhou, Yi Qu, Xing Xu, Hengtao Shen• 2023

Related benchmarks

TaskDatasetResultRank
Long-Tailed Image ClassificationImageNet-LT (test)
Top-1 Acc (Overall)55.3
220
Image ClassificationImageNet-LT (test)
Top-1 Acc (All)55.3
159
Image ClassificationCIFAR-100-LT Imbalance Ratio 100
Top-1 Acc0.548
88
Image ClassificationCIFAR-100-LT Imbalance Ratio 10
Top-1 Acc59.7
83
Long-Tailed Image ClassificationiNaturalist 2018
Accuracy71.1
82
Image ClassificationCIFAR-100-LT (Imbalance Ratio 50)
Top-1 Accuracy59.3
61
Long-tail Image ClassificationiNaturalist 2018 (test)--
59
Long-Tailed Image ClassificationiNat (val test)
Overall Accuracy71.1
17
Showing 8 of 8 rows

Other info

Follow for update