HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Escaping Saddle Points for Effective Generalization on Class-Imbalanced Data

Harsh Rangwani Sumukh K Aithal Mayank Mishra R. Venkatesh Babu

Escaping Saddle Points for Effective Generalization on Class-Imbalanced Data

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. 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.

Code Repositories

val-iisc/saddle-longtail
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
long-tail-learning-on-cifar-10-lt-r-10LDAM + DRW + SAM
Error Rate: 10.6
long-tail-learning-on-cifar-10-lt-r-100VS + SAM
Error Rate: 17.6
long-tail-learning-on-cifar-10-lt-r-100GLMC + SAM
Error Rate: 10.82
long-tail-learning-on-cifar-10-lt-r-200LDAM + DRW + SAM
Error Rate: 21.9
long-tail-learning-on-cifar-10-lt-r-50GLMC + SAM
Error Rate: 8.44
long-tail-learning-on-cifar-100-lt-r-100PaCo + SAM
Error Rate: 47.0
long-tail-learning-on-cifar-100-lt-r-100GLMC + SAM
Error Rate: 40.99
long-tail-learning-on-cifar-100-lt-r-100VS + SAM
Error Rate: 53.4
long-tail-learning-on-cifar-100-lt-r-200PaCo + SAM
Error Rate: 52.0
long-tail-learning-on-cifar-100-lt-r-50GLMC + SAM
Error Rate: 34.72
long-tail-learning-on-imagenet-ltLDAM + DRW + SAM
Top-1 Accuracy: 53.1
long-tail-learning-on-inaturalist-2018LDAM + DRW + SAM
Top-1 Accuracy: 70.1

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Escaping Saddle Points for Effective Generalization on Class-Imbalanced Data | Papers | HyperAI