An Adaptive Gradient Method for Online AUC Maximization

Yi Ding, Peilin Zhao, Steven C. H. Hoi, Yew-Soon Ong

Abstract

Maximizing the Area Under the ROC Curve (AUC) is critical for classification tasks involving imbalanced datasets. Traditional online AUC maximization methods often rely on first-order stochastic gradient descent, which fails to account for the underlying geometry of the data. We present AdaOAM (Adaptive Online AUC Maximization), an algorithm that incorporates adaptive gradient methods to adjust learning rates for individual features. By assigning higher learning rates to rare but informative features, AdaOAM achieves faster convergence and superior classification performance. Empirical evaluations across various benchmark and real-world anomaly detection datasets demonstrate that AdaOAM consistently outperforms existing state-of-the-art methods and exhibits significant robustness to hyperparameter settings.

Introduction

In domains such as fraud detection, medical diagnosis, and malware identification, datasets are frequently imbalanced, with positive instances being significantly rarer than negative ones. In these contexts, standard accuracy is an inadequate metric. Researchers instead prioritize the Area Under the ROC Curve (AUC), which evaluates a model's ability to rank a randomly chosen positive instance higher than a randomly chosen negative one.

Optimizing for AUC is computationally challenging due to its reliance on pairwise losses—comparing every positive example against every negative one. While online algorithms have been developed to handle large-scale streaming data, most utilize simple Stochastic Gradient Descent (SGD). These methods treat all features uniformly, ignoring the "geometry" of the data where rare features might provide stronger signals than frequent ones.

Methods

AdaOAM addresses these limitations by integrating online AUC maximization with adaptive gradient techniques inspired by AdaGrad. The method consists of three primary components:

  1. Square Loss Surrogate: To circumvent the non-differentiable nature of the standard AUC indicator function, AdaOAM employs a squared loss function. This choice facilitates efficient gradient calculation while maintaining theoretical consistency with AUC maximization.
  2. Adaptive Gradient Updating (AGU): This mechanism tracks historical gradients for each feature. Features that appear frequently receive smaller updates to prevent overshooting, whereas rare features receive larger updates, allowing the model to learn from them more rapidly.
  3. Efficient Statistics Tracking: To resolve the pairwise comparison bottleneck, the algorithm maintains running estimates of the mean and covariance for both positive and negative classes. This enables single-pass updates without the need to store the entire history of data points.

Key Insights: Data Geometry and Robustness

The fundamental insight behind AdaOAM is that the optimization landscape for AUC is non-uniform. By incorporating second-order information (the data geometry), the algorithm navigates this landscape more effectively than first-order methods. This is particularly beneficial in anomaly detection, where discriminative features are often rare.

Furthermore, AdaOAM is significantly more robust to the initial choice of the global learning rate ($\eta$) than its predecessors.

Figure 1: Average AUC vs. learning rate parameter k (where $\eta=2^k$) across different datasets. AdaOAM shows a broader peak and slower decay compared to OPAUC, indicating superior parameter robustness.

Experimental Results

The authors evaluated AdaOAM against several baselines, including OPAUC, OAMseq, and OAMgra, across six benchmark datasets (e.g., german, svmguide3) and four large-scale anomaly detection datasets (e.g., Webspam, Malware).

Performance and Convergence

AdaOAM consistently achieved the highest AUC scores. For instance, on the svmguide4 dataset, it reached an AUC of 0.8190, markedly outperforming OPAUC's 0.7404. Beyond final performance, AdaOAM demonstrates significantly faster convergence.

Figure 3: Average AUC vs. number of iterations. AdaOAM (red line) consistently reaches higher AUC values faster than competing methods across multiple datasets.

Efficiency

Despite the overhead of adaptive updates, AdaOAM remains highly scalable. On the cod-rna dataset containing over 270,000 instances, AdaOAM completed its pass in approximately 2 seconds, whereas buffer-based OAM methods required nearly 60 seconds.

Conclusion

AdaOAM provides a robust and efficient framework for online AUC maximization by leveraging the geometric properties of incoming data. While the current work offers improved regret bounds, future research could explore deeper integration of $L_2$ regularization to achieve even faster convergence in strongly convex scenarios, as well as the application of these adaptive techniques to non-linear kernels.

Summary updated

BibTeX
@inproceedings{ding2015adaptive,
  author = {Yi Ding and Peilin Zhao and Steven C. H. Hoi and Yew-Soon Ong},
  title = {{An Adaptive Gradient Method for Online AUC Maximization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9577},
}
Figure