PU Learning comparison: nnPU on 10x training set
This repository shows a series of AutoModelForCausalLM which are respectively trained on literature data with different PU methods.
We evaluate how good GPT predicts synthesizability on already verified published experimental data when learning follows PU methods.
This nnPU_10x branch specifically trained GPT-oss-20B base model on PU dataset with P:U=1:9.3.
Result
| Metric | PN holdout | P/U holdout |
|---|---|---|
| Train size | 11,293 P + 104,932 U | 11,293 P + 104,932 U |
| Test size | 1320 P + 1275 N | 1320 P + 13,200 U |
| Decision rule | s ≥ 0.500 | s > τ; τ ≈ 0.119 |
| Estimated positive fraction in U (α) | — | 0.0705 |
| TP / TN / FP / FN | 409 / 843 / 432 / 911 | — |
| Accuracy (%) | 48.25 | — |
| Precision (%) | 48.63 | — |
| Corrected precision (%) | — | 74.91 |
| Recall (%) | 30.98 | 72.73 |
| F1 (%) | 37.85 | — |
| AUROC (%) | 46.68 | — |
| AP (positive class, %) | 48.36 | — |
| Corrected FPR (%) | — | 1.85 |
| U predicted positive (%) | — | 6.84 |
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer, Mxfp4Config
model_id = "MOFinder-nnPU-1x"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
This is a causal language model, not a classifier-head model. The MOF task was trained by scoring the final-token logits for N and P under the training prompt format.
Citation and license
When using these weights, cite MOFinder, identify StarLiu714/GPT-oss-MOFinder and the Hub revision used, and reference the GPT-oss-20B base model.
This release is licensed under the GNU General Public License v3.0; see LICENSE.
The underlying GPT-oss-20B model retains its upstream Apache-2.0 license, reproduced in LICENSE.base-model. This release includes MOF fine-tuning changes merged into the base model and a BF16 weight export.
MOFinder codebase is separately licensed under MIT.