Abstract
A major challenge in materials science is the determination of the structure of nanometer sized objects. Here we present a novel approach that uses a generative machine learning model based on diffusion processes that is trained on 45,229 known structures. The model factors both the measured diffraction pattern as well as relevant statistical priors on the unit cell of atomic cluster structures. Conditioned only on the chemical formula and the information-scarce finite-size broadened powder diffraction pattern, we find that our model, PXRDnet, can successfully solve simulated nanocrystals as small as 10 angstroms across 200 materials of varying symmetry and complexity, including structures from all seven crystal systems. We show that our model can successfully and verifiably determine structural candidates four out of five times, with average error among these candidates being only 7% (as measured by post-Rietveld refinement R-factor). Furthermore, PXRDnet is capable of solving structures from noisy diffraction patterns gathered in real-world experiments. We suggest that data driven approaches, bootstrapped from theoretical simulation, will ultimately provide a path towards determining the structure of previously unsolved nano-materials.
Introduction: The Nanostructure Problem
In materials science, "structure is function." Determining the exact spatial arrangement of atoms is crucial for understanding material behavior. While single-crystal X-ray diffraction is the gold standard, many modern nanomaterials—such as catalysts or drug delivery agents—exist only as tiny "powders."
When materials are nanometer-sized, their diffraction patterns undergo finite-size broadening. As crystals shrink, the sharp peaks that typically identify a structure smear into broad, overlapping humps. This degradation of information makes traditional ab initio (from scratch) methods fail, as the signal becomes too "blurry" for standard crystallographic analysis.
Methods: PXRDnet
The researchers developed PXRDnet, a generative diffusion model designed to solve 3D atomic structures from these information-scarce patterns. The framework utilizes a Hybrid Diffusion-VAE (Variational Autoencoder):
- Architecture: An SE(3)-invariant graph encoder maps crystal structures into a compressed latent space. A PXRD Regressor (a DenseNet-inspired 1D convolutional network) predicts diffraction patterns from these latent codes.
- The Inverse Solution: To solve a structure, the model is "inverted." Given a blurry target pattern and a chemical formula, gradient descent searches the latent space for a code $z$ that matches the observed data.
- Generative Refinement: A diffusion model then "denoises" random atomic coordinates into a physically plausible structure based on the candidate latent code.
- Final Optimization: Multiple candidates are generated, filtered via simulation, and refined using Rietveld refinement—a standard local optimization technique that nudges atoms into their final, most accurate positions.
The model was trained on the MP-20-PXRD dataset, containing 45,229 inorganic materials from the Materials Project, with simulated patterns at 10 Å and 100 Å scales.
Key Results and Insights
PXRDnet demonstrates a remarkable ability to "hallucinate" physically stable crystals by leveraging learned priors about atomic arrangements. Even at the 10 Å scale, where peaks are almost entirely overlapped, the model successfully recovers structural information.
- High Success Rate: The model verifiably determined correct structural candidates in 80% of cases (4 out of 5).
- Low Error: Successful candidates showed an average error (R-factor) of only 7% post-refinement.
- Broad Applicability: Unlike previous models limited to simple symmetries, PXRDnet succeeded across all seven crystal systems.
- Real-World Transfer: The model successfully solved structures from 15 real-world experimental patterns from the IUCr database, proving that it captures the underlying physics of diffraction rather than just memorizing a dataset.
Conclusion and Future Directions
PXRDnet represents a significant leap in solving the nanostructure problem. By treating structure determination as an inverse problem in a learned latent space, it recovers details that traditional methods cannot. Future work will focus on removing the requirement for a pre-defined chemical formula, scaling to larger unit cells (beyond 20 atoms), and improving robustness to experimental noise from sample holders or solvents.
Reference: Guo, G., et al. (2024). Ab Initio Structure Solutions from Nanocrystalline Powder Diffraction Data via Diffusion Models. arXiv:2406.10796v2.
Summary updated