ImbSAM: A Closer Look at Sharpness-Aware Minimization in Class-Imbalanced Recognition
Yixuan Zhou, Yi Qu, Xing Xu, Hengtao Shen
Abstract
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 (Imb-SAM). 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: longtailed 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 .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext b24f7f18-3459-4408-bbfa-66fc3e2efb16Cited by top-tier papers20
- Improving Visual Prompt Tuning by Gaussian Neighborhood Minimization for Long-Tailed Visual RecognitionMengke Li, Ye Liu, Yang Lu, Yiqun Zhang et al.NeurIPS 2024 · 27 citations
- Revive Re-weighting in Imbalanced Learning by Density Ratio EstimationJiaan Luo, Feng Hong, Jiangchao Yao, Bo Han et al.NeurIPS 2024 · 16 citations
- A Unified Generalization Analysis of Re-Weighting and Logit-Adjustment for Imbalanced LearningZitai Wang, Qianqian Xu, Zhiyong Yang, Yuan He et al.NeurIPS 2023 · 15 citations
- Long-tailed Recognition with Model RebalancingJiaan Luo, Feng Hong, Qiang Hu, Xiaofeng Cao et al.NeurIPS 2025 · 12 citations
- DeiT-LT: Distillation Strikes Back for Vision Transformer Training on Long-Tailed DatasetsHarsh Rangwani, Pradipto Mondal, Mayank Mishra, Ashish Ramayee Asokan et al.CVPR 2024 · 12 citations
Builds on23
- FCOS: Fully Convolutional One-Stage Object DetectionZhi Tian, Chunhua Shen, Hao Chen, Tong HeICCV 2019 · 6,042 citations
- Moment Matching for Multi-Source Domain AdaptationXingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang et al.ICCV 2019 · 2,239 citations
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
- Decoupling Representation and Classifier for Long-Tailed RecognitionBingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan et al.ICLR 2020 · 1,496 citations
- Fantastic Generalization Measures and Where to Find ThemYiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan et al.ICLR 2020 · 705 citations
Related papers
- SSE-SAM: Balancing Head and Tail Classes Gradually Through Stage-Wise SAMXingyu Lyu, Qianqian Xu, Zhiyong Yang, Shaojie Lyu et al.AAAI 2025 · 2 citations
- Focal-SAM: Focal Sharpness-Aware Minimization for Long-Tailed ClassificationSicong Li, Qianqian Xu, Zhiyong Yang, Zitai Wang et al.ICML 2025
- Escaping Saddle Points for Effective Generalization on Class-Imbalanced DataHarsh Rangwani, Sumukh K. Aithal, Mayank Mishra, Venkatesh Babu R.NeurIPS 2022 · 50 citations
- Class-Conditional Sharpness-Aware Minimization for Deep Long-Tailed RecognitionZhipeng Zhou, Lanqing Li, Peilin Zhao, Pheng-Ann Heng et al.CVPR 2023
- The Majority Can Help the Minority: Context-rich Minority Oversampling for Long-tailed ClassificationSeulki Park, Youngkyu Hong, Byeongho Heo, Sangdoo Yun et al.CVPR 2022 · 199 citations
