Efficient determination of the Hamiltonian and electronic properties using graph neural network

Xinggao Gong, Mao Su, Ji‐Hui Yang, Hongjun XiangResearch 2022

Abstract

Despite past decades have witnessed many 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. 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.

Introduction: Breaking the "Size Wall" in Quantum Simulations

In solid-state physics, the Hamiltonian is the fundamental operator governing a material's electronic properties. Traditionally, researchers solve for the Hamiltonian using Density Functional Theory (DFT). While highly accurate, DFT's computational cost grows cubically ($O(N^3)$) with the number of atoms. This scaling creates a "size wall," making it nearly impossible to simulate large-scale systems like complex interfaces, defects, or random alloys using standard supercomputing resources.

Previous machine learning approaches have attempted to bypass this bottleneck but often struggle with three main issues: rotational covariance, maintaining the mathematical Hermiticity of the Hamiltonian matrix, and extensibility to larger systems. This paper presents a Graph Neural Network (GNN) framework designed to overcome these hurdles.

Methodology: A Symmetry-Aware GNN

The researchers developed an extendable GNN framework that maps local atomic structures directly to Hamiltonian parameters. By treating atoms as nodes and interactions as edges, the model leverages the "principle of locality"—the fact that quantum interactions decay rapidly with distance.

Overview of the GNN architecture, showing the embedding, interaction, and output layers (a), the embedding block (b), the CNN for geometry (c), node/edge updates (d), and the final output block (e).

Core Innovations

  1. Local Coordinate (LC) Transformation: To ensure rotational covariance, the model defines a unique local coordinate system for every atom pair. Wigner-D matrices are then used to transform local predictions back into the global frame.
  2. Text-CNN for Geometry: Borrowing techniques from Natural Language Processing, the model uses a Convolutional Neural Network (CNN) to process neighbors as "sentences." By sorting neighbors by distance, the CNN captures structural order more effectively than standard message-passing layers.
  3. Hermiticity Preservation: The architecture is split into forward and backward models, ensuring the predicted hopping parameters satisfy the required physical symmetries.
  4. Focal Loss for Regression: To handle the data imbalance where most Hamiltonian elements are near zero, a regression-based Focal Loss forces the model to prioritize rare, high-value interactions.
Detailed view of the CNN-based geometry processing, mapping local atomic configurations to feature vectors.

Performance and Extensibility

The model was benchmarked on graphene and Silicon-Germanium (SiGe) random alloys. For the SiGe system, the model achieved a Mean Absolute Error (MAE) of approximately 0.5 meV, reaching "chemical accuracy."

Crucially, the model exhibits linear scaling ($O(N)$). Predicting the Hamiltonian for a 1,728-atom system took just 10.5 seconds on a single GPU—a task that required roughly 80 minutes on 96 CPU cores using traditional DFT. Furthermore, the model demonstrated remarkable extensibility: although trained on small supercells (up to 216 atoms), it accurately predicted the band structures and Density of States (DOS) for systems nearly ten times larger.

Conclusion and Future Outlook

By baking physical constraints like Hermiticity and locality directly into the GNN architecture, this work provides a high-efficiency framework for large-scale material simulation. This approach not only breaks the cubic-scaling bottleneck of DFT but also opens doors for the inverse design of materials, where researchers can rapidly screen thousands of candidates for optimized electronic properties.

While the current model faces challenges with highly symmetric structures where neighbors are indistinguishable by distance alone, it represents a significant step toward bridging the gap between ab initio accuracy and large-scale material discovery.

Summary updated

BibTeX
@inproceedings{gong2022efficient,
  author = {Xinggao Gong and Mao Su and Ji‐Hui Yang and Hongjun Xiang},
  title = {{Efficient determination of the Hamiltonian and electronic properties using graph neural network}},
  booktitle = {Research},
  year = {2022},
  doi = {10.21203/rs.3.rs-2221687/v1},
}
Figure