Skip to main content
QUICK REVIEW

[Paper Review] Constrained Optimization to Train Neural Networks on Critical and Under-Represented Classes

Sara Sangalli, Ertunç Erdil|arXiv (Cornell University)|Feb 21, 2021
Artificial Intelligence in HealthcareHealth Professions10 citations
TL;DR

This paper proposes a constrained optimization framework using Augmented Lagrangian Methods (ALM) to train deep neural networks with improved performance on critical, under-represented classes in imbalanced datasets. By asymmetrically prioritizing false positive rate reduction at high true positive rates, the method enhances AUC and reduces misclassification of minority (critical) classes while maintaining high sensitivity, outperforming existing loss functions across medical imaging and vision benchmarks.

ABSTRACT

Deep neural networks (DNNs) are notorious for making more mistakes for the classes that have substantially fewer samples than the others during training. Such class imbalance is ubiquitous in clinical applications and very crucial to handle because the classes with fewer samples most often correspond to critical cases (e.g., cancer) where misclassifications can have severe consequences. Not to miss such cases, binary classifiers need to be operated at high True Positive Rates (TPRs) by setting a higher threshold, but this comes at the cost of very high False Positive Rates (FPRs) for problems with class imbalance. Existing methods for learning under class imbalance most often do not take this into account. We argue that prediction accuracy should be improved by emphasizing reducing FPRs at high TPRs for problems where misclassification of the positive, i.e. critical, class samples are associated with higher cost. To this end, we pose the training of a DNN for binary classification as a constrained optimization problem and introduce a novel constraint that can be used with existing loss functions to enforce maximal area under the ROC curve (AUC) through prioritizing FPR reduction at high TPR. We solve the resulting constrained optimization problem using an Augmented Lagrangian method (ALM). Going beyond binary, we also propose two possible extensions of the proposed constraint for multi-class classification problems. We present experimental results for image-based binary and multi-class classification applications using an in-house medical imaging dataset, CIFAR10, and CIFAR100. Our results demonstrate that the proposed method improves the baselines in majority of the cases by attaining higher accuracy on critical classes while reducing the misclassification rate for the non-critical class samples.

Motivation & Objective

  • Address the critical challenge of class imbalance in deep learning, especially in medical imaging where misclassifying rare but severe cases (e.g., cancer) has high clinical cost.
  • Improve model performance on minority (critical) classes by focusing on reducing false positive rates at high true positive rate operating points.
  • Develop a principled, differentiable constraint that can be integrated with existing loss functions to optimize AUC in an asymmetric way favoring low FPR at high TPR.
  • Extend the binary classification constraint to multi-class scenarios through two proposed formulations for broader applicability.
  • Demonstrate consistent performance gains across diverse datasets, including in-house medical MRI, CIFAR10, and CIFAR100, under varying class imbalance ratios.

Proposed method

  • Formulate binary DNN training as a constrained optimization problem to maximize AUC with asymmetric emphasis on reducing false positive rates at high true positive rates.
  • Use Mann-Whitney U-statistics to define the AUC objective and embed it as a constraint in the optimization framework.
  • Apply the Augmented Lagrangian Method (ALM) to convert the constrained problem into a dual unconstrained problem solvable via stochastic gradient descent.
  • Integrate the ALM-based constraint with 9 different baseline loss functions, including BCE, focal loss, class-balanced BCE, and LDAM.
  • Propose two extensions for multi-class problems: ALM m,1 and ALM m,2, which adapt the constraint to handle multiple critical classes.
  • Optimize the resulting loss using standard deep learning training pipelines while maintaining compatibility with existing architectures and training procedures.

Experimental results

Research questions

  • RQ1Can a constrained optimization framework improve deep neural network performance on under-represented, critical classes in imbalanced datasets?
  • RQ2Does asymmetric AUC maximization—prioritizing FPR reduction at high TPR—lead to better clinical utility in binary classification tasks?
  • RQ3How does the proposed ALM-based constraint compare to existing class-imbalanced loss functions in terms of FPR and TPR trade-offs?
  • RQ4Can the binary constraint be effectively extended to multi-class settings while preserving performance gains on critical classes?
  • RQ5Does the method consistently improve performance across diverse datasets, including medical imaging and standard vision benchmarks?

Key findings

  • On the in-house MRI dataset, ALM + BCE achieved a 54.0% FPR at 0% false negative rate (FNR), significantly outperforming baseline BCE (80.0%) and CB-BCE (100.0%).
  • ALM + BCE achieved an average AUC of 76.8% and an ensemble AUC of 85.4%, surpassing the best baseline (MBAUC) with 82.4% ensemble AUC.
  • On long-tailed CIFAR10 (imbalance 1:100), ALM m,2 + LDAM achieved 24.76% error at 80% TPR and 31.02% error at 90% TPR, outperforming all baselines including LDAM and CB-BCE.
  • ALM m,2 + LDAM achieved 73.32% overall accuracy at 80% TPR and 67.41% at 90% TPR, demonstrating consistent gains across metrics.
  • The ALM m,2 extension further improved overall accuracy by a larger margin than ALM m,1 in most experiments, particularly when combined with LDAM and CB-BCE.
  • Across all datasets and imbalance ratios, the proposed method improved baseline models in the majority of cases, especially in reducing FPR at high TPR, confirming its effectiveness for critical-class prioritization.

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.