Correcting Popularity Bias in Literature-Mined Labels with Time-Cut Domain Language Models

When scientists mine the biomedical literature for drug–gene–disease relationships, the "labels" are simply the relationships someone has already published. Those labels are not a random sample of true relationships. Well-studied genes and popular drugs are linked far more often than obscure ones. Any relationship that has not yet been published is unlabeled, which is different from false. Learning from such data is called positive-unlabeled (PU) learning: the learner sees some confirmed positives and a large pool where hidden positives and true negatives are mixed. When the chance of being labeled depends on the example itself, the bias is called "selected at random" (SAR). In that case a classifier trained to separate labeled from unlabeled examples learns how visible an example is, not how likely it is to be true.

This proposal points out a coupling that neither literature has examined. In specialized domains, one quantity, how often an entity is mentioned in the domain corpus, drives two things at once. It drives who gets labeled. It also drives how well a domain-pretrained language model represents that entity. Rare entities are both under-labeled and poorly encoded. We propose to treat the pretraining corpus as a measurement instrument rather than only as training text. A language model pretrained only on literature up to a cutoff year supplies the representations. Counts of an entity's mentions in that same time-cut corpus supply an explicit visibility variable. The historical rate at which known relationships were discovered calibrates the labeling propensity against that variable, with no negative labels needed. Evaluation uses relationships published after the cutoff, so hidden positives are real rather than simulated, and recall is broken down by entity visibility.

Core Claim

Our central claim is that, for literature-derived PU tasks, the labeling propensity $e = P(s{=}1 \mid x, y{=}1)$ is well approximated by a function of a low-dimensional, corpus-measured visibility variable $v$. Here $s$ marks "labeled," $y$ the true class, and $v$ the pre-cutoff mention counts of the entities involved. Two consequences follow. First, a propensity model estimated on $v$ from historical discovery rates will correct the bias more reliably than propensity models learned from the full representation $x$. Second, domain pretraining alone does not remove the bias and may sharpen it, because the representation's quality is itself a function of $v$.

The closest existing work falls short of this in specific ways. Temporal Positive-unlabeled Learning for Biomedical Hypothesis Generation via Risk Estimation builds temporal PubMed graphs and trains an unbiased PU risk estimator. That estimator assumes labels are selected completely at random, and the work uses no pretrained language model. Claim Check-Worthiness Detection as Positive Unlabelled Learning converts top-ranked unlabeled sentences into positives using a general-domain BERT. It fails exactly where labeling follows editorial salience, which is a SAR mechanism it does not model. PUe: Biased Positive-Unlabeled Learning Enhancement by Causal Inference supplies our reweighting technique, normalized inverse propensity weighting. However, it learns the propensity from the input features with a regularizer whose strength is hard to tune without negatives. We replace that learned propensity with one tied to an observed variable and calibrated from history. PU-BENCH: A UNIFIED BENCHMARK FOR RIGOROUS AND REPRODUCIBLE PU LEARNING motivates the work: it shows existing methods break down under severe SAR bias with sparse labels. It also constrains it: its text benchmarks are IMDb and 20News with shallow encoders, so it says nothing about specialized corpora or pretrained models.

Research Program

The first component is a time-cut domain language model. Following the recipe of BioBART: Pretraining and Evaluation of A Biomedical Generative Language Model, which continued pretraining BART on PubMed abstracts using text infilling and found that shuffling sentences hurts, we continue pretraining BART-Base on PubMed abstracts published before a cutoff year $T$. We keep only infilling. The cutoff is not optional. A model pretrained on the full corpus has read the abstracts that later establish the held-out relationships, which would leak the answers. To the best of our reading, no prior PU work on literature has controlled for this. We will measure how much leakage inflates scores by also running an untruncated model.

The second component is the visibility variable. For each entity we compute its mention count and the number of distinct papers mentioning it in the pre-$T$ corpus. For each entity pair, $v$ is the vector of both entities' counts, binned on a log scale. We also record how many subwords the tokenizer splits each entity name into. This tests the "vocabulary entanglement" concern that BioBART inherits from its general-domain tokenizer: rare entities may be both under-labeled and broken into meaningless fragments.

The third component estimates propensity from history without negatives. Choose an earlier cutoff $T_0 < T$. Among relationships known by $T$, the fraction already known by $T_0$ within each visibility bin estimates how labeling probability rises with visibility among positives:

