DRAUC: An Instance-wise Distributionally Robust AUC Optimization Framework

Siran Dai, Qianqian Xu, Zhiyong Yang, Xiaochun Cao, Qingming Huang

Introduction

In machine learning, the Area Under the ROC Curve (AUC) is a critical metric for evaluating performance on imbalanced or "long-tailed" datasets. Unlike standard accuracy, AUC measures a model's ability to rank positive examples higher than negative ones. However, traditional AUC optimization relies heavily on the independent and identically distributed (i.i.d.) assumption—the belief that training and testing data share the same distribution. In real-world applications, such as medical imaging or autonomous driving, models often encounter distribution shifts (e.g., blur, noise, or lighting changes) that degrade performance.

To address this, researchers have introduced DRAUC, a framework that integrates Distributionally Robust Optimization (DRO) with AUC maximization. DRAUC ensures that models remain reliable even when test data is noisier or more corrupted than the training set.

The Challenge: Pairwise Complexity and Distributional Shifts

Standard DRO seeks to minimize the loss under the "worst-case" distribution within a defined neighborhood of the training data. Applying DRO to AUC is mathematically challenging because AUC is inherently pairwise; it compares pairs of samples to determine ranking. Directly applying DRO to a pairwise objective results in a complex "min-max-min-max" optimization problem that is computationally prohibitive for large datasets.

Furthermore, standard DRO can be overly pessimistic when applied to imbalanced data. It may disproportionately "attack" the rare samples in the tail of the distribution, effectively introducing label bias and treating legitimate minority-class features as noise.

The DRAUC Framework

The authors overcome these hurdles through a series of mathematical reformulations and class-aware strategies:

1. Instance-wise Reformulation

To make the problem computationally tractable, the framework utilizes a mathematical surrogate that transforms the $O(n^2)$ pairwise AUC loss into an instance-wise format. This allows the optimization to scale linearly with the number of samples, making it compatible with modern deep learning architectures.

2. DRAUC-Df (Distribution-free)

This variant integrates Wasserstein DRO into the instance-wise loss. It searches for the worst-case distribution shift across the entire dataset, forcing the model to learn features that are invariant to global corruptions like blur or weather effects.

3. DRAUC-Da (Distribution-aware)

Recognizing that global perturbations can harm imbalanced learning, the authors developed DRAUC-Da. This version decouples perturbations by class, allowing for class-wise distributional robustness. By accounting for the specific vulnerability of the minority class, DRAUC-Da prevents the "label bias" trap where the optimizer might otherwise misidentify tail-class samples as outliers.

Theoretical Foundations

The framework is supported by two key theoretical pillars:

  • Neural Collapse Analysis: The authors used "Neural Collapse" theory—which describes how class features converge to geometric structures in the final layers of a network—to prove that tail classes are uniquely susceptible to DRO attacks. This justifies the need for the class-aware approach in DRAUC-Da.
  • Generalization Bounds: The paper provides a theoretical proof showing that the gap between training and testing performance shrinks as the training set size increases, ensuring the framework's stability and reliability.

Experimental Results

DRAUC was evaluated on several benchmark datasets, including corrupted and long-tailed versions of MNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet.

  • Superior Robustness: DRAUC consistently outperformed baselines such as standard Cross-Entropy, Focal Loss, and existing DRO methods. The performance gap widened as the intensity of test-set corruptions (e.g., noise, blur) increased.
  • Handling Extreme Imbalance: On CIFAR-10 with an extreme imbalance ratio (0.01), DRAUC-Da achieved significantly higher Test AUC than standard AUC optimization (AUCMLoss), demonstrating its effectiveness in long-tailed scenarios.
  • Adversarial Imagination: Qualitatively, the perturbations generated by DRAUC-Df during training were found to closely resemble real-world corruptions, even though the model was never explicitly trained on those specific noise types.

Conclusion and Future Work

DRAUC provides a robust solution for AUC optimization in the face of real-world data volatility. While the framework introduces a slight computational overhead due to the inner-loop gradient ascent and a minor trade-off in accuracy on perfectly clean data, its gains in reliability are substantial. Future research may extend this framework to other ranking metrics, such as Partial AUC or the Area Under the Precision-Recall Curve (AUPRC), further broadening its utility in high-stakes domains like medical screening.

Summary updated

BibTeX
@inproceedings{dai2023drauc,
  author = {Siran Dai and Qianqian Xu and Zhiyong Yang and Xiaochun Cao and Qingming Huang},
  title = {{DRAUC: An Instance-wise Distributionally Robust AUC Optimization Framework}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=n3ZVdny7OH},
}
Figure