Variational Monte Carlo on a Budget - Fine-tuning pre-trained Neural Wavefunctions

Michael Scherbela, Leon Gerard, Philipp Grohs · DOI

Abstract

Deep-learning-based Variational Monte Carlo (DL-VMC) has emerged as a high-accuracy method for solving the Schrödinger equation, yet its widespread adoption is hindered by a significant "computational tax": the requirement to train models from scratch for every new molecular system. This paper presents a novel approach to transferable wavefunctions, utilizing a pre-trained neural network architecture that generalizes across diverse chemical species. By leveraging a combination of a Message Passing Neural Network (MPNN) and an SE(3)-equivariant orbital model, the proposed method achieves "zero-shot" energy predictions that outperform gold-standard methods like CCSD(T)-2Z. Furthermore, minimal fine-tuning allows the model to reach state-of-the-art accuracy at a fraction of the traditional computational cost.

Introduction

Predicting the properties of molecules from first principles requires solving the electronic Schrödinger equation, a task often described as the "Holy Grail" of computational chemistry. While traditional methods like Coupled Cluster (CCSD(T)) provide high accuracy, they scale poorly with system size. Recently, Deep-Learning-based Variational Monte Carlo (DL-VMC) has demonstrated the ability to surpass these traditional methods in precision. However, DL-VMC typically lacks transferability; models are optimized for a single geometry, consuming thousands of GPU hours per system.

This work addresses this limitation by moving DL-VMC toward a "train once, apply many times" paradigm. By pre-training on a diverse chemical dataset, the authors demonstrate that neural wavefunctions can learn a general intuition for electronic structures, enabling rapid inference and efficient fine-tuning for unseen molecules.

Methodology

Wavefunction Architecture

The authors employ a sophisticated neural network ansatz to represent the electronic wavefunction ($\psi$). The architecture is bifurcated into two primary components:

  1. Electron Model: A Message Passing Neural Network (MPNN) that explicitly captures complex electron-electron correlations.
  2. Orbital Model: A simplified, SE(3)-equivariant version of PhisNet. Unlike previous architectures that relied on fixed reference positions, this model predicts molecular orbitals based on nuclear positions, allowing it to adapt to arbitrary geometries.

Training Pipeline and Sampling

To achieve transferability, the model undergoes a multi-stage training process. Initial orbital descriptors are trained on 47,000 molecules from the QM7-X dataset. This is followed by VMC pre-training on a chemically diverse set of 98 molecules (comprising 699 unique conformers) containing up to four heavy atoms (C, N, O).

Efficiency is further enhanced through two key innovations:

  • Exponential Initialization: Instead of standard Gaussian distributions, the authors introduce an exponential initialization for Markov Chain Monte Carlo (MCMC) sampling. By placing electrons near nuclei in a physically motivated manner, the system reaches equilibrium 50% faster.
  • Geometry Augmentation: To improve robustness, the training set is expanded using "normal-mode sampling," perturbing molecular geometries along directions of low energy change to ensure the model generalizes across various conformers.

Results

Zero-Shot Performance

The model demonstrates unprecedented "zero-shot" capabilities. Without any optimization on target molecules, it produces absolute energy predictions two orders of magnitude more accurate than previous transferable DL-VMC models. In many cases, these zero-shot predictions outperform established methods such as CCSD(T)-2Z.

Fine-tuning and Chemical Accuracy

While zero-shot absolute energies are high, predicting "relative energies" (the difference between conformers) remains challenging. However, the pre-trained model requires only approximately 4,000 fine-tuning steps to reach "chemical accuracy" (1.6 mHa). This is a significant reduction compared to the tens of thousands of steps required when training from scratch. For instance, on the bicyclobutane-to-butadiene transition—a system where standard CCSD(T) often struggles—the fine-tuned model matched high-level Diffusion Monte Carlo (DMC) results with a maximum deviation of only 2.1 mHa.

Scalability

The model's scalability was tested on 250 molecules from the QM7 dataset, involving systems with up to 58 electrons. The results consistently showed energies lower (and thus more variationally accurate) than Density Functional Theory (DFT) for smaller systems, confirming the model's ability to handle larger, unseen chemical environments.

Discussion and Limitations

Despite its successes, the approach has limitations. The model’s accuracy begins to degrade as molecules grow significantly larger than those in the training set, likely due to the encounter of inter-atomic distances outside the pre-training distribution. Additionally, while the orbital model is rotationally invariant (SE(3)-equivariant), the full wavefunction is not yet fully equivariant, leading to minor energy fluctuations upon rotation.

Future work may involve unfreezing the orbital model weights during VMC training to allow for end-to-end optimization, potentially increasing the expressivity of the wavefunction and further closing the gap in relative energy precision.

Conclusion

This work represents a pivotal step toward making high-accuracy quantum chemistry simulations computationally affordable. By demonstrating that neural wavefunctions can be pre-trained and transferred across chemical space, the authors provide a blueprint for "on a budget" VMC that maintains the accuracy of state-of-the-art methods while slashing the required GPU time by orders of magnitude.

Summary updated

BibTeX
@inproceedings{scherbela2023variational,
  author = {Michael Scherbela and Leon Gerard and Philipp Grohs},
  title = {{Variational Monte Carlo on a Budget - Fine-tuning pre-trained Neural Wavefunctions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=FBNyccPfAu},
}
Figure