Diagonalization without Diagonalization: A Direct Optimization Approach for Solid-State Density Functional Theory

Tianbo Li, Min Lin, Stephen Dale, Zekun Shi, A. H. Castro Neto, Kostya S. Novoselov, Giovanni VignalearXiv 2024 · DOI

Abstract

Traditional Density Functional Theory (DFT) calculations rely on the Self-Consistent Field (SCF) method, which requires iterative diagonalization of the Hamiltonian matrix. This process often faces convergence challenges in metallic systems or materials with small energy gaps. This paper presents a novel "diagonalization-free" framework that reformulates DFT as a direct optimization problem. By utilizing QR decomposition for orthonormality and a unique "self-diagonalization" parameterization, the approach ensures physical constraints are met automatically. Implemented in JAX, the method demonstrates significant computational speedups and seamless integration with automatic differentiation frameworks.

Introduction

Density Functional Theory (DFT) serves as the foundational tool for simulating materials at the atomic level. The standard numerical recipe for solving DFT problems is the Self-Consistent Field (SCF) method. While robust for many systems, SCF is prone to "convergence problems" in challenging cases—such as metals with high densities of states near the Fermi level or molecules with vanishingly small energy gaps. In these scenarios, the algorithm may oscillate indefinitely, failing to reach a ground-state solution.

Direct optimization—minimizing the energy functional directly—offers a more stable alternative to SCF. However, it has historically struggled to manage occupation numbers, the parameters governing how electrons inhabit energy levels. Satisfying the Pauli exclusion principle and charge conservation typically requires complex, nested optimization loops that negate the stability benefits. This paper introduces a single-loop optimization framework that bypasses these hurdles by "hard-wiring" physical constraints into the mathematical structure of the optimizer.

Methodology

The proposed framework is implemented in JAX, leveraging automatic differentiation to navigate the energy landscape. The core of the method rests on two primary innovations:

1. Orthonormality via QR Decomposition

A fundamental physical requirement in DFT is that electron wavefunctions must remain orthonormal. Traditional direct optimization methods often use matrix exponentials to maintain this property, but these are computationally expensive and generally restricted to square matrices. The authors instead employ QR decomposition. This choice is particularly effective for plane-wave DFT, which involves "tall and skinny" rectangular matrices where the number of basis functions significantly exceeds the number of electrons. QR decomposition provides a numerically efficient way to maintain orthonormality without the $O(N^3)$ scaling penalties associated with square-matrix operations.

2. The "Self-Diagonalization" Trick

The most significant conceptual leap in this work is the elimination of explicit diagonalization (e.g., the eigh command). Based on Liouville’s theorem, the authors observe that at the energy minimum, the occupation matrix and the Hamiltonian must commute. By fixing the occupation matrix as a diagonal matrix from the outset, the optimization process mathematically "pushes" the Hamiltonian to become diagonal as it reaches the ground state. This transformation turns a constrained, iterative problem into a smooth, unconstrained optimization task solvable by standard gradient-based optimizers like Adam.

Experimental Validation

The method was validated against Quantum Espresso, the industry-standard SCF-based package, using two representative physical systems:

  • Aluminum (FCC): A metallic system used to test the algorithm's ability to handle variable occupation numbers and the statistical "smearing" of electrons.
  • Silicon: A semiconductor used to verify the accuracy of the resulting band structures.

Key Results and Insights

  • Emergent Physics: The algorithm successfully recovered the Fermi-Dirac distribution—the statistical distribution of electrons at finite temperatures—without it being explicitly programmed into the objective function. This distribution emerged naturally from the optimization of the energy functional.
  • Computational Efficiency: The "self-diagonalization" approach achieved a speedup of approximately one order of magnitude compared to traditional direct optimization methods. This efficiency gap was found to widen as the number of electron bands increased, suggesting superior scaling for complex systems.
  • Physical Fidelity: The calculated band structures for both Aluminum and Silicon were nearly identical to those produced by Quantum Espresso, confirming that the optimization approach does not sacrifice accuracy for speed.

Discussion and Future Outlook

By making the entire DFT pipeline differentiable, this research bridges the gap between quantum chemistry and modern machine learning. The use of JAX allows this method to integrate directly with AI-ready optimizers and neural network architectures.

While the current study focused on the Local Density Approximation (LDA) and relatively small unit cells, the implications are broad. Future work will explore more complex exchange-correlation functionals (such as GGA or hybrids) and test the method's scaling on "supercells" containing thousands of atoms. The ultimate potential of this work lies in ML-enhanced DFT, where the differentiable nature of the solver can be used to train models to predict electron densities and interatomic potentials with unprecedented efficiency.

Summary updated

BibTeX
@misc{li2024diagonalization,
  author = {Tianbo Li and Min Lin and Stephen Dale and Zekun Shi and A. H. Castro Neto and Kostya S. Novoselov and Giovanni Vignale},
  title = {{Diagonalization without Diagonalization: A Direct Optimization Approach for Solid-State Density Functional Theory}},
  year = {2024},
  eprint = {2411.05033},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.05033},
}
Figure