$$\hat e(v) \;\propto\; \frac{\#\{\text{pairs in bin } v \text{ known by } T_0\}}{\#\{\text{pairs in bin } v \text{ known by } T\}}.$$

As in PUe, we rescale this so that the estimated propensities summed over the unlabeled-plus-labeled pool match the labeled count. This estimate is itself biased, because positives discovered by $T$ are more visible than undiscovered ones. We therefore treat it as a lower bound on how steeply propensity depends on $v$, and we test sensitivity by sweeping $T_0$.

The fourth component trains the classifier. We train a link classifier on the language model's representations of the two entities' contexts. It uses the non-negative PU risk, with each labeled positive's term weighted by $1/\hat e(v)$ and propensities clipped from below. The clipping matters because PU-Bench identifies exploding inverse weights in low-propensity regions as the failure mode. A secondary experiment repeats the pipeline on Wikipedia "citation needed" detection from the PUC paper, using article in-link counts as $v$. This tests whether the mechanism generalizes beyond biomedicine.

Baselines

The naive reference point is ordinary supervised fine-tuning of the same time-cut encoder, treating every unlabeled pair as negative. The TRP paper shows this closed-world assumption underperforms PU training on these graphs. It still sets the floor, and it shows how much of the problem is simply missing labels as opposed to biased labels.

The strongest existing method on this exact data is TRP-UPU from Temporal Positive-unlabeled Learning for Biomedical Hypothesis Generation via Risk Estimation, which reports an F1-S of 0.86 on the COVID-19 PubMed slice. We will reproduce it on our cutoff years and graph slices (COVID-19, immunotherapy, virology). We will report both its published setting and our split, because the cutoffs may differ. The paper reports no number for immunotherapy or virology, and no visibility-stratified number exists for any method: no reported result found on Lacuna for visibility-stratified recall on this data. Beating TRP-UPU means matching its overall F1-S within noise while substantially improving recall on the bottom visibility quintile.

The strongest SAR-aware competitors are PUe's learned propensity reweighting and threshold calibration (NTC-τMI) from Learning from biased positive-unlabeled data via threshold calibration. The latter assumes propensity is a function of the true posterior; that is a different structural bet from ours. Both run on the identical time-cut encoder, data, and number of tuning trials. Hyperparameters are selected with Proxy AUC from Accessible, Realistic, and Fair Evaluation of Positive-Unlabeled Learning Algorithms, never with post-$T$ labels. We also run plain nnPU and DC-PU from Balancing Positive and Negative Classification Error Rates in Positive-Unlabeled Learning as the robust SCAR-based options, and PUC as the text-specific conversion heuristic. Because our labeled set is drawn from the same pool as the unlabeled set, every method also gets the replenishment correction from the same paper for the depletion it calls internal label shift.

Four ablations isolate the key ingredient. The first replaces $\hat e(v)$ with a propensity learned from $x$, holding everything else fixed. The second replaces our calibrated $\hat e(v)$ with plain inverse-frequency weighting, which has the same direction but no calibration. The third swaps the domain encoder for general-domain BART-Base. The fourth swaps the time-cut encoder for one pretrained on the full corpus.

Why not just…?

Why not just weight positives by inverse mention frequency? This is the most serious threat, because it is nearly our method with a guessed functional form. If propensity really scales as a fixed power of frequency, the historical calibration adds little. The second ablation settles it directly. The calibration has to earn its place through better bottom-quintile recall or more stable training. If it does not, we will report the heuristic as the practical recommendation and present the visibility-confound finding as the main contribution.

Why not just let PUe learn the propensity from the domain embeddings? Our hypothesis is that the embedding encodes visibility and semantics together, because rarely mentioned entities get worse representations. A propensity network on $x$ then has no principled way to separate "rare" from "unlikely." The paper's own reliance on a regularizer to prevent all propensities from collapsing to one is a symptom of that. The first ablation tests this. If the learned propensity matches ours, the claim that an explicit corpus variable is needed is refuted.

Why not just use a better domain encoder and plain nnPU, assuming domain pretraining fixes the bias? Domain pretraining improves what the model knows, as BERTHop: An Effective Vision-and-Language Model for Chest X-ray Disease Diagnosis and MonoCoder: Domain-Specific Code Language Model for HPC Codes and Tasks show. But better knowledge of popular entities does not imply better recall on obscure ones. The general-versus-domain encoder comparison under nnPU, stratified by visibility, answers this. If the gap between high- and low-visibility recall shrinks to near zero with the domain encoder alone, our correction is unnecessary.

Why not just prompt a large general-purpose model? Such a model cannot be cut off in time. It has almost certainly read the post-$T$ papers, so its apparent "discoveries" are uninterpretable as prediction. We include it only as a contaminated reference point, and we note it would also inherit the popularity skew of web text.

Proposed Experiments and Decisive Checks

The primary benchmark is the set of PubMed temporal slices from the TRP paper. We use two or three cutoff years $T$, with test positives defined as relationships first appearing within a fixed window after $T$. We report overall F1-S and AUC, plus recall-at-k within each visibility quintile. The headline quantity is the visibility gap: recall in the top quintile minus recall in the bottom.

A controlled companion experiment gives full ground truth. We take the BC5CDR chemical–disease relations from the BioBART suite and hide labels with a propensity that depends on entity frequency, in the style of PU-Bench's biased labeling mechanisms. We then sweep the steepness of that dependence up to the extreme regime where PU-Bench reports collapse. The Wikipedia experiment compares against PUC's reported F1 of 81.8.

Three results would be decisive. The first is whether the full-corpus encoder inflates scores relative to the time-cut encoder. If it does, earlier literature-mining PU results are partly leakage. The second is whether the visibility gap under nnPU is larger with the domain encoder than with the general one; that would confirm the confound. The third is whether $v$-calibrated weighting closes that gap more than both learned propensity and the inverse-frequency heuristic, without lowering overall F1-S below TRP-UPU's level. If none of these hold, the conclusion is that domain pretraining and standard PU estimators already suffice for literature-derived labels, and that is itself worth reporting.