Home

Awesome

Few-shot Graph Learning for Molecular Property Prediction

Introduction

This is the source code and dataset for the following paper:

Few-shot Graph Learning for Molecular Property Prediction. In WWW 2021.

Contact Zhichun Guo (zguo5@nd.edu), if you have any questions.

Datasets

The datasets uploaded can be downloaded to train our model directly.

The original datasets are downloaded from Data. We utilize Original_datasets/splitdata.py to split the datasets according to the molecular properties and save them in different files in the Original_datasets/[DatasetName]/new. Then run main.py, the datasets will be automatically preprocessed by loader.py and the preprocessed results will be saved in the Original_datasets/[DatasetName]/new/[PropertyNumber]/propcessed.

Usage

Installation

We used the following Python packages for the development by python 3.6.

- torch = 1.4.0
- torch-geometric = 1.6.1
- torch-scatter = 2.0.4
- torch-sparse = 0.6.1
- scikit-learn = 0.23.2
- tqdm = 4.50.0
- rdkit

Run code

Datasets and k (for k-shot) can be changed in the last line of main.py.

python main.py

Performance

The performance of meta-learning is not stable for some properties. We report two times results and the number of the iteration where we obtain the best results here for your reference.

DatasetkIterationPropertyResultskIterationPropertyResults
Sider1307/599Si-T175.08/75.745561/585Si-T176.16/76.47
Si-T269.44/69.34Si-T268.90/69.77
Si-T369.90/71.39Si-T372.23/72.35
Si-T471.78/73.60Si-T474.40/74.51
Si-T579.40/80.50Si-T581.71/81.87
Si-T671.59/72.35Si-T674.90/73.34
Ave.72.87/73.82Ave.74.74/74.70
Tox2111271/1415SR-HS73.72/73.9051061/882SR-HS74.85/74.74
SR-MMP78.56/79.62SR-MMP80.25/80.27
SR-p5377.50/77.91SR-p5378.86/79.14
Ave.76.59/77.14Ave.77.99/78.05

Acknowledgements

The code is implemented based on Strategies for Pre-training Graph Neural Networks.

Reference

@article{guo2021few,
  title={Few-Shot Graph Learning for Molecular Property Prediction},
  author={Guo, Zhichun and Zhang, Chuxu and Yu, Wenhao and Herr, John and Wiest, Olaf and Jiang, Meng and Chawla, Nitesh V},
  journal={arXiv preprint arXiv:2102.07916},
  year={2021}
}