Request access to the CheMeleon 2 encoders
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
The encoders are released under the MIT licence ahead of the preprint. Please say briefly how you intend to use them.
Log in or Sign Up to review the conditions and access this model content.
CheMeleon 2
The pretrained member encoders of CheMeleon 2 and its pretraining pool, from
CheMeleon 2: Random Networks Are Good Teachers for Pretraining Molecular Property Prediction Models Akshat Shirish Zalte, Charlles R. A. Abreu, William H. Green (Massachusetts Institute of Technology). Preprint to follow.
Code, benchmarks and the full reproduction: https://github.com/akshatzalte/chemeleon2.
What is here
CheMeleon 2 fine-tunes four pretrained 2,048-wide directed message-passing networks (Chemprop D-MPNNs) jointly on a labelled task. Three were pretrained to reproduce the 2,048 readouts of a frozen, randomly initialised D-MPNN (a random teacher) on 941,467 PubChem molecules; the fourth was pretrained on 1,613 Mordred descriptors, as the original CheMeleon. On a task, every member trains on four of five folds and early-stops on its own fifth, an agreement loss ties the members together on unlabelled neighbours of the training molecules drawn from the pool, and the prediction is the mean of the members.
| file | what | sha256 |
|---|---|---|
RT1_tier1_mp.pt |
student encoder pretrained on random teacher RT1 (depth 12, tanh, sum readout; 2,048 targets) | 5ca0a004b13b74faa8cd887ee14a4051f29c02048d0b11605097ea824f77f495 |
RT2_tier1_mp.pt |
student encoder pretrained on random teacher RT2 (depth 6, tanh, 1,024 wide, mean + sum readouts; 2,048 targets) | f66363055f5c98a87f1d6115f01cba6304bc986b003e43e27eb1d950cfa1abb0 |
RT3_tier1_mp.pt |
student encoder pretrained on random teacher RT3 (RT1's weights at depth 6, times 4; 2,048 targets) | ccd2cbd4272176bd0a5188f90f6b8ad924b7ccfe74ff59c48bc770dcfe0c5a1e |
Mordred_full_mp.pt |
student encoder pretrained on 1,613 Mordred descriptors (the descriptor member) | a452adda1c312a553ed5605df877054739160c9bd96feb151a6ab3c11e4921a2 |
pool_full.txt |
the 941,467-molecule pretraining pool (SMILES, one per line); the fine-tuning draws its unlabelled neighbours from it | 264e5969e317a93a30f1c7b4c8ae76d68308fdeba811dcdcd9c5850e024e668b |
Each *_mp.pt is a Chemprop BondMessagePassing state (the encoder alone, no head) saved by chemeleon2.baselines.encoders.save_mp;
chemeleon2.baselines.encoders.load_mp(path) loads it. The pool is one SMILES per line.
Use
git clone https://github.com/akshatzalte/chemeleon2 && cd chemeleon2
conda env create -f envs/core.yml && conda activate chemeleon2
hf auth login # once; the repository is gated, request access on this page first
python scripts/fetch_pretrained.py # the five files, sha256-checked, into the run store
python scripts/finetune_csv.py --train train.csv --test test.csv --smiles-col smiles --target-col y --task regression --device cuda
finetune_csv.py fine-tunes the four members on your training CSV with the paper's recipe and writes the predictions for the
test CSV (probabilities for --task classification; several --target-col for multitask regression). The benchmark runs of
the paper go through the experiment configs of the repository (scripts/run.py).
This release is what fine-tuning CheMeleon 2 on new data needs. Reproducing the paper's tables goes through the repository
(scripts/reproduce_all.sh, see its docs/REPRODUCTION.md).
Citation
See CITATION.cff in the repository; the arXiv identifier will be added once the preprint is up.