Learning from Biased Positive and Unlabeled Data

77 concepts52 papers1 proposal

Imagine you are building a machine learning system to detect fraudulent bank transactions or identify malicious network intrusions. You have a database of confirmed attacks—these are your positive examples. However, the rest of your data is a massive, uncurated ocean of raw traffic. This unlabeled data contains an unknown mixture of normal behavior and undetected attacks.

This scenario is the core challenge of Positive-Unlabeled (PU) learning. Because true negative examples are entirely missing, standard binary classification algorithms cannot be applied directly without making strong assumptions about how the labeled data was collected.

The SCAR Trap: Why Standard PU Learning Breaks Down

To make PU learning mathematically tractable, foundational frameworks relied on a massive simplification: the Selected Completely At Random (SCAR) assumption. Popularized by Charles Elkan et al. in Learning classifiers from only positive and unlabeled data, SCAR posits that the labeled positive examples are a perfectly uniform, representative sample of the entire positive population.

Under SCAR, the probability that a true positive instance ($y=1$) receives a label ($s=1$) is a constant factor, $c$:

$$P(s=1 \mid x, y=1) = c$$

This assumption yields a beautiful mathematical shortcut. If you train a standard surrogate classifier $g(x)$ to separate the labeled data from the unlabeled data, the surrogate's predictions are simply a constant scaling away from the true classifier you actually want:

$$g(x) = P(s=1 \mid x) = c \cdot P(y=1 \mid x)$$

Because $c$ is a constant, ranking instances by $g(x)$ yields the exact same decision boundaries as ranking them by the true probability $P(y=1 \mid x)$.

In the real world, however, SCAR is almost always a fiction. Labels are rarely assigned by a uniform random lottery. Instead, they are driven by visibility, human behavior, or systemic collection biases. As noted by Miroslav Dudík et al. in Generative and Discriminative Learning with Unknown Labeling Bias, the probability of an instance being observed or labeled varies heavily based on its specific features ($x$).

When the labeling probability becomes feature-dependent—a function $e(x)$ known as the propensity score—the surrogate classifier becomes confounded:

$$g(x) = e(x) \cdot P(y=1 \mid x)$$

Now, a high score from your surrogate classifier might not mean an instance is highly likely to be positive ($P(y=1|x)$); it might simply mean the instance was incredibly easy to label ($e(x)$).

How Selection Bias Manifests in Practice

Across different domains, this feature-dependent selection bias distorts datasets in predictable ways, causing models that assume uniform labeling to fail:

  • Web Security and Fraud: In bot detection, human annotators or automated triggers often only label a user as "verified" or "positive" if they complete a high-intent action, such as making a purchase. As Sunny Dhamnani et al. demonstrate in Botcha: Detecting Malicious Non-Human Traffic in the Wild, this creates a severe skew. Legitimate users who browse without purchasing remain unlabeled, forcing models to mischaracterize subtle human behavior as malicious.
  • Graph and Network Data: In social or biological networks, highly connected "hub" nodes are far more visible and likely to be inspected and labeled by experts. Man Wu et al. show in Learning Graph Neural Networks with Positive and Unlabeled Nodes that structural properties like high degree centrality introduce systematic labeling bias, blinding standard graph neural networks to isolated positive nodes.
  • Subjective Salience: In text applications like automated fact-checking, claims are labeled based on editorial interest or viral prominence. Dustin Wright et al. observe in Claim Check-Worthiness Detection as Positive Unlabelled Learning that this leaves a non-representative distribution of unlabeled positives, as mundane but equally important claims are systematically ignored by annotators.

When a model assumes SCAR but faces these biases, it suffers from what Qianqiao Liang et al. term Positive Distribution Pollution in Positive Distribution Pollution: Rethinking Positive Unlabeled Learning from a Unified Perspective. The model overfits to the "easy" or highly visible positive instances, creating a distorted decision boundary that fails to generalize to the full diversity of the positive class hidden within the unlabeled pool.

Shifting to "Selected At Random" (SAR)

To overcome this limitation, a growing body of research relaxes the SCAR assumption to Selected At Random (SAR). Under SAR, the labeling mechanism is explicitly treated as a variable conditioned on the features.

