分阶段平衡头尾类,提升长尾数据下模型泛化能力
SSE-SAM: Balancing Head and Tail Classes Gradually through Stage-Wise SAM
- 分阶段使用SAM与ImbSAM优势,先优化头部后优化尾部
- 在多个数据集上显著提升尾部类别准确率,整体性能优于基线
- 适合处理标注不均衡的现实场景,如医疗分类、小样本识别
真实世界数据集常呈现长尾分布,多数类别(尾部类别)样本极少。传统方法易在这些类别上过拟合。近期提出的不平衡SAM(ImbSAM)通过增强尾部类别损失的平滑性,利用尖锐感知最小化(SAM)的泛化优势。然而我们指出,长尾场景下的泛化需精细平衡头部与尾部类别。分析表明,仅用SAM无法有效改善尾部损失的鞍点逃逸;而仅用ImbSAM则导致头部类别训练不足,性能明显下降。为此,本文提出分阶段鞍点逃逸SAM(SSE-SAM),初期沿多数样本方向避开头部类别损失的鞍点,后期聚焦尾部类别实现其鞍点逃逸。实验验证SSE-SAM在头部与尾部类别上均具备更强的鞍点逃逸能力,性能显著优于现有方法。
原文摘要 · Abstract (English)
Real-world datasets often exhibit a long-tailed distribution, where vast majority of classes known as tail classes have only few samples. Traditional methods tend to overfit on these tail classes. Recently, a new approach called Imbalanced SAM (ImbSAM) is proposed to leverage the generalization benefits of Sharpness-Aware Minimization (SAM) for long-tailed distributions. The main strategy is to merely enhance the smoothness of the loss function for tail classes. However, we argue that improving generalization in long-tail scenarios requires a careful balance between head and tail classes. We show that neither SAM nor ImbSAM alone can fully achieve this balance. For SAM, we prove that although it enhances the model's generalization ability by escaping saddle point in the overall loss landscape, it does not effectively address this for tail-class losses. Conversely, while ImbSAM is more effective at avoiding saddle points in tail classes, the head classes are trained insufficiently, resulting in significant performance drops. Based on these insights, we propose Stage-wise Saddle Escaping SAM (SSE-SAM), which uses complementary strengths of ImbSAM and SAM in a phased approach. Initially, SSE-SAM follows the majority sample to avoid saddle points of the head-class loss. During the later phase, it focuses on tail-classes to help them escape saddle points. Our experiments confirm that SSE-SAM has better ability in escaping saddles both on head and tail classes, and shows performance improvements.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。