Efficient determination of the Hamiltonian and electronic properties using graph neural network with complete local coordinates

Mao Su, Ji‐Hui Yang, Hongjun Xiang, Xin-Gao Gong · DOI

Abstract

Despite the successes of machine learning methods in physical sciences, prediction of the Hamiltonian, and thus electronic properties, is still unsatisfactory. Here, based on graph neural network architecture, we present an extendable neural network model to determine the Hamiltonian from ab initio data, with only local atomic structures as inputs. Rotational equivariance of the Hamiltonian is achieved by our complete local coordinates. The local coordinates information, encoded using the convolutional neural network and designed to preserve Hermitian symmetry, is used to map hopping parameters onto local structures. We demonstrate the performance of our model using graphene and SiGe random alloys as examples. We show that our neural network model, although trained using small-size systems, can predict the Hamiltonian, as well as electronic properties such as band structures and densities of states (DOS) for large-size systems within the ab initio accuracy, justifying its extensibility. In combination with the high efficiency of our model, which takes only seconds to get the Hamiltonian of a 1728-atom system, present work provides a general framework to predict electronic properties efficiently and accurately, which provides new insights into computational physics and will accelerate the research for large-scale materials.

TL;DR

Researchers have developed graph LC-Net, a graph neural network that predicts the electronic Hamiltonian of a material directly from its atomic structure with ab initio accuracy. By using a novel "complete local coordinate" system, the model achieves linear scaling—calculating the properties of a 1,728-atom system in just 10 seconds, a task that takes traditional methods over an hour on a supercomputer.

The Challenge: Hamiltonian Prediction and Scaling

In solid-state physics, the Hamiltonian is the "master key" that determines a material's electronic properties, such as band structures and densities of states (DOS). Traditionally, we solve for the Hamiltonian using Density Functional Theory (DFT). However, DFT suffers from a "cubic scaling" problem: as the number of atoms ($N$) increases, the computational cost grows by $N^3$, making large-scale simulations of thousands of atoms prohibitively expensive.

While machine learning (ML) has been used to predict simple scalar properties, predicting the Hamiltonian is much harder. The Hamiltonian is equivariant, meaning if you rotate the crystal, the Hamiltonian matrix must transform in a mathematically consistent way. Previous ML models often struggled with rotational symmetry, lacked extensibility, or failed to handle highly symmetric crystals where different atoms look identical to the algorithm (the "degeneration problem").

Methods: The Graph LC-Net Framework

The authors introduce graph LC-Net, which represents atomic structures as graphs where nodes are atoms and edges are bonds. The architecture consists of embedding, local coordinate (LC), interaction, and output layers.

The architecture of graph LC-Net, featuring embedding, local coordinate (LC), interaction, and output layers.

Complete Local Coordinates (LC)

To ensure rotational equivariance, the model defines a unique local coordinate system for every pair of atoms. Unlike previous methods that failed on perfect crystals, this new algorithm uses global coordinate information to break ties in highly symmetric structures. This provides a unique "fingerprint" even for these symmetric cases, solving the degeneration problem.

Preserving Hermitian Symmetry

The Hamiltonian must be Hermitian ($H_{ij} = H_{ji}^*$). To enforce this efficiently, the authors train two separate models—a forward model and a backward model—to predict different triangular portions of the hopping matrix, which are then assembled into the final Hamiltonian.

Schematic showing how the forward and backward models are combined to preserve the Hermiticity of the Hamiltonian matrix.

Key Results and Performance

The model was validated on graphene and SiGe random alloys, demonstrating remarkable efficiency and physical fidelity:

  • Linear Scaling ($O(N)$): Because the model only looks at local atomic environments, its computational cost grows linearly with the number of atoms. For a 1,728-atom SiGe system, graph LC-Net took 10.5 seconds on a single GPU, whereas DFT took 4,800 seconds (80 minutes) using 96 CPU cores.
  • Accuracy: The Mean Absolute Error (MAE) for hopping parameters was remarkably low: ~3.5 meV for graphene and ~0.5 meV for SiGe alloys.
  • Extensibility: A major finding is that the model can be trained on very small systems (e.g., 216 atoms) and accurately predict the electronic properties of systems nearly ten times larger (1,728 atoms) without losing accuracy.

Conclusion

Graph LC-Net provides a general framework to predict electronic properties efficiently and accurately. By combining the "principle of locality" with novel coordinate systems and symmetry-preserving architectures, it enables the study of large-scale materials that were previously computationally inaccessible. This work provides new insights into computational physics and will accelerate the research for large-scale materials, including high-entropy alloys and complex defects.

Summary updated

BibTeX
@article{su2023efficient,
  author = {Mao Su and Ji‐Hui Yang and Hongjun Xiang and Xin-Gao Gong},
  title = {{Efficient determination of the Hamiltonian and electronic properties using graph neural network with complete local coordinates}},
  journal = {Mach. Learn. Sci. Technol},
  year = {2023},
  doi = {10.1088/2632-2153/accb26},
}
Figure