Jesse Davis et al. formalized this shift in Learning from Positive and Unlabeled Data under the Selected At Random Assumption, introducing an Expectation-Maximization framework (SAR-EM) designed to jointly estimate both the true classification boundary and the underlying feature-dependent labeling mechanism.

To make SAR learning work, algorithms must solve two interconnected problems: estimating the class prior (the total proportion of positives in the unlabeled data) and recovering the propensity score ($e(x)$).

1. Recovering the Propensity Score

If we can accurately map how features influence the likelihood of being labeled, we can "re-weight" the dataset to undo the selection bias. Walter Gerych et al. proved in Recovering the Propensity Score from Biased Positive Unlabeled Data that the propensity score can be mathematically identified under specific real-world conditions, such as Local Certainty (the existence of regions where positives are guaranteed to be labeled) and Probabilistic Gap.

Once identified, causal inference techniques can be deployed. For instance, Xutao Wang et al. introduced PUe in PUe: Biased Positive-Unlabeled Learning Enhancement by Causal Inference, using propensity scores to re-weight the risk estimators, effectively transforming a biased PU dataset into an unbiased pseudo-supervised dataset.

2. Subgroup Class Prior Estimation

Traditional class prior estimators fail when faced with selection bias because they assume the labeled positives represent the global positive distribution. To fix this, Jessa Bekker et al. developed TIcE (Tree Induction for $c$ Estimation) in Estimating the Class Prior in Positive and Unlabeled Data Through Decision Tree Induction. TIcE uses decision trees to recursively split the feature space into smaller subgroups, searching for specific regions where the labeling probability is locally uniform, allowing for an accurate global prior estimation even when the overall dataset is heavily biased.

Bypassing Propensity Estimation

Because explicitly estimating propensity scores can be computationally unstable and highly sensitive to model misspecification, several modern approaches seek to bypass propensity estimation entirely through robust optimization and calibration.

Variational Frameworks

Instead of trying to model the bias explicitly, Fangqing Liu et al. proposed Variational PU (VPU) in A Variational Approach for Learning from Positive and Unlabeled Data. VPU leverages a variational principle to optimize the classifier directly using a prior-free loss function. By focusing on the global distribution properties rather than pointwise propensity corrections, the framework exhibits strong intrinsic robustness to severe selection bias.

Threshold Calibration and Error Constraints

Other methods regularize the learning process to prevent the model from collapsing onto the biased labeled subset:

Beyond Classification: Fairness and Causality

Resolving selection bias in PU learning has critical implications that extend far beyond simple classification accuracy.

When the labeling mechanism depends on features, it frequently correlates with protected demographic attributes, leading to algorithmic discrimination. For example, if medical records are used as positive labels, under-served populations may have lower labeling rates due to systemic healthcare disparities. Jingrui He et al. addressed this in Fairness-aware Model-agnostic Positive and Unlabeled Learning by introducing FairPUL, a post-processing framework that recalibrates classifiers to satisfy fairness constraints like Equalized Odds under feature-dependent labeling bias.

Furthermore, this line of research bridges the gap between semi-supervised learning and causal inference. In observational studies, researchers often need to calculate the Average Treatment Effect (ATE) when only a biased subset of treated units is known. By adapting biased PU learning frameworks, Masahiro Kato et al. demonstrated in PUATE: Efficient ATE Estimation from Treated (Positive) and Unlabeled Units that it is possible to relax traditional selection-at-random requirements, enabling reliable causal inference in complex, non-randomly labeled environments.

Key Foundational Work

Learning classifiers from only positive and unlabeled data (2008) — contributed 3 concept elements to this direction.
Generative and Discriminative Learning with Unknown Labeling Bias (2008) — contributed 1 concept elements to this direction.
Partially Supervised Text Classification with Multi-Level Examples (2011) — contributed 1 concept elements to this direction.
History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 52 papers
  2. Version 1 · 2026-10-04 · 110 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_non_representative_labeling_cdc4ff91,
  title = {non-representative labeling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/non-representative-labeling/rdr_cdc4ff91f7014be99e2b0ab262472106},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 2, frozen text):

@misc{lacuna_non_representative_labeling_cdc4ff91_v2,
  title = {non-representative labeling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/non-representative-labeling/rdr_cdc4ff91f7014be99e2b0ab262472106/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-27},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake