NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optimizing Two-way Partial AUC with an End-to-end Framework

Zhiyong Yang, Qianqian Xu, Shilong Bao, Yuan He, Xiaochun Cao, Qingming Huang · DOI

Introduction: The Need for Two-way Partial AUC

In high-stakes domains such as medical diagnostics or biometric security, the standard Area Under the ROC Curve (AUC) often fails to capture the true performance requirements of a classifier. Practitioners frequently prioritize a specific region of the ROC curve: the "upper-left" corner, where the True Positive Rate (TPR) is high and the False Positive Rate (FPR) is low. While One-way Partial AUC (OPAUC) focuses solely on restricting the FPR, it remains mathematically inconsistent with the more comprehensive Two-way Partial AUC (TPAUC).

Comparison of AUC, OPAUC, and the target TPAUC metric.

TPAUC provides a more targeted evaluation by simultaneously enforcing a lower bound on TPR and an upper bound on FPR. However, optimizing TPAUC directly in deep learning is challenging because it involves non-differentiable operations like sorting and quantile calculation, which break standard gradient-based training.

Methodology: Making TPAUC Differentiable

The authors propose a novel end-to-end framework to optimize TPAUC using a multi-step approach:

  1. Bi-level Reformulation: The problem is framed as a bi-level optimization where an inner problem selects "hard" examples (low-scoring positives and high-scoring negatives), and the outer problem minimizes loss on these samples.
  2. Calibrated Surrogate Weighting: To overcome non-differentiability, hard selection is replaced with smooth surrogate weighting functions.
  3. Instance-wise Minimax Reformulation: By deriving a minimax form, the authors transform the $O(N^2)$ pairwise loss into an instance-wise sum, enabling efficient training with standard mini-batch Stochastic Gradient Descent (SGD).
  4. Warm-up Strategy: A "warm-up" phase using standard AUC helps the model capture global data distributions before focusing on the critical TPAUC region.

The "Concave" Advantage

A pivotal insight of this research is the theoretical and empirical superiority of concave weighting functions (e.g., Polynomial or Exponential models) over convex ones.

Comparison of convex and concave weighting functions for surrogate loss.

As shown in the figure above, concave weighting provides a tighter upper bound on the 0-1 loss and prevents the model from prematurely "forgetting" easier examples. This ensures greater optimization stability and prevents the model from severely overfitting on hard outliers.

Experimental Results

The framework was evaluated on long-tailed (imbalanced) versions of CIFAR-10, CIFAR-100, and Tiny-ImageNet. The proposed TPAUC-minmax methods consistently outperformed standard AUC and OPAUC baselines. For instance, on certain CIFAR-10 subsets, TPAUC scores improved from approximately 18% to 31%. The method also demonstrated superior robustness to class imbalance compared to popular losses like Focal Loss or Class-Balanced Cross-Entropy (CB-CE), while maintaining computational efficiency comparable to standard deep learning losses.

Conclusion and Future Directions

This work provides a scalable and theoretically grounded approach to optimizing TPAUC. While highly effective, the framework's performance is sensitive to hyperparameters like the weighting sharpness ($\gamma$) and warm-up duration. Future research may explore constrained optimization formulations—such as maximizing TPR subject to a fixed FPR limit—to further refine performance in domain-specific applications where requirements are strictly defined.

Summary updated

BibTeX
@article{yang2022optimizing,
  author = {Zhiyong Yang and Qianqian Xu and Shilong Bao and Yuan He and Xiaochun Cao and Qingming Huang},
  title = {{Optimizing Two-way Partial AUC with an End-to-end Framework}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  doi = {10.1109/tpami.2022.3185311},
}
Figure