Closing the Approximation Gap of Partial AUC Optimization: A Tale of Two Formulations

Yangbangyan Jiang, Qianqian Xu, Huiyang Shao, Zhiyong Yang, Shilong Bao, Xiaochun Cao, Qingming Huang · DOI

TL;DR

This paper closes the long-standing approximation gap in Partial Area Under the ROC Curve (PAUC) optimization, a crucial metric for highly imbalanced datasets with strict operational constraints. By transforming the traditional quadratic pairwise problem into an instance-wise minimax formulation and introducing a sorting-free threshold learning technique, the authors achieve linear per-iteration complexity and faster convergence while maintaining an unbiased or asymptotically vanishing approximation gap.

What Problem Does This Paper Address?

Standard AUC evaluates a classifier's performance across all possible decision thresholds. However, in many high-stakes applications, models must operate within a very specific region of the ROC curve. For instance, in malware detection, a high False Positive Rate (FPR) is unacceptable because it means benign files are constantly flagged as threats; thus, engineers care intensely about performance in the low-FPR regime.

This is where Partial AUC (PAUC) comes in, focusing strictly on user-defined intervals of FPR (One-way PAUC) or both FPR and True Positive Rate (Two-way PAUC).

Illustration of AUC and its two typical variants (OPAUC & TPAUC).

Optimizing PAUC directly is notoriously difficult (NP-hard) because calculating it requires sorting and selecting specific instances within these constrained bands. Existing deep learning methods suffer from two major flaws:

  1. High Computational Cost: They rely on pairwise formulations that require comparing every positive sample to every negative sample, scaling quadratically ($O(n_+ n_-)$) per iteration.
  2. Approximation Biases: To make the non-differentiable sorting step compatible with gradient descent, they introduce smoothing functions that lead to uncontrollable approximation errors.

Methods

The authors propose a novel framework that fundamentally shifts PAUC optimization from a pairwise comparison to an instance-wise learning task, drastically reducing the computational bottleneck.

Fig. 2. Roadmap of our formulation derivation for OPAUC. TPAUC formulation follows the same steps.

The methodology consists of three key steps:

  1. Instance-wise Reformulation: Using a minimax formulation with a squared surrogate loss, they decouple the positive-negative pairs. Instead of comparing pairs, each sample is evaluated against global reference variables that adaptively calibrate class scores.
  2. Differentiable Sample Selection: To avoid sorting mini-batches to find the top-$k$ or bottom-$k$ instances, they reformulate quantile selection as a sorting-free threshold learning problem, making the entire pipeline end-to-end differentiable.
  3. Two Smoothing Pathways: To handle the remaining non-smooth mathematical components, they introduce two distinct formulations:
  4. Surrogate Approximation (PAUCI): Uses a softplus function to smooth the objective, resulting in an asymptotically vanishing bias ($O(1/\kappa)$).
  5. Unbiased Reformulation (UPAUCI): Integrates continuous auxiliary weighting variables to preserve exactness, completely eliminating the approximation gap.
Fig. 3. Illustration of the quantile deviation caused by the smoothed objective for OPAUC in the univariate case.

Equipped with an accelerated stochastic gradient descent ascent (ASGDA) solver, both algorithms achieve a linear per-iteration complexity of $O(n_+^B + n_-^B)$ and a fast convergence rate of $O(\epsilon^{-3})$.

Datasets

The proposed methods were validated on multiple imbalanced binary classification tasks constructed from standard computer vision benchmarks:

  • Binary CIFAR-10-LT & CIFAR-100-LT: Long-tailed variants where specific superclasses (e.g., birds, insects, automobiles) serve as the positive class against all other categories.
  • Binary Tiny-ImageNet-200-LT: A more complex long-tailed dataset featuring severe class imbalances.
  • Binary iNaturalist2021: A large-scale, naturally long-tailed real-world dataset evaluating the "Fungi" supercategory against "Insects".

Key Insights and Ideas

  • The Power of Global Anchors: The paper demonstrates that explicit pair enumeration is unnecessary for optimizing ranking metrics. Introducing global reference variables allows individual data points to interact with global statistics rather than every other sample.
  • Thresholds as Learnable Parameters: Instead of treating the decision boundary or quantile selection as a fixed post-processing step, embedding it directly into the minimax optimization loop allows the model to dynamically learn which hard samples to focus on during training.
  • The Exactness vs. Complexity Trade-off: By presenting two formulations, the authors give practitioners a choice: accept a tiny, controllable bias for simpler optimization (PAUCI), or introduce auxiliary instance weights to achieve perfect unbiasedness (UPAUCI) for maximum accuracy.

Key Results

  • State-of-the-Art Performance: The unbiased formulation (UPAUCI) consistently outperformed 8 competitive baselines (including standard cross-entropy and previous PAUC optimization techniques) across almost all datasets.
  • Massive Computational Speedup: In time-complexity experiments with large mini-batches (e.g., 2048 samples), traditional pairwise methods took up to 88 ms per iteration. The proposed instance-wise methods slashed this to just ~0.1 ms—matching the speed of standard cross-entropy training.
  • Sharper Generalization Bounds: Using local Rademacher complexity, the authors proved a tight generalization bound of $\tilde{O}(\alpha^{-1}n_+^{-1} + β^{-1}n_-^{-1})$, explicitly mapping out how the strictness of the operational constraints ($\alpha, \beta$) affects real-world generalization.

Limitations and Future Work

While the unbiased formulation (UPAUCI) successfully eliminates the approximation gap, it requires assigning an explicit selection weight to each negative instance. This introduces additional memory overhead that scales with the dataset size, which could become a bottleneck for web-scale datasets.

The authors suggest that future work could focus on developing more memory-efficient ways to optimize these auxiliary weights, or extending this instance-wise minimax framework to other complex, non-decomposable evaluation metrics.

Summary updated

BibTeX
@article{jiang2026closing,
  author = {Yangbangyan Jiang and Qianqian Xu and Huiyang Shao and Zhiyong Yang and Shilong Bao and Xiaochun Cao and Qingming Huang},
  title = {{Closing the Approximation Gap of Partial AUC Optimization: A Tale of Two Formulations}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2026},
  doi = {10.1109/tpami.2025.3637063},
}
Figure