Escaping Saddle Points for Effective Generalization on Class-Imbalanced Data

Harsh Rangwani, Sumukh K Aithal, Mayank Mishra, R. Venkatesh Babu
12/28/2022
cs.LGcs.CV

Official code: val-iisc/Saddle-LongTail (25 stars, Python, MIT, last commit 2023-10-16).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2022] Source code for our paper "Escaping Saddle Points for Effective Generalization on Class-Imbalanced Data"

253Python, ShellNov 2, 20223 years agoMIT
class-imbalance-problemlong-tailed-learninglong-tailed-recognitionneuripsneurips-2022+1 more

Similar Papers

Cite this paper

@article{rangwani2022escaping,
  title  = {Escaping Saddle Points for Effective Generalization on Class-Imbalanced Data},
  author = {Harsh Rangwani and Sumukh K Aithal and Mayank Mishra and R. Venkatesh Babu},
  year   = {2022},
  eprint = {2212.13827},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.13827}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.13827.svg)](https://codeofpaper.com/paper/2212.13827)

Discussion