Can AI Agents Reliably Optimize Computational Chemistry Codes?
Mathew Chow, Tao E. Li
Abstract
Artificial intelligence (AI) approaches have opened new possibilities in computational and theoretical chemistry. AI agents can now execute computational workflows autonomously, and their use in scientific software development represents another promising direction. Herein, we present a general strategy for the controlled optimization of scientific software using a dual-agent harness. By using separate worker and controller agents for optimization and evaluation, respectively, we find that this approach can reduce computational costs while preserving numerical accuracy for the computational chemistry methods examined. We apply this strategy to TIP4P water simulations in LAMMPS, as well as to Coulomb and exchange matrix construction and linear-response time-dependent density functional theory (TDDFT) calculations in PySCF. Among these applications, the largest speedups are obtained for TDDFT. We then extend this strategy from optimizing established packages to developing efficient parallel CPU- and GPU-accelerated implementations of an initially serial molecular dynamics code, resulting in speedups of two to three orders of magnitude. Finally, we apply the protocol to open-ended algorithm development by constructing an adaptive self-consistent field approach that coordinates the use of multiple solvers. We find that the resulting approach can converge some challenging systems and occasionally reach lower-energy solutions than those obtained with the standalone solvers tested. These applications demonstrate that a strategy developed for improving code efficiency may also support the systematic development of computational methods. Overall, our benchmark study provides an example of AI-assisted advances in computational chemistry.
Create a lesson
Related papers
Autonomous Optimization of Numerical Algorithms by an AI Agent: Application to Atomistic Simulation
Shared title terminology · Jeheon Woo
GenerativeQC: A Generative, GPU-Accelerated Quantum Chemistry Program
Shared title terminology · Shengrui Xu, Longhan Shen, Wenxi Zhai et al.
Neural Network Path Optimization for Finding Transition States on a Machine Learned Potential
Shared title terminology · Kareem Hegazy, Eric C-Y Yuan, Anup Kumar et al.
Vibe synthesis: hierarchical agentic decision-making for intent-driven multistep molecule synthesis
Shared title terminology · Jie Chen, Guikun Chen, Feng Wan et al.
Open Quantum System Embedded in an Optimized Reservoir of Molecules
Shared title terminology · Somayeh Ahmadkhani, Sara Panahian Jand, Luigi Delle Site
Extending the reach of real-space real-time TDDFT: new developments in the Octopus code
Shared title terminology · Nicolas Tancogne-Dejean, Martin Lüders, Esra Ilke Albar et al.