Manuscript Offprint

arXiv:2609.10928

AUC Maximization from Biased Positive-unlabeled Data with Confidence

Atsutoshi Kumagai, Tomoharu Iwata, Hiroshi Takahashi, Taishi Nishiyama, Kazuki Adachi, Yasuhiro Fujiwara

ABSTRACT

Maximizing the area under the receiver operating characteristic curve (AUC) is a standard approach to imbalanced binary classification. Although positive and negative data are required for maximizing the AUC, negative data are often difficult to collect in some real-world applications due to privacy concerns or the need for specialized expertise to annotate them. Thus, AUC maximization from positive and unlabeled (PU) data has been attracting attention. Existing methods assume that labeled positive data are unbiased samples from the true positive distribution. However, this ideal assumption is often violated in practice. In this paper, we propose a method to maximize the AUC from biased PU data. To address the bias, our key idea is to exploit confidence, i.e., the probability that an instance is positive, associated with the small number of labeled positive data. We derive an estimator of the AUC risk using biased PU data with confidence, enabling AUC maximization under such bias. We further show that the rewritten AUC risk induces a Bayes-optimal AUC ranking even when the available confidence is any strictly increasing transformation of the true posterior probability. We experimentally show the effectiveness of our method on eight real-world datasets.

1 INTRODUCTION

In many real-world binary classification tasks such as cyber security (Mirsky et al., 2018; Bagui & Li, 2021), medical care (Yang et al., 2021), product inspection (Park et al., 2016), and fraud detection (Su et al., 2021), class-imbalance frequently arises, where the amount of positive data is much smaller than that of negative data (Johnson & Khoshgoftaar, 2019). For such imbalanced data, classification accuracy, which is the standard performance metric in ordinary classification, is not a suitable measure (Yang & Ying, 2022). Instead, the area under the receiver operating characteristic curve (AUC) is widely used (Bradley, 1997; McDermott et al., 2024). The AUC represents the probability that a classifier will rank a positive instance higher than a negative one (Yang & Ying, 2022). Owing to the nature of the ranking, the AUC can adequately measure the classifier's performance even with imbalanced data. Consequently, maximizing the AUC enables accurate classifiers to be learned from imbalanced data (Liu et al., 2020; Yuan et al., 2021a; Yang & Ying, 2022).

Although labeled positive and negative (PN) data are required for AUC maximization, negative data are often difficult to collect in practice. For example, in cyber security, malicious data (positive data) can be collected from public blocklists, but benign data of legitimate users (negative data) are often unavailable due to privacy concerns, and identifying benign data from given unlabeled data requires a high level of expertise (Mirsky et al., 2018; Kumagai et al., 2024; 2025a). In medical care, although positive patient data can be collected on the basis of confirmed diagnoses, treating all other data as negative is problematic since such data often include false-negatives or pre-symptomatic patients who have already contracted the disease (Bekker & Davis, 2020). Similar situations occur in other applications such as product inspection (Kumagai et al., 2024) and fraud detection (Su et al., 2021).

To address such situations, several studies have proposed methods to maximize the AUC from only positive and unlabeled (PU) data (Sakai et al., 2018; Xie & Li, 2018; Xie et al., 2024). These methods assume that labeled positive data are unbiased samples from the true positive distribution, which is known as the selected completely at random (SCAR) setting (Elkan & Noto, 2008). Although

AUC Maximization

Figure

(a)

AUC Maximization from PU Data under the SCAR

(b)

AUC Maximization from PU Data under the SAR

Figure

(c)

Our Setting

AUC Maximization from

PU Data with Positive-confidence

under the SAR

(d)

Figure 1: Illustrations of our problem setting and other related settings. Red, blue, and gray points are positive, negative, and unlabeled data, respectively. The dark/light red colors show high/low confidence values for positive data. The black line is illustrated to visually distinguish positive and negative data. (a) Standard AUC maximization with PN data. (b) AUC Maximization from PU data under the SCAR setting where labeled positive data are unbiased. (c) AUC Maximization from PU data under the SAR setting where labeled positive data are biased. Note that there are no studies for this setting. (d) Our problem setting: AUC maximization from PU data with positive-confidence under the SAR setting. In class-imbalanced settings, the number of labeled positive instances (each equipped with confidence) is small.

this ideal assumption enables an unbiased estimator of the AUC to be derived with PU data, it is often violated in practice since labeled positive data are often biased. For example, blocklists tend to contain certain (widely known) types of malicious data, and diseases that can be diagnosed are usually limited to well-understood cases.

