Self-training beats co-training on clinical toxicity (mostly)
Abstract
We compare four semi-supervised methods on three molecular benchmarks while shrinking the label budget. Self-training wins on approval and clinical toxicity, co-training on Tox21, and a tuned fingerprint baseline beats every graph model we tried.
Key results
- Macro ROC-AUC, Morgan + MLP
- 0.9475
- AMES ROC-AUC after GA feature selection
- 0.8694
- Test compounds inside the applicability domain
- 95.2%
A personal side project done in my free time. It is not a published or peer-reviewed paper.
Why this question
Labelled molecules are expensive. A single toxicity label can mean weeks of wet-lab work, so most public benchmarks give us a few thousand labelled compounds next to millions that are unlabelled. Semi-supervised learning promises to use that unlabelled mass. The question is which method, under which label budget, and whether the gain survives a fair evaluation.1
We compare four methods on three benchmarks (FDA approval, ClinTox and Tox21) under varying ratios of labelled to unlabelled data:
- Self-training (pseudo-labelling): train, label the most confident unlabelled points, repeat.
- Co-training: two models on two feature views teach each other.
- Label propagation and label spreading: diffuse labels over a similarity graph.
Setup
Splits are made at the molecule level, so the same compound never appears in train and test. For the multi-target task, missing labels are masked out of the loss rather than imputed:
where when molecule has a label for target . In code it is three lines:
def masked_bce(logits, targets, mask):
loss = F.binary_cross_entropy_with_logits(logits, targets, reduction="none")
return (loss * mask).sum() / mask.sum().clamp(min=1)
Strong baselines first
Before any graph model, we tuned a plain Morgan-fingerprint MLP. It turned out to be the model to beat.
| Model | Representation | Macro ROC-AUC |
|---|---|---|
| MLP | Morgan fingerprint | 0.9475 |
| Hybrid GIN | ChemBERTa + graph, late fusion | 0.8654 |
A well-tuned baseline is not a formality. It is the result most papers forget to report.
What this means
Self-training performed best on approval and clinical toxicity; co-training performed best on Tox21.
Footnotes
-
ClinTox (MoleculeNet) contains 1,478 compounds. ↩