Stochastic Proximal Algorithms for AUC Maximization

Michael Natole, Yiming Ying, Siwei Lyu

Introduction

In many real-world machine learning applications—such as fraud detection or medical diagnosis—datasets are heavily imbalanced. In these scenarios, standard "accuracy" is a poor metric. Instead, researchers rely on the Area Under the ROC Curve (AUC), which measures the probability that a random positive sample is ranked higher than a random negative one.

The core challenge is that AUC is defined by pairwise losses. While standard Stochastic Gradient Descent (SGD) updates a model using a single sample at a time, optimizing for AUC requires comparing pairs of samples. Traditional online AUC algorithms typically struggle with this by either:

  1. Storing all previous samples to form pairs, leading to $O(td)$ space and time complexity.
  2. Using a buffer of previous samples, which is memory-intensive and often slows down convergence.
  3. Tracking covariance matrices, leading to $O(d^2)$ complexity, which is prohibitive for high-dimensional data.

To bridge this gap, this paper introduces SPAM (Stochastic Proximal AUC Maximization). SPAM is a novel algorithm designed to maximize AUC in a streaming data setting. It achieves a fast $O(\log t / t)$ convergence rate with a memory and per-iteration time complexity of just $O(d)$, making it highly efficient for high-dimensional, large-scale imbalanced classification.

Methodology

The authors achieve this efficiency by building upon a mathematical reformulation that turns the AUC maximization problem (using least square loss) into a stochastic saddle point problem (SPP).

Key components of the SPAM approach include:

  • Auxiliary Variables: The reformulation introduces three auxiliary variables ($a, b, \alpha$) that represent class-specific means and a dual variable.
  • Closed-Form Updates: For a fixed model $w$, the optimal values for these auxiliary variables can be calculated exactly using the running means of the positive and negative classes. This eliminates the need for large sample buffers.
  • Stochastic Proximal Gradient: Instead of performing a standard gradient update on all variables—which typically yields a slow $O(1/\sqrt{t})$ rate—SPAM performs a gradient step on the model $w$ using an unbiased estimator of the gradient.
  • Proximal Mapping: To handle non-smooth regularization (like the $L1$ penalty for feature selection or Elastic Net), the algorithm incorporates a proximal step. This allows SPAM to handle a wider variety of penalty functions than previous smooth-only methods.

By updating the auxiliary variables using running estimates of the population means, the resulting stochastic gradient for the model $w$ remains unbiased. This crucial insight allows the authors to apply convergence proofs from standard strongly convex optimization to the more complex AUC problem.

Performance and Scalability

The algorithm was evaluated on 12 standard benchmark datasets from the LIBSVM and UCI repositories, covering a wide range of scales and dimensions (from 8 features up to over 62,000 features in the news20 dataset). Multi-class datasets were converted into binary ones to test AUC performance.

Competitive AUC

Across all 12 datasets, SPAM (using both $L2$ and Elastic Net penalties) achieved AUC scores comparable to or better than state-of-the-art batch solvers (like B-LS-SVM) and online solvers (like OPAUC and SOLAM).

AUC performance comparison across 12 benchmark datasets

Superior Speed and High-Dimensional Efficiency

Unlike previous state-of-the-art online AUC methods, SPAM does not need to maintain a buffer of old samples or a $d \times d$ covariance matrix. It only needs to store the current model and the running means of the two classes. Most online AUC solvers converge at a rate of $O(1/\sqrt{t})$, but SPAM improves this to $O(\log t / t)$ for strongly convex objectives.

The most significant practical result is the CPU running time. In experiments on the splice, usps, and a9a datasets, SPAM reached high AUC values significantly faster than SOLAM and OPAUC.

AUC vs. Time for splice, usps, and a9a datasets

Furthermore, on high-dimensional datasets like sector and news20 (over 50k features), SPAM remained computationally feasible where other methods struggled with memory or per-iteration overhead.

Limitations and Future Work

While SPAM presents a major step forward for online AUC maximization, the authors note a few limitations and areas for future research:

  • Strong Convexity Requirement: The fast $O(1/t)$ convergence rate is proven under the assumption of strong convexity ($\beta > 0$). It remains unclear if this optimal rate can be achieved for general convex functions without this assumption.
  • Variance Reduction: While SPAM is fast, integrating stochastic variance reduction techniques (like SVRG) could further stabilize the algorithm and potentially lead to linear convergence rates in certain settings.
  • Parameter Sensitivity: Like most stochastic algorithms, SPAM's performance depends heavily on the choice of the step size ($\eta_t$) and the regularization parameter ($\beta$), which requires careful cross-validation.

Summary updated

BibTeX
@inproceedings{natole2018stochastic,
  author = {Michael Natole and Yiming Ying and Siwei Lyu},
  title = {{Stochastic Proximal Algorithms for AUC Maximization}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure