mufu v1.1.1
MuFu, from CHM4930, fuses a frozen MoLFormer SMILES embedding, an ECFP4 fingerprint and a GINE graph encoder. For one SMILES it predicts EGFR and BACE1 pIC50 (with a conformal interval) and P(active), the 12 Tox21 assays and the 2 ClinTox tasks.
This is a 5-seed ensemble from commit 4a41fb8effca06f6dd1b449bae70aeb8bc8d6413 (ai_tree 1d7933db4563), trained on data
with sha256 b340ddf73f38e10f8b6a2948156417661a269ffc9a6d9b097b538c4690e1b041. pIC50 is the members' mean, and probabilities are
averaged after each member's own calibration. The interval is
μ ± q · max(σ, floor), where σ² adds the mean MC-Dropout variance and the
variance between members, and q is fitted on validation.
The files only work as a set: each _mc_dropout.json is fitted to its checkpoint, and
mufu_ensemble.json to exactly these checkpoints. Don't mix files across tags.
Test metrics
| Task | Metric | Ensemble | Single model (mean ± std) | RF baseline |
|---|---|---|---|---|
| BACE1 pIC50 | RMSE | 0.792 | 0.827 ± 0.012 | 0.813 |
| BACE1 pIC50 | R² | 0.614 | 0.578 ± 0.013 | 0.592 |
| EGFR pIC50 | RMSE | 0.886 | 0.919 ± 0.021 | 0.877 |
| EGFR pIC50 | R² | 0.492 | 0.453 ± 0.024 | 0.502 |
| Tox21 (macro) | ROC AUC | 0.759 | 0.733 ± 0.009 | 0.712 |
| ClinTox CT_TOX | ROC AUC | 0.846 | 0.819 ± 0.034 | 0.726 |
| ClinTox FDA_APPROVED | ROC AUC | 0.860 | 0.855 ± 0.038 | 0.577 |
Single-model numbers are over the 5 seeds; RF is a random forest on ECFP4.
Across 6 scaffold splits
default is a harder-than-typical split, so the numbers above are pessimistic. Mean ± std across splits (std is split-to-split, not seed-to-seed):
| Task | Metric | Single model | RF baseline |
|---|---|---|---|
| BACE1 pIC50 | RMSE | 0.755 ± 0.041 | 0.741 ± 0.042 |
| BACE1 pIC50 | R² | 0.618 ± 0.032 | 0.633 ± 0.032 |
| EGFR pIC50 | RMSE | 0.850 ± 0.046 | 0.803 ± 0.056 |
| EGFR pIC50 | R² | 0.560 ± 0.062 | 0.607 ± 0.060 |
| Tox21 (macro) | ROC AUC | 0.793 ± 0.034 | 0.790 ± 0.045 |
| ClinTox CT_TOX | ROC AUC | 0.776 ± 0.054 | 0.751 ± 0.075 |
| ClinTox FDA_APPROVED | ROC AUC | 0.800 ± 0.053 | 0.786 ± 0.120 |
Usage
With the code and ai/src on the path (MolFormer is downloaded from
ibm-research/MoLFormer-XL-both-10pct on first use):
from pathlib import Path
from huggingface_hub import snapshot_download
from encoders.smiles_encoder import SmilesEncoder
from mufu.ensemble import load_ensemble_params, load_members, member_paths
path = Path(snapshot_download("CHM4930/mufu", revision="v1.1.1"))
paths = member_paths(path, "mufu", range(5))
params = load_ensemble_params(paths, path, "mufu")
members = load_members(paths, SmilesEncoder(freeze=True))
Predict with mufu.ensemble.predict_with_ensemble_intervals, or serve it with
MUFU_HF_REPO=CHM4930/mufu MUFU_MODEL_VERSION=v1.1.1 (see ai/README.md). For a
single seed, use mufu.experiment.load_mufu_checkpoint.
Model tree for CHM4930/mufu
Base model
ibm-research/MoLFormer-XL-both-10pctEvaluation results
- Test RMSE on BACE1 (CHM4930 test split)test set self-reported0.791
- Test R² on BACE1 (CHM4930 test split)test set self-reported0.614
- Test RMSE on EGFR (CHM4930 test split)test set self-reported0.886
- Test R² on EGFR (CHM4930 test split)test set self-reported0.492
- Test ROC AUC on Tox21 (CHM4930 test split)test set self-reported0.758
- Test ROC AUC on ClinTox (CHM4930 test split)test set self-reported0.846
- Test ROC AUC on ClinTox (CHM4930 test split)test set self-reported0.860