Literature · xiaohang07
MatterGPT
Generative transformer for inverse design of inorganic crystal structures conditioned on target material properties.
What MatterGPT is
MatterGPT is an inorganic material generation model developed by xiaohang07. It performs inverse materials design by predicting crystal structures that match user-specified target properties, specifically formation energy and band gap. The model is designed to facilitate the targeted exploration and discovery of novel inorganic solid-state materials.
The model operates on crystal structures represented as SLICES (Simplified Line-Input Crystal-Encoding System), an invariant one-dimensional text encoding for periodic crystalline lattices. By treating crystal discovery as a conditioned sequence generation task, it enables targeted property-guided exploration across inorganic chemical space.
How it works
MatterGPT is based on the GPT-2 generative transformer architecture and contains approximately 80 million trainable parameters. It was trained for 50 epochs using the Adam optimiser with an initial learning rate of 0.0001 and a cosine annealing schedule. The training distribution is the Alex-20 dataset, which contains 280,033 unique crystal structures with up to 20 atoms per unit cell extracted from the Alexandria database.
During generation, the model receives numerical condition values representing target formation energy and band gap alongside a start token. It autoregressively samples and decodes a sequence of tokens in the SLICES format. The resulting SLICES string representations must then be post-processed to construct three-dimensional crystal structures with atomic coordinates and lattice parameters.
Key facts
- Base architecture
- GPT-2
- Trainable parameters
- Approximately 80 million
- Input condition
- Target formation energy and band gap values
- Output format
- SLICES (Simplified Line-Input Crystal-Encoding System) string
- Training dataset
- Alex-20 (280,033 structures from the Alexandria database)
- Maximum structure size
- 20 atoms per unit cell
What you can use it for
- Targeted crystal generation
- Synthesising candidate inorganic crystal structures tailored to predefined formation energy and band gap targets.
- Novel materials exploration
- Sampling previously unobserved inorganic compounds with high novelty relative to known training structures.
- Multi-property inverse design
- Directly conditioning generative structure searches on multiple simultaneous electronic and thermodynamic stability metrics.
Run it here
We list this model but cannot run it yet: its first test run here did not return a result, so it is tried again in a week.
Everything on this page still applies. Running it needs a loader for this repository, not a bigger machine.
Strengths and limits
Good at
- Maintains high generation quality with structural validity and uniqueness both exceeding 90% on benchmark evaluations.
- Produces novel structures absent from the training data at rates between 40% and 60%.
- Achieves low error on formation energy targeting, with a mean absolute percentage error between 11% and 13%.
Watch out for
- Restricted to unit cells containing up to 20 atoms and may not generalise well to larger crystallographic systems.
- Exhibits moderate uncertainty in band gap targeting, with test set mean absolute percentage errors ranging from 31% to 51%.
- Requires downstream post-processing tools to convert generated SLICES strings into standard three-dimensional crystallographic coordinates.
Inputs and outputs
You provide
Prompt
The model continues from here.
You get back
The model's completion.
Licence
Check the licence before commercial use · mit
The mit licence carries terms worth reading before you depend on it.
Questions
Can I use MatterGPT commercially?
Check the licence before commercial use. The mit licence carries terms worth reading before you depend on it.
What inputs are required to generate a crystal?
Generation requires a condition array containing target values for formation energy and band gap.
What output does the model produce?
The model outputs a text string in the SLICES format representing the crystal structure, which requires post-processing to obtain coordinates.
Can MatterGPT design materials with large unit cells?
No, the model was trained exclusively on systems with up to 20 atoms per unit cell and does not reliably generalise to larger structures.
What dataset was used to train the model?
It was trained on the Alex-20 dataset, comprising 280,033 unique structures from the Alexandria database.
Written from MatterGPT's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.
