Conformal Crystal Graph Transformer with Robust Encoding of Periodic Invariance

Yingheng Wang, Shufeng Kong, John M. Gregoire, Carla P. Gomes

Introduction

Predicting the properties of crystalline materials—such as energy levels or bandgaps—is a cornerstone of modern materials science, enabling the discovery of novel substances for energy storage and electronics. However, applying machine learning to crystals involves overcoming two significant hurdles: periodic invariance and the representation of angular information. Crystals are infinite repeating structures; representing them as finite graphs is often sensitive to experimental noise or "ties" in atomic distances, leading to inconsistent graph topologies. Furthermore, while the angles between atoms are chemically critical, existing methods for encoding them are either computationally prohibitive or physically insufficient.

Methodology: The CrystalFormer Architecture

CrystalFormer addresses these challenges through a novel graph transformer architecture that prioritizes robustness and geometric fidelity.

Robust Graph Construction

Instead of relying on a rigid distance cutoff for neighbor selection, CrystalFormer employs a hierarchical weighting approach. This method integrates reciprocal distance weights, atomic radii-based penalties, and electronegativity differences. By introducing a tolerance parameter ($\delta$), the model ensures that minor atomic perturbations do not cause abrupt changes in graph topology, making the representation resilient to experimental jitter.

Overview of the CrystalFormer architecture, including graph construction and message passing blocks.

Implicit Angle Preservation via Conformal Mapping

A key innovation is the use of conformal mapping to preserve angular information without the overhead of explicit triplet calculations. By minimizing Dirichlet energy within the neural network, the model learns to maintain the inherent angular relationships of the 3D coordinates. This "harmonic mapping" serves as a computationally efficient proxy for complex angular encodings, avoiding the high complexity typical of auxiliary line graphs.

Edge-Aware Attention

The transformer blocks utilize a unique attention mechanism that fuses embeddings from both vertices and their adjacent edges. This allows the model to capture long-range interactions and complex 3D geometric relationships simultaneously, enhancing its predictive power.

Experimental Evaluation

The model was rigorously evaluated on the JARVIS-DFT benchmark, encompassing over 55,000 crystal structures. The evaluation focused on five critical tasks: Bandgap (OPT and MBJ), Total Energy, Formation Energy, and thermodynamic stability (Ehull).

Results and Discussion

CrystalFormer established new state-of-the-art (SOTA) benchmarks across the majority of the JARVIS tasks.

Performance comparison of CrystalFormer against existing SOTA models on the JARVIS-DFT dataset.

Performance Gains

As shown in the results table, CrystalFormer achieved a remarkable 51.9% improvement in Mean Absolute Error (MAE) for Bandgap (MBJ) and a 46.9% improvement for Total Energy compared to previous leading models. While it was slightly behind the SOTA for Formation Energy, it remained highly competitive, suggesting that its weighting system captures the vast majority of relevant chemical nuances.

Computational Efficiency

Beyond accuracy, CrystalFormer offers significant efficiency advantages. The proposed graph construction method is 8.14 times faster than traditional Voronoi-based methods. In terms of inference throughput, the model processes approximately 69.6 samples per second, significantly faster than models like ALIGNN (~35.7 samples/s). This high throughput makes it an ideal candidate for large-scale material screening.

Conclusion and Future Work

CrystalFormer demonstrates that physical accuracy in crystal property prediction does not have to come at the cost of computational speed. By leveraging conformal geometry and robust graph construction, it provides a stable and efficient framework for materials discovery. Future research will explore refining edge attributes to better capture specific chemical nuances and extending the angle-preserving layers to other 3D molecular data types.

Summary updated

BibTeX
@inproceedings{wang2024conformal,
  author = {Yingheng Wang and Shufeng Kong and John M. Gregoire and Carla P. Gomes},
  title = {{Conformal Crystal Graph Transformer with Robust Encoding of Periodic Invariance}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i1.27781},
}
Figure