Self-consistent Gradient-like Eigen Decomposition in Solving Schrödinger Equations

Xihan Li, Xiang Chen, Rasul Tutunov, Haitham Bou Ammar, Lei Wang, Jun Wang

TL;DR

Solving approximated Schrödinger equations (like Hartree-Fock) requires finding eigenvectors for a matrix that depends on those very same eigenvectors—a notorious circular dependency known as the "self-consistency problem." This paper introduces SCGLED, framing the self-consistent field problem as an online learning task where gradient-like eigendecomposition methods from streaming $k$-PCA iteratively solve the equation from scratch without relying on physics-based heuristic initial guesses.

What Problem Does This Paper Address?

In quantum chemistry and solid-state physics, calculating electronic ground states requires solving nonlinear generalized eigenvalue problems of the form: $$F(V)V = SV\Lambda$$ Here, the matrix $F(V)$ (the Fock or Kohn-Sham matrix) explicitly depends on its own top-$k$ lowest eigenvectors $V$ via the electron density matrix $P = 2VV^\top$.

Standard quantum chemistry codes solve this via Self-Consistent Field (SCF) fixed-point iterations. However, plain fixed-point iteration easily diverges or oscillates unless initialized with a high-quality initial guess for $V$. Existing initializers (such as superposition of atomic densities [SAD], core Hamiltonian diagonalization, or Hückel guesses) rely heavily on domain-specific physical heuristics and can be intricate to implement. The authors aim to strip away domain-specific heuristics and solve the self-consistency problem purely from an optimization perspective.

Methods

The key conceptual leap is viewing $F(V)$ as a dynamic "online data generator." As the eigenvector estimates $V$ evolve, the data distribution $F(V)$ shifts concurrently—analogous to non-stationary streaming data in machine learning.

The authors propose SCGLED (Self-Consistent Gradient-like Eigen Decomposition):

  1. Orthogonalization: Canonical orthogonalization ($X^\top S X = I$, $V = XV'$) reduces the generalized eigenvalue problem to a standard eigendecomposition of $F'(V) = X^\top F(V) X$. Because the lowest eigenvalues are desired, the algorithm seeks the top eigenvectors of $-F'$.
  2. EigenGame Formulation: Instead of standard Oja's algorithm (which requires sequential, non-parallelizable Gram-Schmidt orthogonalization), SCGLED adapts the decentralized gradient updates from EigenGame (Gemp et al., 2021), where eigenvectors optimize utility in a game-theoretic formulation.
  3. Numerical Stabilization:
  4. Fock Matrix Damping: Smooths updates across iterations: $F_t = (1 - \alpha)F_{t-1} + \alpha F(V_t)$ with $\alpha = 0.2$.
  5. Momentum on Eigenvectors: Adds Polyak momentum ($\beta = 0.9$) to gradient updates of $V'$ to smooth optimization across diverse chemical systems.
  6. Periodic Potential Updates: Recalculates $F(V)$ only every $I_F$ steps rather than every iteration, reducing costly evaluation of the two-electron repulsion tensor and preventing damping degeneracy.

Datasets

  • W4-17 Dataset: A widely used electronic structure benchmark (Karton et al., 2017). The paper evaluates all 160 singlet molecules from the benchmark using the standard 6-31G basis set.
  • Implementations were run using Python/Numba on top of the open-source PySCF electronic structure library.

Key Insights and Ideas

  • Self-Consistency as Non-Stationary Streaming $k$-PCA: In standard online PCA, updates track a fixed but stochastically sampled data distribution. Here, the distribution shifts deterministically with the parameters being optimized. First-order gradient-like updates adapt smoothly to this coupled feedback loop.
  • Independence from Domain Heuristics: Traditional quantum solvers require carefully chosen physical approximations (e.g., assuming a molecule behaves like isolated atoms) just to start the calculation. SCGLED initializes from a simple block identity matrix $\begin{bmatrix} I \\ 0 \end{bmatrix}$ and converges reliably.
  • Tuneable Trade-offs: Unlike heuristic guess methods that yield a single fixed-cost guess, SCGLED’s iteration count $T$ can be tuned freely: run few steps for a lightning-fast rough initialization, or run longer for high precision.

Key Results

  • As an Initial Guess Method:
  • At $T = 1000$ iterations (~26.3 ms wall-clock time), SCGLED was on average 25× more precise than the best baseline (minao at 28.6 ms), yielding an average energy error of 0.013 Hartree versus 0.343 Hartree.
  • In downstream standard SCF iterations, SCGLED-initialized runs achieved lower failure/oscillation rates across the 160 test molecules, solving 14 molecules where all four standard heuristics failed.
  • As a Standalone Full Solver:
  • Without any traditional SCF fixed-point iterations, SCGLED independently solved more than half of the 160 molecules to high precision ($< 10^{-10}$ Hartree energy tolerance) within 20,000 steps, and 155/160 within $10^6$ steps.
  • Adding DIIS (Direct Inversion in the Iterative Subspace) acceleration to the final 10% of iterations enabled standalone SCGLED to solve 160 out of 160 molecules to convergence.

Limitations and Future Work

  • First-Order Convergence Rate: As an iterative first-order method, reaching the ultra-tight thresholds ($< 10^{-10}$ Hartree) needed in quantum chemistry takes many iterations compared to second-order/accelerated SCF solvers (taking ~650 ms independently vs. ~160 ms for accelerated SCF).
  • Variance across Molecular Sizes: As an optimization-based solver, runtime distribution across molecules has higher variance than deterministic physical heuristics.
  • Scope: The paper validates SCGLED on restricted Hartree-Fock theory for singlet ground states in small-to-medium molecules (6-31G basis). Extending the formulation to large basis sets, unrestricted spin systems, and periodic solid-state systems remains to be explored.

Summary updated

BibTeX
@inproceedings{li2022self,
  author = {Xihan Li and Xiang Chen and Rasul Tutunov and Haitham Bou Ammar and Lei Wang and Jun Wang},
  title = {{Self-consistent Gradient-like Eigen Decomposition in Solving Schrödinger Equations}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=pzgENfIRBil},
}

Loading related content...

Figure