A Diffusion-Based Pre-training Framework for Crystal Property Prediction

Zixing Song, Ziqiao Meng, Irwin King

Predicting the physical properties of new crystals—such as hardness, conductivity, or thermal stability—is fundamental to modern materials science. Traditionally, this relies on slow, expensive laboratory experiments or computationally intensive simulations like Density Functional Theory (DFT). While millions of crystal structures are known, only a small fraction have been labeled with physical properties, creating a significant "data bottleneck."

To address this, researchers from The Chinese University of Hong Kong introduced CrysDiff at AAAI-24. CrysDiff is a diffusion-based pre-training framework that leverages vast amounts of unlabeled 3D crystal data to enhance property prediction, particularly in data-scarce scenarios.

The Challenge of Periodic Structures

Crystals are more complex than simple molecules because they are periodic: a "unit cell" repeats infinitely in 3D space. A successful predictive model must respect fundamental physical symmetries. Specifically, the properties of a crystal should remain invariant under rotation, reflection, or periodic translation.

A crystal unit cell defined by lattice vectors $l_1, l_2, l_3$ and atomic positions.

Most existing pre-training methods fail to fully account for these unique periodic symmetries or rely on knowledge distillation from other models rather than learning directly from the structures themselves.

The CrysDiff Framework

CrysDiff employs a two-stage pretrain-finetune strategy centered on generative diffusion models.

1. Pre-training via Structure Reconstruction

The model is trained to "reconstruct" stable crystal structures from noisy versions. Unlike previous approaches, CrysDiff performs joint diffusion on both the lattice matrix (the "box" containing the atoms) and the fractional coordinates (the relative positions of atoms within that box).

To ensure the model respects physical laws, it utilizes an Equivariant Graph Neural Network (EGNN) backbone. This architecture ensures that the denoising process is strictly invariant to rotation, reflection, and periodic translation.

Illustration of O(3) invariance and periodic translation invariance in crystal lattices.

2. Fine-tuning for Property Prediction

For downstream tasks, the framework uses Classification and Regression Diffusion (CARD). Instead of a standard regressor, the model learns to "denoise" a random value into the actual property value (e.g., bandgap energy) while keeping the crystal structure fixed. This allows the model to capture the complex conditional distribution of properties given a specific structure.

Experimental Results and Insights

The researchers pre-trained CrysDiff on a massive dataset of 800,000 untagged crystal structures from the Materials Project (MP) and the Open Quantum Materials Database (OQMD). Evaluation was conducted on the JARVIS-DFT benchmark and the OQMD-EXP dataset (containing real-world experimental data).

  • State-of-the-Art Performance: CrysDiff outperformed leading models like Matformer and ALIGNN across all nine tested properties on JARVIS-DFT.
  • Geometric Sensitivity: The model showed significant gains in predicting mechanical properties like Bulk and Shear Modulus, which are highly sensitive to 3D geometry.
  • Data Efficiency: CrysDiff maintained high accuracy even when training data was reduced to 20%, demonstrating that the pre-training phase effectively teaches the model the "language" of crystals.
  • Real-World Robustness: On experimental data (OQMD-EXP), CrysDiff achieved the lowest Mean Absolute Error (MAE), proving its ability to bridge the gap between idealized simulations and messy laboratory results.

Conclusion

By framing structure reconstruction as a denoising process, CrysDiff implicitly learns the "force fields" and atomic stabilities that govern material properties. While diffusion models can be computationally slower during inference than one-pass networks, the success of CrysDiff suggests a promising future for generative AI in materials science—not just for prediction, but potentially for the inverse design of entirely new crystals.

Summary updated

BibTeX
@inproceedings{song2024diffusion,
  author = {Zixing Song and Ziqiao Meng and Irwin King},
  title = {{A Diffusion-Based Pre-training Framework for Crystal Property Prediction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28748},
}
Figure