Exploring density functional subspaces with genetic algorithms

Michael Gastegger, Leticia González, Philipp MarquetandMonatshefte 2018

Abstract

We use a genetic algorithm to explore the subspace of combination and parametrization patterns spanned by a set of popular exchange and correlation functional approximations. Using the well-balanced GMTKN30 benchmark database to guide the evolutionary process, we find that the genetic algorithm is able to recover variants of several popular generalized gradient approximation functionals and hybrid functionals. For the latter class, the algorithm is able to identify a reparametrized version of the three-parameter hybrid B3PW91, which shows significantly improved performance compared to conventional versions of B3PW91. Furthermore, the possible application of this algorithm to automatically construct so-called “niche”-functionals—specially tailored to specific applications—is demonstrated.

Introduction

In the realm of computational chemistry, Density Functional Theory (DFT) serves as the primary tool for predicting molecular and material properties. Although an exact functional is theoretically guaranteed to exist, its precise mathematical form remains elusive. Consequently, the field relies on a vast array of approximations—mathematical "recipes" that combine various exchange and correlation terms.

Historically, the development of these functionals has been a manual process, driven by physical intuition and empirical fitting. However, the search space of possible component combinations and numerical parameters is astronomical. This manual approach risks overlooking optimal "pockets" within the functional subspace. This research investigates the potential of automating this discovery process through an evolutionary framework, specifically using genetic algorithms (GAs) to navigate the complex landscape of density functional approximations.

Methodology: The Evolutionary Framework

The researchers implemented a steady-state genetic algorithm to explore functional subspaces. In this approach, potential density functionals are treated as "individuals" within a population, each defined by a specific "genome."

The Genome and Encoding

The genome represents the structural and parametric identity of a functional. For Generalized Gradient Approximation (GGA) functionals, the genome consists of three strings identifying the exchange and correlation components. For hybrid functionals, this genome is expanded to include real-valued parameters representing mixing coefficients (e.g., the amount of exact Hartree-Fock exchange) and scaling factors.

The genome representation for GGA and Hybrid functionals, showing the encoding of components and numerical parameters.

The Evolutionary Loop

The GA operates through a continuous cycle of selection and modification:

  1. Selection: Parent functionals are chosen from the population using tournament selection, where fitter individuals (those with lower error) have a higher probability of reproducing.
  2. Crossover: Selected parents exchange "genes"—either functional components or numerical parameters—to produce offspring.
  3. Mutation: To maintain diversity and explore new regions of the subspace, random mutations are introduced. This involves either swapping a component for a random alternative or adding Gaussian noise to a numerical parameter.
  4. Fitness Evaluation: The "fitness" of each functional is quantified by its Weighted Total Mean Absolute Deviation (WTMAD) on the GMTKN30 benchmark database. This database includes 1,218 calculations across 30 subsets, covering thermochemistry, kinetics, and non-covalent interactions.

Validation and Discovery

A critical test for any automated discovery tool is its ability to replicate known successful designs. The GA passed this test by successfully "rediscovering" established, human-designed functionals such as PBE and B97-D. This validation confirms that the algorithm can effectively identify high-quality solutions within the functional landscape.

Conceptual illustration of the evolution of density functionals toward more accurate approximations.

Beyond rediscovery, the GA provided independent confirmation of theoretical principles. When evolving hybrid functionals, the algorithm consistently converged on an exact exchange admixture of approximately 23–25%. This aligns perfectly with the long-standing consensus in the DFT community regarding the "sweet spot" for general-purpose hybrid functionals.

Key Results and "Niche" Functionals

The most significant outcome of the study was the development of the EH-NL functional. By reparametrizing the B3PW91 hybrid functional and incorporating non-local (NL) dispersion, the GA produced a functional with a WTMAD of 11.26 kJ/mol. This performance not only significantly improves upon the standard B3PW91 but also surpasses the highly regarded $\omega$B97X-D (11.72 kJ/mol).

The research also demonstrated the power of evolving "niche" functionals tailored for specific tasks. The authors evolved a functional, EH-ED, specifically for non-covalent interactions without using explicit dispersion corrections. Remarkably, the GA "hacked" the standard functional parameters to mimic dispersion-like behavior, effectively capturing binding curves where standard hybrids typically fail.

Conclusion and Future Outlook

While the current study was restricted to a subspace of 210 GGA combinations, it proves that genetic algorithms are a potent tool for functional optimization. The results underscore the vital role of dispersion corrections, as functionals evolved with dispersion parameters showed vastly superior performance.

The next frontier in this research is the transition from Genetic Algorithms—which tune existing components—to Genetic Programming. This shift would allow the algorithm to evolve the actual mathematical forms of the functionals from scratch, potentially uncovering entirely new classes of approximations that transcend current human-designed paradigms.

Summary updated

Abstract

We use a genetic algorithm to explore the subspace of combination and parametrization patterns spanned by a set of popular exchange and correlation functional approximations. Using the well-balanced GMTKN30 benchmark database to guide the evolutionary process, we find that the genetic algorithm is able to recover variants of several popular generalized gradient approximation functionals and hybrid functionals. For the latter class, the algorithm is able to identify a reparametrized version of the three-parameter hybrid B3PW91, which shows significantly improved performance compared to conventional versions of B3PW91. Furthermore, the possible application of this algorithm to automatically construct so-called “niche”-functionals—specially tailored to specific applications—is demonstrated.
BibTeX
@inproceedings{gastegger2018exploring,
  author = {Michael Gastegger and Leticia González and Philipp Marquetand},
  title = {{Exploring density functional subspaces with genetic algorithms}},
  booktitle = {Monatshefte},
  year = {2018},
  doi = {10.1007/s00706-018-2335-3},
}
Figure