To cope with such biased situations, some PU learning studies for ordinary classification have recently considered the selected at random (SAR) setting, where the probability of selecting positive data to be labeled depends on their feature values (Kato et al., 2019; Teisseyre et al., 2025; Gerych et al., 2022). While this setting is more realistic, these methods are not designed for maximizing the AUC. In addition, to make the problem tractable, they require strong assumptions about data distributions or labeling mechanisms, such as the PN distributions being separated (Gerych et al., 2022) or the selection probability of positive data following some restricted function forms (Gerych et al., 2022; He et al., 2018; Teisseyre et al., 2025). When the assumption is violated, the performance of these methods drastically deteriorates.

To address this problem, we propose a method for maximizing the AUC under the SAR setting by using biased positive data equipped with confidence and unlabeled data, without such restrictive assumptions about data distributions or labeling mechanisms. Here, the confidence is formally defined as the probability that a given instance is positive, and we refer to this confidence for labeled positive data as positive-confidence. Figure 1 illustrates our problem setting.

Such confidence need not be collected specifically for the proposed method; in many applications, it is already produced as a by-product of existing labeling or operational processes. For example, when the same instance is labeled by multiple annotators to enhance reliability, the average of these labels can naturally form confidence (Ishida et al., 2023). Such multi-annotator labeling is used in various domains such as medical care, cyber security, and crowdsourcing (Le et al., 2023; Kantchelian et al., 2015; Tang et al., 2025). Confidence-like scores are also routinely available in applications, such as BI-RADS scores representing the likelihood of cancer in medical care (Sato, 2025), alert severity levels in security operations (Jalalvand et al., 2024), and risk scores in financial fraud detection. Moreover, automatic labeling systems, including LLM-based annotators and pre-trained classifiers, can also provide such information (Ishida et al., 2018; Tang et al., 2025). These examples motivate the growing body of confidence-based weakly supervised learning methods (Ishida et al., 2018; Cao et al., 2021; Berthon et al., 2021; Feng et al., 2021; Wang et al., 2023b).

However, to the best of our knowledge, positive-confidence has not been used for PU learning under the SAR setting. The key idea is that positive-confidence provides information that allows us to correct the bias in the labeled positive data. By using such confidence, we derive an estimator of the AUC risk from biased PU data without relying on the strong assumptions about data distributions or labeling mechanisms required by existing SAR methods. This enables us to maximize the AUC from biased PU data. A practical concern is that obtained confidence may not be accurately calibrated as a probability. We further show that the proposed method does not require exact calibration to recover the optimal AUC ranking: when the observed confidence is given by any strictly increasing transformation of the true posterior probability 1^{1}, minimizing the resulting AUC risk still yields the Bayes-optimal AUC ranking. This indicates that the proposed method can also exploit confidence that is systematically over- or under-confident, as long as its ordering is preserved. In addition, our method is model-agnostic: it can use any differentiable classifier such as linear classifier, kernel-based classifier, and neural network, which is preferable in practice.

