Lune

ICCV2023Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Long-tailed Recognition with Model Rebalancing cites Revive Re-weighting in Imbalanced Learning by Density Ratio Estimation
  • Long-tailed Recognition with Model Rebalancing cites Improving Visual Prompt Tuning by Gaussian Neighborhood Minimization for Long-Tailed Visual Recognition
  • Long-tailed Recognition with Model Rebalancing cites Decoupling Representation and Classifier for Long-Tailed Recognition
  • Long-tailed Recognition with Model Rebalancing cites A Unified Generalization Analysis of Re-Weighting and Logit-Adjustment for Imbalanced Learning
  • Revive Re-weighting in Imbalanced Learning by Density Ratio Estimation cites Decoupling Representation and Classifier for Long-Tailed Recognition
  • Revive Re-weighting in Imbalanced Learning by Density Ratio Estimation cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Revive Re-weighting in Imbalanced Learning by Density Ratio Estimation cites A Unified Generalization Analysis of Re-Weighting and Logit-Adjustment for Imbalanced Learning
  • Improving Visual Prompt Tuning by Gaussian Neighborhood Minimization for Long-Tailed Visual Recognition cites Decoupling Representation and Classifier for Long-Tailed Recognition
  • Improving Visual Prompt Tuning by Gaussian Neighborhood Minimization for Long-Tailed Visual Recognition cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Sharpness-aware Minimization for Efficiently Improving Generalization cites Fantastic Generalization Measures and Where to Find Them
  • DeiT-LT: Distillation Strikes Back for Vision Transformer Training on Long-Tailed Datasets cites Decoupling Representation and Classifier for Long-Tailed Recognition
  • DeiT-LT: Distillation Strikes Back for Vision Transformer Training on Long-Tailed Datasets cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • A Unified Generalization Analysis of Re-Weighting and Logit-Adjustment for Imbalanced Learning cites Decoupling Representation and Classifier for Long-Tailed Recognition
  • A Unified Generalization Analysis of Re-Weighting and Logit-Adjustment for Imbalanced Learning cites Sharpness-aware Minimization for Efficiently Improving Generalization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. 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
  2. Revive Re-weighting in Imbalanced Learning by Density Ratio EstimationJiaan Luo, Feng Hong, Jiangchao Yao, Bo Han et al.NeurIPS 2024 · 16 citations
  3. 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
  4. Long-tailed Recognition with Model RebalancingJiaan Luo, Feng Hong, Qiang Hu, Xiaofeng Cao et al.NeurIPS 2025 · 12 citations
  5. 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

  1. FCOS: Fully Convolutional One-Stage Object DetectionZhi Tian, Chunhua Shen, Hao Chen, Tong HeICCV 2019 · 6,042 citations
  2. Moment Matching for Multi-Source Domain AdaptationXingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang et al.ICCV 2019 · 2,239 citations
  3. Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
  4. Decoupling Representation and Classifier for Long-Tailed RecognitionBingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan et al.ICLR 2020 · 1,496 citations
  5. Fantastic Generalization Measures and Where to Find ThemYiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan et al.ICLR 2020 · 705 citations

Related papers

  1. 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
  2. Focal-SAM: Focal Sharpness-Aware Minimization for Long-Tailed ClassificationSicong Li, Qianqian Xu, Zhiyong Yang, Zitai Wang et al.ICML 2025
  3. Escaping Saddle Points for Effective Generalization on Class-Imbalanced DataHarsh Rangwani, Sumukh K. Aithal, Mayank Mishra, Venkatesh Babu R.NeurIPS 2022 · 50 citations
  4. Class-Conditional Sharpness-Aware Minimization for Deep Long-Tailed RecognitionZhipeng Zhou, Lanqing Li, Peilin Zhao, Pheng-Ann Heng et al.CVPR 2023
  5. 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
Dusk over the sea between two cliffs drawn in fine vertical lines