[Paper Review] Crystalformer: Infinitely Connected Attention for Periodic Structure Encoding
Crystalformer introduces infinitely connected attention with periodic spatial encoding for crystal structures, achieving state-of-the-art property prediction with fewer parameters than prior Transformer-based models.
Predicting physical properties of materials from their crystal structures is a fundamental problem in materials science. In peripheral areas such as the prediction of molecular properties, fully connected attention networks have been shown to be successful. However, unlike these finite atom arrangements, crystal structures are infinitely repeating, periodic arrangements of atoms, whose fully connected attention results in infinitely connected attention. In this work, we show that this infinitely connected attention can lead to a computationally tractable formulation, interpreted as neural potential summation, that performs infinite interatomic potential summations in a deeply learned feature space. We then propose a simple yet effective Transformer-based encoder architecture for crystal structures called Crystalformer. Compared to an existing Transformer-based model, the proposed model requires only 29.4% of the number of parameters, with minimal modifications to the original Transformer architecture. Despite the architectural simplicity, the proposed method outperforms state-of-the-art methods for various property regression tasks on the Materials Project and JARVIS-DFT datasets.
Motivation & Objective
- Motivate efficient crystal-structure encoding to predict materials properties without DFT.
- Propose a Transformer-based encoder that handles periodic, infinitely repeating crystal lattices.
- Introduce neural potential summation as a tractable interpretation of infinite interatomic interactions.
- Demonstrate efficiency and accuracy improvements over prior Transformer/GNN approaches on standard datasets.
Proposed method
- Formulate infinitely connected attention as neural potential summation with periodic spatial and edge encodings.
- Use Gaussian distance-decay for the interatomic potentials and compute alpha_ij and beta_ij to enable tractable attention (pseudo-finite periodic attention).
- Represent periodicity with periodic spatial encoding alpha_ij and periodic edge encoding beta_ij derived from a log-sum and weighted sums over lattice images.
- Adopt a normalization-free Transformer encoder with four self-attention blocks and atom-wise embeddings, followed by global pooling and FFN for property prediction.
- Incorporate value position encoding psi_ij(n) to distinguish lattices with different unit cells and lattice vectors.
- Train and evaluate on Materials Project and JARVIS-DFT datasets, comparing against state-of-the-art methods.
Experimental results
Research questions
- RQ1Can a fully connected Transformer with periodicity-aware attention model crystal structures more accurately than prior GNN/Transformer approaches?
- RQ2Does neural potential summation enable tractable infinite interatomic interactions in crystals while maintaining efficiency and accuracy?
- RQ3What is the impact of including value position encoding psi and angular/directional information on predictive performance?
- RQ4How does Crystalformer scale in parameters and speed compared to PotNet and Matformer while achieving competitive MAEs?
- RQ5Can the framework accommodate long-range interactions via reciprocal (Fourier) space extensions?
Key findings
- Crystalformer achieves superior MAE on several tasks compared to multiple baselines on Materials Project and JARVIS-DFT datasets.
- On Materials Project, Crystalformer (with SWA) attains formation energy MAE 0.0186 eV/atom and bandgap MAE 0.198 eV, with bulk and shear moduli MAEs 0.0377 and 0.0689 (log(GPa)).
- On JARVIS-DFT, Crystalformer reaches formation energy MAE 0.0306 eV/atom, total energy 0.0320 eV/atom, bandgap OPT 0.128 eV, MBJ 0.274 eV, and E hull 0.0463 eV.
- Crystalformer uses only 29.4% of the parameters of Matformer and 48.6% of PotNet, with faster inference than PotNet and competitive training time.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.