Score-based diffusion models for accurate crystal-structure inpainting and reconstruction of hydrogen positions
- 1. PSI Center for Scientific Computing, Theory and Data, Paul Scherrer Institute, 5232 Villigen PSI, Switzerland
- 2. Dipartimento di Scienze Matematiche, Fisiche e Informatiche, Universit`a di Parma, I-43124 Parma, Italy
- 3. Dipartimento di Scienze Fisiche, Informatiche e Matematiche, Universit`a degli Studi di Modena e Reggio Emilia, Modena, Italy
- 4. Institute Nanoscience - CNR-NANO, Center S3, Modena, Italy
* Contact person
Description
Generative artificial-intelligence (AI) models, such as score-based diffusion models, have recently advanced the field of computational materials science by enabling the generation of new materials with desired properties. In addition, these models could also be leveraged to reconstruct crystal structures for which partial information is available. One relevant example is the reliable determination of atomic positions occupied by hydrogen atoms in hydrogen-containing crystalline materials. While crucial to the analysis and prediction of many materials properties, the identification of hydrogen positions via X-ray scattering experiments has been historically challenging, and often requires more expensive neutron scattering measurements. As a consequence, and despite experimental advances which enable us nowadays to accurately determine hydrogen positions based on X-ray scattering experiments, inorganic crystallographic databases still report many lattice structures where hydrogen atoms have been either omitted or inserted with heuristics or by chemical intuition. Here, we combine diffusion models from the field of materials science with techniques originally developed in computer vision for image inpainting. We present how this knowledge transfer across domains enables a much faster and more accurate completion of host structures, compared to unconditioned diffusion models or previous approaches solely based on density-functional theory (DFT). Overall, when applied to a test dataset of hydrogen-containing materials from the MC3D database, our approach exceeds a success rate of 97% in terms of finding a structural match or predicting a more stable configuration (according to DFT) than the initial reference from the experimental source database (and with a success rate exceeding 99% when excluding structures flagged as theoretical in MC3D), both when starting from structures that were already relaxed with DFT, or when starting directly from the experimentally determined host structures.
Files
File preview
README.md
All files
Files
(27.9 GiB)
| Name | Apps | Size | |
|---|---|---|---|
|
md5:5a32126fb6bd4cce83f3e212187b1062
|
101.2 MiB | Preview Download | |
|
md5:49478edb715e897bc74d2732624303cf
|
|
22.0 GiB | Download |
|
md5:076e656461d7603d5fba74a980530571
|
|
3.8 GiB | Download |
|
md5:92fc5388a9f9d11e5f5c99b46e97a7d3
|
|
1.9 GiB | Download |
|
md5:5d644eae50a43703f498cf0205745470
|
11.0 KiB | Preview Download |
References
Journal reference T. Reents, A. Cantarella, M. Bercx, P. Bonfà and G. Pizzi, npj Comput Mater 12, 203 (2026)., doi: 10.1038/s41524-026-02090-1
Software (Model checkpoints for the models discussed in the paper.) Hugging Face repository: t-reents/XtalPaint
Software (Code package related to the paper) XtalPaint