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

Escaping Saddle Points for Effective Generalization on Class-Imbalanced Data

About

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.

Harsh Rangwani, Sumukh K Aithal, Mayank Mishra, R. Venkatesh Babu• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-LT (test)
Top-1 Acc (All)57.5
159
Image ClassificationiNaturalist 2018 (val)--
116
Long-Tailed Image ClassificationiNaturalist 2018
Accuracy73.4
82
Image ClassificationImageNet-LT (val)
Top-1 Acc (Total)42.7
72
Long-Tailed Image ClassificationCIFAR100-LT Imbalance Ratio 10
Accuracy83.8
32
Long-tail Image ClassificationCIFAR100-LT imbalance ratio 100 (test)
Accuracy71.2
32
Image ClassificationCIFAR-100 long-tailed (rho=100) (test)
Accuracy52.8
22
Image ClassificationCIFAR-10 rho=100 long-tailed (test)
Accuracy86.8
20
Image ClassificationCIFAR-100 Long-Tailed (rho=50) (test)
Top-1 Accuracy56.6
18
Image ClassificationCIFAR-10 Long-Tailed (rho=50) (test)
Top-1 Accuracy88.6
17
Showing 10 of 14 rows

Other info

Code

Follow for update