Skip to content

Repository files navigation

MatInFormer: Materials Informatics Transformer

Hongshuo Huang, Rishikesh Magar ,Changwen Xu, Amir Barati Farimani
Carnegie Mellon University

This is the official implementation of MatInFormer: "Materials Informatics Transformer: A Language Model for Interpretable Materials Properties Prediction". In this work, we introduce a novel approach that involves learning the grammar of crystallography through the tokenization of pertinent space group information. We further illustrate the adaptability of MatInFormer by incorporating task-specific data pertaining to Metal-Organic Frameworks (MOFs).

Enviroment Set up

conda env create -f environment.yml

Example of SSL

cd /path/to/matinformer/
python sgt/pretrain.py

Here is a example data for lattice parameter prediction. Nottice The lattice parameter should be normalized.

material-idcompositionspace groupabc$\alpha$$\beta$$\gamma$
foo-1Hf2 Si2 Te2P4/nmm3.673.6727.31909090
foo-2Ti2 Br2 O2Pmna3.704.7025.44909090

Example of fintune

For materials project benchmark, you can train and test by

python sgt/mb_train.py

if you want to run on your own dataset like MOFs, change the config file and run

python sgt/hoip_train.py

The model takes input in the form csv files with materials-ids, composition strings , space group symbol and target values as the columns.

material-idcompositionspace grouptarget
foo-1Hf2 Si2 Te2P4/nmm63.5
foo-2Ti2 Br2 O2Pmna134.8

Cite This Work

If you use this code please cite the relevant work:

MatInFormer - Materials Informatics Transformer: A Language Model for Interpretable Materials Properties Prediction [arXiv]

@article{huang2023materials,
title={Materials Informatics Transformer: A Language Model for Interpretable Materials Properties Prediction},
author={Huang, Hongshuo and Magar, Rishikesh and Xu, Changwen and Farimani, Amir Bariti},
journal={arXiv preprint arXiv:2308.16259},
year={2023}
}

wren - Rapid Discovery of Stable Materials by Coordinate-free Coarse Graining. [Paper][arXiv]

@article{goodall_2022_rapid,
title={Rapid discovery of stable materials by coordinate-free coarse graining},
author={Goodall, Rhys EA and Parackal, Abhijith S and Faber, Felix A and Armiento, Rickard and Lee, Alpha A},
journal={Science Advances},
volume={8},
number={30},
pages={eabn4117},
year={2022},
publisher={American Association for the Advancement of Science}
}

About

No description, website, or topics provided.

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages