[Paper Review] Escaping Saddle Points for Effective Generalization on Class-Imbalanced Data
This paper identifies that deep neural networks trained on class-imbalanced data converge to saddle points in the loss landscape for minority classes, despite re-weighting techniques. By applying Sharpness-Aware Minimization (SAM), which enhances gradients along negative curvature directions, the method effectively escapes these saddle points, improving generalization and achieving a 6.2% accuracy gain on minority classes over Vector Scaling Loss, with a 4% average improvement across datasets.
Real-world datasets exhibit imbalances of varying types and degrees. Several techniques based on re-weighting and margin adjustment of loss are often used to enhance the performance of neural networks, particularly on minority classes. In this work, we analyze the class-imbalanced learning problem by examining the loss landscape of neural networks trained with re-weighting and margin-based techniques. Specifically, we examine the spectral density of Hessian of class-wise loss, through which we observe that the network weights converge to a saddle point in the loss landscapes of minority classes. Following this observation, we also find that optimization methods designed to escape from saddle points can be effectively used to improve generalization on minority classes. We further theoretically and empirically demonstrate that Sharpness-Aware Minimization (SAM), a recent technique that encourages convergence to a flat minima, can be effectively used to escape saddle points for minority classes. Using SAM results in a 6.2\% increase in accuracy on the minority classes over the state-of-the-art Vector Scaling Loss, leading to an overall average increase of 4\% across imbalanced datasets. The code is available at: https://github.com/val-iisc/Saddle-LongTail.
Motivation & Objective
- To investigate why re-weighting and margin-based methods fail to generalize well on minority classes in long-tailed datasets.
- To analyze the loss landscape of neural networks trained on imbalanced data using class-wise Hessian spectral density.
- To identify saddle points in the loss landscape as a key cause of poor generalization on minority classes.
- To evaluate whether optimization methods designed to escape saddle points can improve performance on imbalanced data.
- To demonstrate the effectiveness of Sharpness-Aware Minimization (SAM) in escaping saddle points and improving minority class generalization.
Proposed method
- Proposes class-wise Hessian analysis to examine the curvature of the loss landscape per class, revealing negative curvature in minority class regions.
- Uses spectral density of the Hessian to detect saddle points (large negative curvature) in the weight space for minority classes.
- Applies Sharpness-Aware Minimization (SAM) by optimizing over a neighborhood of weights to encourage flat minima and enhance escape from saddle points.
- Combines SAM with re-weighting techniques like Deferred Re-Weighting (DRW) and Vector Scaling (VS) Loss to improve training on imbalanced data.
- Employs a two-phase training schedule: initial training with standard cross-entropy, followed by deferred re-weighting to stabilize optimization.
- Introduces a modified SAM update rule that computes gradients at perturbed weights using re-weighted loss, improving robustness to saddle points in minority class regions.
Experimental results
Research questions
- RQ1Why do re-weighting and margin-based methods still underperform on minority classes despite their design to mitigate class imbalance?
- RQ2Do the final solutions of deep networks trained on imbalanced data converge to saddle points or minima in the loss landscape for minority classes?
- RQ3Can optimization methods designed to escape saddle points improve generalization on minority classes in long-tailed learning?
- RQ4Does SAM effectively enhance the gradient component along negative curvature directions in minority class regions?
- RQ5Can SAM be combined with existing re-weighting techniques to achieve state-of-the-art performance on imbalanced benchmarks?
Key findings
- Class-wise Hessian analysis reveals that minority classes converge to regions of high negative curvature—indicating saddle points—while head classes converge to minima.
- Even with re-weighting, models trained on imbalanced data still converge to saddle points for minority classes, explaining poor generalization.
- SAM significantly enhances the gradient component along negative curvature directions, enabling effective escape from saddle points in minority class regions.
- On CIFAR-100 LT, SAM with Vector Scaling Loss improves minority class accuracy by 6.2% over the state-of-the-art VS-Loss baseline.
- On ImageNet-LT and iNaturalist-18, the combination of SAM with re-weighting methods yields a 4% average accuracy gain across all classes.
- The method generalizes across multiple benchmarks and loss functions, including LDAM, IB-Loss, and PaCo, demonstrating broad applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.