References (92)

  • Resampling imbalanced data for network intrusion detection datasets
  • Learning from positive and unlabeled data: A survey
  • Beyond the selected completely at random assumption for learning from positive and unlabeled data
  • Confidence scores make instance-dependent label-noise learning possible
  • Learning from similarity-confidence data
  • On symmetric losses for learning from corrupted labels
  • Smote: synthetic minority over-sampling technique
  • Convex formulation for learning from positive and unlabeled data
  • Learning classifiers from only positive and unlabeled data
  • Pointwise binary classification with pairwise confidence comparisons
  • A semi-supervised auc optimization method with generative models
  • Benchmarking distribution shift in tabular data with tableshift
  • Recovering the propensity score from biased positive unlabeled data
  • Instance-dependent positive and unlabeled learning with labeling bias estimation
  • Instance-dependent pu learning by bayesian optimal relabeling (opens arXiv in a new tab)
  • Binary classification from positive-confidence data
  • Is the performance of my deep network too good to be true? a direct approach to estimating the bayes error in binary classification
  • Alert prioritisation in security operations centres: a systematic survey on criteria and methods
  • Positive-unlabeled learning with label distribution alignment
  • Survey on deep learning with class imbalance
  • A least-squares approach to direct importance estimation
  • Better malware ground truth: Techniques for weighting anti-virus vendor labels
  • Non-negative bregman divergence minimization for deep direct density ratio estimation
  • Learning from positive and unlabeled data with a selection bias
  • Adam: A Method for Stochastic Optimization
  • Positive-unlabeled learning with non-negative risk estimator
  • Auc maximization under positive distribution shift
  • Positive-unlabeled auc maximization under covariate shift
  • Importance-weighted positive-unlabeled learning for distribution shift adaptation
  • Learning from multiple expert annotators for enhancing anomaly detection in medical image analysis
  • Gradient-based learning applied to document recognition
  • Focal loss for dense object detection
  • Stochastic auc maximization with deep neural networks
  • A closer look at auroc and auprc under class imbalance
  • Training and assessing classification rules with imbalanced data
  • Bipartite ranking: a risk-theoretic perspective
  • Kitsune: an ensemble of autoencoders for online network intrusion detection
  • Machine learning-based imaging system for surface defect inspection
  • Automatic differentiation in pytorch
  • Human uncertainty makes classification more robust
  • Covariate shift adaptation on learning from positive and unlabeled data
  • Semi-supervised auc optimization based on positive-unlabeled learning
  • Ryoma Sato. Interestingness first classifiers. arXiv preprint arXiv:2508.19780, 2025. (opens arXiv in a new tab)
  • Binary classification from positive data with skewed confidence
  • Positive-unlabeled learning from imbalanced data
  • Density ratio estimation in machine learning
  • Machine learning from weak supervision: an empirical risk minimization approach
  • Confidence-based pu learning with instance-dependent label noise
  • Learning from biased positive-unlabeled data via threshold calibration
  • Practical estimation of the optimal classification error with soft labels and calibration
  • A novel auc maximization imbalanced learning approach for predicting composite outcomes in covid-19 hospitalized patients
  • Binary classification with confidence difference
  • Presence-only data and the em algorithm
  • Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
  • Semi-supervised auc optimization without guessing labels of unlabeled data
  • Weakly supervised auc optimization: a unified partial auc approach
  • Automated detection of breast cancer metastases
  • Auc maximization in the era of big data and ai: A survey
  • Stochastic online auc maximization
  • Compositional training for end-to-end deep auc maximization
  • Large-scale robust deep auc maximization: a new surrogate loss and empirical studies on medical image classification
  • Specifically, as distribution shift, this paper assumes the covariate shift, which refers to the situation in which the distribution of input instance changes while the input-output (class label) relationship remains unchanged between the training and test phases
  • Moreover, for any measurable function $\varphi$ such that the following expectations are finite
  • Since $u(\mathbf{x}) = e(\mathbf{x})\eta(\mathbf{x})$, it follows that
  • We can therefore restrict the expectation under $p^1$ to the region where $u(\mathbf{x}) > 0$
  • By the AUC consistency of the sigmoid loss (Charoenphakdee et al., 2019) and the Bayes characterization of bipartite ranking (Menon & Williamson, 2016), the Bayes-optimal ranking for this problem is determined by
  • Thus, the Bayes-optimal ranking induced by $q_h(\mathbf{x})/p(\mathbf{x})$ is identical to that induced by $\eta(\mathbf{x})$
  • (9) is determined by
  • Hence, the pairwise ordering induced by $\widetilde{\eta}$ and $\eta/a$ is identical $p^{\mathrm{p}} \times p^{\mathrm{n}}$-almost surely
  • Therefore, under the relative-error bound in Eq
  • Similarly, replacing one unlabeled instance changes $N^{\mathrm{p}}$ summands and thus changes the average by at most $1/(N\delta)$
  • (74) also holds with probability at least $1 - \tau$
  • (74) implies that, with probability at least $1 - \tau$
  • For the following analysis, we interpret $\eta(\mathbf{x})/u(\mathbf{x})$ as zero when $u(\mathbf{x}) = 0$
  • (83) and (80), we have
  • For any $s \in \mathcal{S}$, using $0 \leq f_s \leq 1$, we have
  • By Lemma B.1, $u(\mathbf{x}) > 0$ for $p^1$-almost every $\mathbf{x}$
  • (90) gives
  • (11) does not become a constant with non-symmetric functions, we need to calculate this term with biased positive data
  • (13) is also satisfied
  • The estimator of the AUC risk in Eq
  • Specifically, for Mnist and Svhn, we used odd digits as positive and even digits as negative
  • For Fmnist, 90% of data were selected from classes 1, 5, and 7, and 10% of data were selected from classes 8 and 9 for labeled positive data
  • The number of hidden nodes was 124
  • For NPU, the weighting parameter was also chosen on the basis of the validation
  • Values in bold are not statistically different at the $5\%$ level from the best performing method in each row according to a paired t-test
  • For both transformation forms, the performance of the proposed method remained relatively stable across different $k$ values and showed no large degradation as $k$ moved away from 1
  • We further evaluated its robustness when random noise was added to the positive-confidence
  • Std represents the standard deviation of Gaussian noise
  • As the standard deviation increases, the noise on positive-confidence becomes bigger
  • Specifically, when the estimated labeling probability was smaller than a clipping value, we replaced it with the clipping value
  • Here, we evaluated the proposed method when random noise was added to estimated labeling probability $\hat{u}(\mathbf{x})$