Skip to main content
QUICK REVIEW

[Paper Review] Simplifying Neural Network Training Under Class Imbalance

Ravid Shwartz-Ziv, Micah Goldblum|arXiv (Cornell University)|Dec 5, 2023
Imbalanced Data Classification TechniquesComputer Science8 citations
TL;DR

The paper shows that carefully tuning standard neural network training components (batch size, data augmentation, optimizer, label smoothing) plus light optimization techniques (Joint-SSL, SAM-A, and tailored label smoothing) achieves state-of-the-art performance on imbalanced data without specialized imbalance methods.

ABSTRACT

Real-world datasets are often highly class-imbalanced, which can adversely impact the performance of deep learning models. The majority of research on training neural networks under class imbalance has focused on specialized loss functions, sampling techniques, or two-stage training procedures. Notably, we demonstrate that simply tuning existing components of standard deep learning pipelines, such as the batch size, data augmentation, optimizer, and label smoothing, can achieve state-of-the-art performance without any such specialized class imbalance methods. We also provide key prescriptions and considerations for training under class imbalance, and an understanding of why imbalance methods succeed or fail.

Motivation & Objective

  • Motivate studying class imbalance in real-world datasets where minority classes suffer from poor performance.
  • Demonstrate that standard training components, when tuned, can rival or exceed specialized imbalance methods.
  • Provide practical prescriptions for training under class imbalance across vision and tabular domains.

Proposed method

  • Systematically tune fundamental building blocks of training (batch size, data augmentation, pre-training, model architecture, optimizer) in imbalanced settings.
  • Introduce and adapt optimization techniques for imbalance: Joint-SSL (self-supervised loss during training), Asymmetric-SAM (SAM-A) to widen margins for minority classes, and targeted label smoothing.
  • Analyze the role of regularization and overfitting, including Neural Collapse, to explain why tuned routines succeed.
  • Apply the tuned routines to vision benchmarks (image datasets and architectures) and tabular datasets to assess generality.
  • Benchmark against a range of imbalance-specific methods to establish state-of-the-art performance when combined with tuned routines.

Experimental results

Research questions

  • RQ1How do standard training components affect model performance under class imbalance across vision and tabular domains?
  • RQ2Can lightweight adaptations of SSL, SAM, and label smoothing improve minority-class performance in imbalanced settings?
  • RQ3What mechanisms (e.g., regularization, margin changes) explain why tuned routines outperform specialized imbalance methods?
  • RQ4Do tuned routines generalize across diverse datasets and architectures beyond image classification?
  • RQ5How do real-world imbalanced datasets respond to these methods compared to web-scraped benchmarks?

Key findings

  • Batch size has a larger impact in highly imbalanced settings, with smaller batches often benefiting minority accuracy.
  • Data augmentation effects are amplified under imbalance, especially for minority classes, and policy choice matters by imbalance level.
  • Larger architectures may overfit minority classes under strong imbalance, while mid-sized architectures can perform best.
  • Self-supervised losses integrated during training (Joint-SSL) improve representations and generalization in imbalanced settings.
  • A modified Sharpness-Aware Minimization (SAM-A) that emphasizes minority-class loss terms improves minority accuracy.
  • Label smoothing, especially when applied more strongly to minority classes, helps prevent overfitting minority samples.
  • Pre-training, especially self-supervised pre-training on larger upstream datasets, yields larger gains under severe downstream imbalance.
  • The combination of Joint-SSL, SAM-A, and tailored label smoothing atop M2m establishes new state-of-the-art across multiple vision benchmarks and real-world datasets.
  • The tuned training routine also outperforms baselines on tabular datasets, demonstrating applicability beyond image classification.
  • Regularization appears key to preventing overfitting to minority samples, with Neural Collapse more pronounced in naive training and mitigated by the proposed methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.