A Self-Attention Ansatz for Ab-initio Quantum Chemistry

Ingrid von Glehn, James S. Spencer, David Pfau
11/24/2022
physics.chem-phcs.LGphysics.comp-ph

Official code: google-deepmind/ferminet (855 stars, Apache-2.0, last commit 2026-03-11).

Abstract

We present a novel neural network architecture using self-attention, the Wavefunction Transformer (Psiformer), which can be used as an approximation (or Ansatz) for solving the many-electron Schrödinger equation, the fundamental equation for quantum chemistry and material science. This equation can be solved from first principles, requiring no external training data. In recent years, deep neural networks like the FermiNet and PauliNet have been used to significantly improve the accuracy of these first-principle calculations, but they lack an attention-like mechanism for gating interactions between electrons. Here we show that the Psiformer can be used as a drop-in replacement for these other neural networks, often dramatically improving the accuracy of the calculations. On larger molecules especially, the ground state energy can be improved by dozens of kcal/mol, a qualitative leap over previous methods. This demonstrates that self-attention networks can learn complex quantum mechanical correlations between electrons, and are a promising route to reaching unprecedented accuracy in chemical calculations on larger systems.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

An implementation of the Fermionic Neural Network for ab-initio electronic structure calculations

855169Python, Jupyter NotebookOct 6, 20207 months agoApache-2.0

Similar Papers

Cite this paper

@article{glehn2022selfattention,
  title  = {A Self-Attention Ansatz for Ab-initio Quantum Chemistry},
  author = {Ingrid von Glehn and James S. Spencer and David Pfau},
  year   = {2022},
  eprint = {2211.13672},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.13672}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.13672.svg)](https://codeofpaper.com/paper/2211.13672)

Discussion