[Paper Review] AutoBalance: Optimized Loss Functions for Imbalanced Data
AutoBalance uses a bi-level optimization framework to automatically design a loss function and personalized data augmentation to improve fairness-oriented performance on imbalanced data.
Imbalanced datasets are commonplace in modern machine learning problems. The presence of under-represented classes or groups with sensitive attributes results in concerns about generalization and fairness. Such concerns are further exacerbated by the fact that large capacity deep nets can perfectly fit the training data and appear to achieve perfect accuracy and fairness during training, but perform poorly during test. To address these challenges, we propose AutoBalance, a bi-level optimization framework that automatically designs a training loss function to optimize a blend of accuracy and fairness-seeking objectives. Specifically, a lower-level problem trains the model weights, and an upper-level problem tunes the loss function by monitoring and optimizing the desired objective over the validation data. Our loss design enables personalized treatment for classes/groups by employing a parametric cross-entropy loss and individualized data augmentation schemes. We evaluate the benefits and performance of our approach for the application scenarios of imbalanced and group-sensitive classification. Extensive empirical evaluations demonstrate the benefits of AutoBalance over state-of-the-art approaches. Our experimental findings are complemented with theoretical insights on loss function design and the benefits of train-validation split. All code is available open-source.
Motivation & Objective
- Motivate and address generalization and fairness concerns in imbalanced datasets with high-capacity models.
- Develop a principled method to design loss functions that optimize a fairness-seeking objective on the test set.
- Enable personalized treatment for classes or groups through parametric loss functions and class-specific augmentations.
- Provide theoretical insights on loss design, train-validation split, and their impact on optimization dynamics.
- Demonstrate empirical gains over state-of-the-art methods across multiple long-tailed and group-sensitive classification tasks.
Proposed method
- Propose a bilevel optimization framework where the lower-level problem trains model weights and the upper-level problem tunes loss-function hyperparameters.
- Use a parametric cross-entropy loss with three vectors (w, l, Δ) to enable class-wise adjustments via additive (l) and multiplicative (Δ) logits and weights.
- Incorporate data augmentation policies that can be personalized to each class or group (A_y) and clamp Δ with a sigmoid to keep it in (0,1).
- Formulate the lower-level loss as ell_train that integrates w_y, l_y, Δ_y, and augmentation to bias learning toward minority classes.
- Employ implicit differentiation to compute hyper-gradients for α, and use a warm-up phase to satisfy the assumptions of the implicit function theorem.
- Reduce hyperparameter search complexity with subspace embeddings (l′, Δ′) and a frequency-aware dictionary D_π to share hyperparameters among similar-frequency classes.
- Apply validation-set-based optimization to guide loss-function design toward the desired fairness objective, while retraining on full data using the discovered α★.
Experimental results
Research questions
- RQ1How can we automatically design a loss function that improves fairness-associated metrics (e.g., balanced accuracy) on imbalanced data?
- RQ2Can bilevel optimization effectively tailor class- or group-specific loss adjustments and augmentations for better test-time performance?
- RQ3What is the role of personalized data augmentation in shifting decision boundaries to benefit minority groups or classes?
- RQ4Does a reduced hyperparameter search space via clustering and embeddings maintain performance while improving convergence?
Key findings
- AutoBalance discovers loss-function hyperparameters that upweight minority classes, aligning with theoretic intuition.
- Joint learning of additive (l) and multiplicative (Δ) logit adjustments yields superior fairness-performance tradeoffs.
- Personalized data augmentation (PDA) further improves balanced accuracy beyond a single generic augmentation policy.
- The Δ and l design outperforms baselines across CIFAR-10-LT, CIFAR-100-LT, ImageNet-LT, and iNaturalist datasets.
- Initializing AutoBalance with LA loss (τ) often further enhances accuracy, indicating warm-start benefits.
- Across tables, AutoBalance with Δ and l outperforms state-of-the-art methods on long-tailed and group-sensitive settings.
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.