Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Optimization of Areas Under Precision-Recall Curves with Provable Convergence

Qi Qi, Youzhi Luo|arXiv (Cornell University)|Apr 18, 2021
Imbalanced Data Classification TechniquesComputer Science23 citations
TL;DR

This paper proposes SOAP (Stochastic Optimization of AUPRC), a novel stochastic optimization framework for maximizing the area under the precision-recall curve (AUPRC) in deep learning with provable convergence. By reformulating average precision (AP) as a sum of non-convex compositional functions with level-dependent inner functions, the method enables both adaptive (Adam-style) and non-adaptive (SGD-style) algorithms with theoretical convergence guarantees, outperforming prior methods on imbalanced image and graph datasets.

ABSTRACT

Areas under ROC (AUROC) and precision-recall curves (AUPRC) are common metrics for evaluating classification performance for imbalanced problems. Compared with AUROC, AUPRC is a more appropriate metric for highly imbalanced datasets. While stochastic optimization of AUROC has been studied extensively, principled stochastic optimization of AUPRC has been rarely explored. In this work, we propose a principled technical method to optimize AUPRC for deep learning. Our approach is based on maximizing the averaged precision (AP), which is an unbiased point estimator of AUPRC. We cast the objective into a sum of {\\it dependent compositional functions} with inner functions dependent on random variables of the outer level. We propose efficient adaptive and non-adaptive stochastic algorithms named SOAP with {\\it provable convergence guarantee under mild conditions} by leveraging recent advances in stochastic compositional optimization. Extensive experimental results on image and graph datasets demonstrate that our proposed method outperforms prior methods on imbalanced problems in terms of AUPRC. To the best of our knowledge, our work represents the first attempt to optimize AUPRC with provable convergence. The SOAP has been implemented in the libAUC library at~\\url{https://libauc.org/}.

Motivation & Objective

  • To address the lack of principled stochastic optimization methods for AUPRC in deep learning, especially for highly imbalanced datasets.
  • To develop a method that directly optimizes average precision (AP), an unbiased estimator of AUPRC, with provable convergence under mild conditions.
  • To overcome the challenge of non-convex, non-smooth, and non-tractable gradients in AP optimization by formulating it as a two-level stochastic compositional problem.
  • To design both adaptive (Adam-style) and non-adaptive (SGD-style) algorithms with error-controlled gradient estimation for AP maximization.
  • To empirically validate the method's superiority in AUPRC performance across image and graph neural network benchmarks under class imbalance.

Proposed method

  • The method formulates the average precision (AP) objective as a sum of non-convex compositional functions, where inner functions depend on random variables from the outer level, enabling stochastic optimization.
  • It introduces a novel gradient estimator that maintains and updates two scalar quantities per positive example to estimate the stochastic gradient of individual precision scores at their prediction thresholds.
  • The approach leverages recent advances in stochastic compositional optimization to derive both adaptive (SOAP-Adam) and non-adaptive (SOAP-SGD) algorithms with convergence guarantees.
  • The algorithm uses a surrogate loss in place of the indicator function in AP to make the objective amenable to gradient-based optimization.
  • It establishes convergence under mild conditions by controlling gradient estimation error and using recursive updates for momentum and variance terms.
  • The method is implemented in the libAUC library at https://libauc.org/ for practical deployment.

Experimental results

Research questions

  • RQ1Can we design a stochastic optimization algorithm that directly maximizes AUPRC with provable convergence for deep learning models?
  • RQ2How can we efficiently estimate the gradient of the average precision (AP) objective, which is non-convex and non-smooth, in a stochastic setting?
  • RQ3What is the impact of model architecture and data imbalance on the performance of AUPRC-optimized models compared to standard accuracy-optimized models?
  • RQ4Does the proposed method maintain stable performance across varying mini-batch sizes and highly imbalanced data distributions?
  • RQ5Can adaptive optimization (Adam-style) be effectively applied to AUPRC maximization with theoretical convergence guarantees?

Key findings

  • The proposed SOAP method achieves consistent improvements in AUPRC over prior methods on both image and graph neural network benchmarks with highly imbalanced data.
  • SOAP outperforms existing AUPRC optimization baselines, particularly in scenarios with extreme class imbalance, demonstrating its robustness to data skew.
  • The method shows insensitivity to mini-batch size, maintaining high performance even with small batches, which is critical for real-world applications with limited data.
  • Empirical results confirm that optimizing AP via SOAP leads to better generalization and higher AUPRC than standard cross-entropy or accuracy-based training.
  • Theoretical analysis establishes convergence for both adaptive and non-adaptive variants of SOAP under mild assumptions, making it the first provably convergent method for AUPRC optimization in deep learning.
  • The implementation in libAUC enables practical adoption, and the method is shown to be effective across diverse deep learning architectures and datasets.

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.