To main content

Evolutionary Coding Agents for Autonomous Optimization of Scientific Software and Metallurgical Design

Abstract

The rapid advancement of Large Language Models (LLMs) has transformed software development, offering capabilities ranging from code completion to automated refactoring. However, standard LLM usage often suffers from a lack of domain-specific rigor, particularly in high-precision scientific computing where functional correctness and performance are paramount. To address these limitations, recent breakthroughs in “agentic” AI have coupled LLMs with Evolutionary Algorithms (EAs). In this framework, the LLM acts as a high-dimensional mutation operator, proposing intelligent variations of code, while a rigorous evaluation step filters out incorrect solutions. This methodology, exemplified by the AlphaEvolve agent, has recently demonstrated state-of-the-art capabilities in mathematical discovery and algorithmic optimization by treating software improvement as an evolutionary process. In this work, we leverage the OpenEvolve platform to adapt these evolutionary coding agents to the specific demands of materials science and atomic-scale simulations. Rather than developing a new evolutionary engine, we utilize OpenEvolve’s distributed controller loop, where a “Prompt Sampler” generates candidate modifications based on code history, an ensemble of LLMs synthesizes functional code, and a domain-specific “Evaluator” rigorously tests performance against scientific benchmarks. This implementation moves beyond simple snippet generation to a closed-loop system capable of iterative refinement and self-correction. We demonstrate the configuration of this framework for two distinct high-performance applications. The first targets the optimization of eT, a state-of-the-art electronic structure program used for coupled cluster simulations. These simulations are computationally intensive and often require significant runtime resources for molecular property calculations. The agent architecture is designed to explore optimizations in tensor contraction operations, memory management, and symmetry handling—areas where manual tuning is often intractable. The second application utilizes Kawin, an open-source Kampmann–Wagner Numerical (KWN) model for phase precipitation. Here, the evolutionary agent is deployed to optimize material design parameters rather than source code structure. By evolving input parameters—specifically chemical composition and artificial aging temperature cycles—the system seeks to maximize the yield strength of Aluminum–Magnesium–Silicon alloys (AA6xxx). The implementation establishes the critical integration between the open-source evolutionary core and the complex build systems of scientific simulation tools. By formalizing evaluation pipelines and fitness functions across these disparate physics domains, we demonstrate a generalized methodology for autonomous scientific software improvement. This framework provides a robust foundation for identifying non-intuitive optimizations in legacy scientific codebases, paving the way for self-optimizing simulations that adapt to new hardware and physical constraints.

Category

Conference lecture

Language

English

Affiliation

  • SINTEF Industry / Materials and Nanotechnology

Presented at

AI4AM 2026

Place

Madrid

Date

19.05.2026 - 21.05.2026

Organizer

Phantoms Foundation, Spain

Date

20.05.2026

Year

2026

View this publication at Norwegian Research Information Repository